annotate fastq_quality_trimmer.xml @ 1:e7c65e398bdd draft default tip

Deleted selected files
author idot
date Wed, 10 Jul 2013 06:16:21 -0400
parents 78a7d28f2a15
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
1 <tool id="cshl_fastq_quality_trimmer" name="Trim By Quality">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
2 <description></description>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
3 <command>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
4 cat '$input' |
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
5 fastq_quality_trimmer
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
6 #if $input.ext == "fastqsanger":
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
7 -Q 33
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
8 #elif $input.ext == "fastq":
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
9 -Q 64
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
10 #end if
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
11 -v -t $cutoff -l $minlen -o '$output'
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
12 </command>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
13
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
14 <inputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
15 <param format="fastq,fastqsanger" name="input" type="data" label="Library to clip" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
16
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
17 <param name="cutoff" size="4" type="integer" value="20">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
18 <label>Minimum quality score</label>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
19 <help>Nucleotides below this quality will be trimmed</help>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
20 </param>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
21
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
22 <param name="minlen" size="4" type="integer" value="1">
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
23 <label>Minimum sequence length</label>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
24 <help>Sequences shorter than this length will be discard. Leave at zero to keep all sequences</help>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
25 </param>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
26 </inputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
27
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
28 <tests>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
29 <test>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
30 <param name="input" value="fastq_quality_trimmer.fastq" ftype="fastq" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
31 <param name="cutoff" value="30"/>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
32 <param name="minlen" value="16"/>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
33 <output name="output" file="fastq_quality_trimmer.out" />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
34 </test>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
35 </tests>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
36
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
37 <outputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
38 <data format="input" name="output" metadata_source="input"
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
39 />
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
40 </outputs>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
41 <help>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
42 **What it does**
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
43
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
44 This tool scans the sequence from the end for the first nucleotide to possess the specified minimum quality score. It will then trim (remove nucleotides from) the sequence after this position. After trimming, sequences that are shorter than the minimum length are discarded.
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
45
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
46 --------
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
47
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
48 **Example**
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
49
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
50 Input Fasta file (with 20 bases in each sequences)::
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
51
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
52 @1
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
53 TATGGTCAGAAACCATATGC
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
54 +1
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
55 40 40 40 40 40 40 40 40 40 40 40 20 19 19 19 19 19 19 19 19
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
56 @2
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
57 CAGCGAGGCTTTAATGCCAT
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
58 +2
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
59 40 40 40 40 40 40 40 40 30 20 19 20 19 19 19 19 19 19 19 19
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
60 @3
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
61 CAGCGAGGCTTTAATGCCAT
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
62 +3
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
63 40 40 40 40 40 40 40 40 20 19 19 19 19 19 19 19 19 19 19 19
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
64
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
65
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
66 Trimming with a cutoff of 20, we get the following FASTQ file::
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
67
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
68 @1
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
69 TATGGTCAGAAA
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
70 +1
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
71 40 40 40 40 40 40 40 40 40 40 40 20
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
72 @2
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
73 CAGCGAGGCTTT
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
74 +2
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
75 40 40 40 40 40 40 40 40 30 20 19 20
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
76 @3
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
77 CAGCGAGGC
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
78 +3
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
79 40 40 40 40 40 40 40 40 20
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
80
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
81 Trimming with a cutoff of 20 and a minimum length of 12, we get the following FASTQ file::
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
82
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
83 @1
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
84 TATGGTCAGAAA
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
85 +1
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
86 40 40 40 40 40 40 40 40 40 40 40 20
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
87 @2
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
88 CAGCGAGGCTTT
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
89 +2
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
90 40 40 40 40 40 40 40 40 30 20 19 20
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
91
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
92 ------
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
93
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
94 This tool is based on `FASTX-toolkit`__ by Assaf Gordon.
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
95
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
96 .. __: http://hannonlab.cshl.edu/fastx_toolkit/
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
97
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
98 </help>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
99 </tool>
78a7d28f2a15 Uploaded
idot
parents:
diff changeset
100 <!-- FASTX-Quality-Trimmer is part of the FASTX-toolkit, by A.Gordon (gordon@cshl.edu) -->