Skip to content

Commit 3607a59

Browse files
davebxbgruening
authored andcommitted
Apply fixes from upstream git repo. (#5178)
* Apply fixes from upstream git repo. * Use perl-not-threaded, add summary and hash. * Add jpeg-turbo as a runtime dependency. * Update meta.yaml * Update meta.yaml * upgrade gnuplot version * Update meta.yaml
1 parent 137f7ca commit 3607a59

2 files changed

Lines changed: 51 additions & 6 deletions

File tree

recipes/fastx_toolkit/fastx.patch

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Common subdirectories: src/libfastx/.deps and src/libfastx/.deps
2+
diff -Nau src/libfastx/fastx.c src/libfastx/fastx.c
3+
--- src/libfastx/fastx.c 2014-01-05 16:10:49.000000000 -0500
4+
+++ src/libfastx/fastx.c 2017-07-11 09:49:25.609348867 -0400
5+
@@ -126,7 +126,7 @@
6+
7+
for (i=0; i<strlen(ascii_quality_scores); i++) {
8+
pFASTX->quality[i] = (int) (ascii_quality_scores[i] - pFASTX->fastq_ascii_quality_offset ) ;
9+
- if (pFASTX->quality[i] < -15 || pFASTX->quality[i] > 93)
10+
+ if (pFASTX->quality[i] < MIN_QUALITY_VALUE || pFASTX->quality[i] > MAX_QUALITY_VALUE)
11+
errx(1, "Invalid quality score value (char '%c' ord %d quality value %d) on line %lld",
12+
ascii_quality_scores[i], ascii_quality_scores[i],
13+
pFASTX->quality[i], pFASTX->input_line_number );
14+
diff -Nau src/libfastx/fastx.h src/libfastx/fastx.h
15+
--- src/libfastx/fastx.h 2014-01-05 16:10:49.000000000 -0500
16+
+++ src/libfastx/fastx.h 2017-07-11 09:49:25.609348867 -0400
17+
@@ -25,8 +25,8 @@
18+
/* for PATH_MAX */
19+
#include <limits.h>
20+
21+
-#define MIN_QUALITY_VALUE (-50)
22+
-#define MAX_QUALITY_VALUE 50
23+
+#define MIN_QUALITY_VALUE (-15)
24+
+#define MAX_QUALITY_VALUE 93
25+
#define QUALITY_VALUES_RANGE (MAX_QUALITY_VALUE-MIN_QUALITY_VALUE)
26+
27+

recipes/fastx_toolkit/meta.yaml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ package:
55
source:
66
url: https://github.com/agordon/fastx_toolkit/releases/download/0.0.14/fastx_toolkit-0.0.14.tar.bz2
77
fn: fastx_toolkit-0.0.14.tar.bz2
8+
md5: bf1993c898626bb147de3d6695c20b40
9+
patches:
10+
- fastx.patch
811

912
build:
1013
preserve_egg_dir: True
11-
number: 3
14+
number: 4
1215
skip: False
1316

1417
requirements:
@@ -24,13 +27,11 @@ requirements:
2427
- cython
2528
- nose
2629
- libgtextutils
27-
- gnuplot
28-
- libgd >=2.1.1post 1
29-
- perl-threaded
30+
- gnuplot >=5.0.5
31+
- perl
3032
- perl-perlio-gzip
31-
- perl-gd >=2.5.6 2
33+
- perl-gd
3234
- perl-gdgraph-histogram
33-
#- pkg-config
3435

3536
test:
3637
commands:
@@ -40,3 +41,20 @@ test:
4041
about:
4142
home: https://github.com/agordon/fastx_toolkit
4243
license: AGPL
44+
summary: 'The FASTX-Toolkit is a collection of command line tools for
45+
Short-Reads FASTA/FASTQ files preprocessing.
46+
47+
Next-Generation sequencing machines usually produce FASTA or FASTQ files,
48+
containing multiple short-reads sequences (possibly with quality
49+
information).
50+
51+
The main processing of such FASTA/FASTQ files is mapping (aka aligning) the
52+
sequences to reference genomes or other databases using specialized
53+
programs. Example of such mapping programs are: Blat, SHRiMP, LastZ, MAQ
54+
and many many others.
55+
56+
However, it is sometimes more productive to preprocess the FASTA/FASTQ files
57+
before mapping the sequences to the genome - manipulating the sequences to
58+
produce better mapping results.
59+
60+
The FASTX-Toolkit tools perform some of these preprocessing tasks.'

0 commit comments

Comments
 (0)