comparison fastq_quality_converter.xml @ 0:b87c74b61d81 draft

Uploaded tool tarball.
author devteam
date Wed, 25 Sep 2013 10:59:58 -0400
parents
children 74db4cffab1f
comparison
equal deleted inserted replaced
-1:000000000000 0:b87c74b61d81
1 <tool id="cshl_fastq_quality_converter" name="Quality format converter" version="1.0.0">
2 <description>(ASCII-Numeric)</description>
3 <requirements>
4 <requirement type="package" version="0.0.13">fastx_toolkit</requirement>
5 </requirements>
6 <command>zcat -f $input | fastq_quality_converter $QUAL_FORMAT -o $output -Q $offset</command>
7 <inputs>
8 <param format="fastq" name="input" type="data" label="Library to convert" />
9
10 <param name="QUAL_FORMAT" type="select" label="Desired output format">
11 <option value="-a">ASCII (letters) quality scores</option>
12 <option value="-n">Numeric quality scores</option>
13 </param>
14
15 <param name="offset" type="select" label="FASTQ ASCII offset">
16 <option value="33">33</option>
17 <option selected="true" value="64">64</option>
18 </param>
19 </inputs>
20
21 <tests>
22 <test>
23 <!-- ASCII to NUMERIC -->
24 <param name="input" value="fastq_qual_conv1.fastq" />
25 <param name="QUAL_FORMAT" value="Numeric quality scores" />
26 <param name="offset" value="64" />
27 <output name="output" file="fastq_qual_conv1.out" />
28 </test>
29 <test>
30 <!-- ASCII to ASCII (basically, a no-op, but it should still produce a valid output -->
31 <param name="input" value="fastq_qual_conv1.fastq" />
32 <param name="QUAL_FORMAT" value="ASCII (letters) quality scores" />
33 <param name="offset" value="64" />
34 <output name="output" file="fastq_qual_conv1a.out" />
35 </test>
36 <test>
37 <!-- NUMERIC to ASCII -->
38 <param name="input" value="fastq_qual_conv2.fastq" />
39 <param name="QUAL_FORMAT" value="ASCII (letters) quality scores" />
40 <param name="offset" value="64" />
41 <output name="output" file="fastq_qual_conv2.out" />
42 </test>
43 <test>
44 <!-- NUMERIC to NUMERIC (basically, a no-op, but it should still produce a valid output -->
45 <param name="input" value="fastq_qual_conv2.fastq" />
46 <param name="QUAL_FORMAT" value="Numeric quality scores" />
47 <param name="offset" value="64" />
48 <output name="output" file="fastq_qual_conv2n.out" />
49 </test>
50 </tests>
51
52 <outputs>
53 <data format="fastq" name="output" metadata_source="input" />
54 </outputs>
55 <help>
56
57 **What it does**
58
59 Converts a Solexa FASTQ file to/from numeric or ASCII quality format.
60
61 .. class:: warningmark
62
63 Re-scaling is **not** performed. (e.g. conversion from Phred scale to Solexa scale).
64
65
66 -----
67
68 FASTQ with Numeric quality scores::
69
70 @CSHL__2_FC042AGWWWXX:8:1:120:202
71 ACGATAGATCGGAAGAGCTAGTATGCCGTTTTCTGC
72 +CSHL__2_FC042AGWWWXX:8:1:120:202
73 40 40 40 40 20 40 40 40 40 6 40 40 28 40 40 25 40 20 40 -1 30 40 14 27 40 8 1 3 7 -1 11 10 -1 21 10 8
74 @CSHL__2_FC042AGWWWXX:8:1:103:1185
75 ATCACGATAGATCGGCAGAGCTCGTTTACCGTCTTC
76 +CSHL__2_FC042AGWWWXX:8:1:103:1185
77 40 40 40 40 40 35 33 31 40 40 40 32 30 22 40 -0 9 22 17 14 8 36 15 34 22 12 23 3 10 -0 8 2 4 25 30 2
78
79
80 FASTQ with ASCII quality scores::
81
82 @CSHL__2_FC042AGWWWXX:8:1:120:202
83 ACGATAGATCGGAAGAGCTAGTATGCCGTTTTCTGC
84 +CSHL__2_FC042AGWWWXX:8:1:120:202
85 hhhhThhhhFhh\hhYhTh?^hN[hHACG?KJ?UJH
86 @CSHL__2_FC042AGWWWXX:8:1:103:1185
87 ATCACGATAGATCGGCAGAGCTCGTTTACCGTCTTC
88 +CSHL__2_FC042AGWWWXX:8:1:103:1185
89 hhhhhca_hhh`^Vh@IVQNHdObVLWCJ@HBDY^B
90
91 ------
92
93 This tool is based on `FASTX-toolkit`__ by Assaf Gordon.
94
95 .. __: http://hannonlab.cshl.edu/fastx_toolkit/
96
97 </help>
98 <!-- FASTQ-Quality-Converter is part of the FASTX-toolkit, by A.Gordon (gordon@cshl.edu) -->
99 </tool>