0
|
1 <tool id="sickle" name="Sickle">
|
|
2 <description>Windowed Adaptive Trimming of FastQ data</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="123">sickle</requirement>
|
|
5 </requirements>
|
|
6 <command>
|
|
7 /Users/amol/Desktop/galaxy-galaxy-dist-cea3ddf6cdda/tools/mytools/sickle $readtype.single_or_paired --quiet
|
|
8
|
|
9 #if str($readtype.single_or_paired) == "se":
|
|
10 -f $input_single -t $qual_type -o $output_single
|
|
11 #end if
|
|
12
|
|
13 #if str($readtype.single_or_paired) == "pe":
|
|
14 -f $input_paired1 -r $input_paired2 -o $output_paired1 -p $output_paired2 -s $output_paired_single -t $qual_type
|
|
15 #end if
|
|
16
|
|
17 #if str($qual_threshold) != "":
|
|
18 -q $qual_threshold
|
|
19 #end if
|
|
20
|
|
21 #if str($length_threshold) != "":
|
|
22 -l $length_threshold
|
|
23 #end if
|
|
24
|
|
25 #if $no_five_prime:
|
|
26 -x
|
|
27 #end if
|
|
28
|
|
29 #if $discard_n:
|
|
30 -n
|
|
31 #end if
|
|
32 </command>
|
|
33
|
|
34 <inputs>
|
|
35 <conditional name="readtype">
|
|
36 <param name="single_or_paired" type="select" optional="false" label="Single-End or Paired-End reads?">
|
|
37 <option value="se" selected="true">Single-End</option>
|
|
38 <option value="pe">Paired-End</option>
|
|
39 </param>
|
|
40
|
|
41 <when value="se">
|
|
42 <param format="fastq, fastqsanger" name="input_single" type="data" optional="false" label="Single-End FastQ Reads"/>
|
|
43 </when>
|
|
44
|
|
45 <when value="pe">
|
|
46 <param format="fastq, fastqsanger" name="input_paired1" type="data" optional="false" label="Paired-End Forward Strand FastQ Reads"/>
|
|
47 <param format="fastq, fastqsanger" name="input_paired2" type="data" optional="false" label="Paired-End Reverse Strand FastQ Reads"/>
|
|
48 </when>
|
|
49 </conditional>
|
|
50
|
|
51 <param name="qual_type" type="select" optional="false" label="Quality type">
|
|
52 <option value="illumina" selected="true">Illumina</option>
|
|
53 <option value="solexa">Solexa</option>
|
|
54 <option value="sanger">Sanger</option>
|
|
55 </param>
|
|
56
|
|
57 <param name="qual_threshold" value="20" type="integer" optional="true" label="Quality Threshold">
|
|
58 <validator type="in_range" min="0" message="Minimum value is 0"/>
|
|
59 </param>
|
|
60
|
|
61 <param name="length_threshold" value="20" type="integer" optional="true" label="Length Threshold">
|
|
62 <validator type="in_range" min="0" message="Minimum value is 0"/>
|
|
63 </param>
|
|
64
|
|
65 <param name="no_five_prime" type="boolean" label="Don't do 5' trimming"/>
|
|
66 <param name="discard_n" type="boolean" label="Discard sequences with Ns"/>
|
|
67 </inputs>
|
|
68
|
|
69 <outputs>
|
|
70 <data format_source="input_single" name="output_single" label="Single-End output of ${tool.name} on ${on_string}">
|
|
71 <filter>(readtype['single_or_paired'] == 'se')</filter>
|
|
72 </data>
|
|
73
|
|
74 <data format_source="input_paired1" name="output_paired1" label="Paired-End forward strand output of ${tool.name} on ${on_string}">
|
|
75 <filter>(readtype['single_or_paired'] == 'pe')</filter>
|
|
76 </data>
|
|
77
|
|
78 <data format_source="input_paired2" name="output_paired2" label="Paired-End reverse strand output of ${tool.name} on ${on_string}">
|
|
79 <filter>(readtype['single_or_paired'] == 'pe')</filter>
|
|
80 </data>
|
|
81
|
|
82 <data format_source="input_paired1" name="output_paired_single" label="Singletons from Paired-End output of ${tool.name} on ${on_string}">
|
|
83 <filter>(readtype['single_or_paired'] == 'pe')</filter>
|
|
84 </data>
|
|
85 </outputs>
|
|
86
|
|
87 <help>
|
|
88 Most modern sequencing technologies produce reads that have deteriorating quality towards the 3'-end and some towards the 5'-end as well. Incorrectly called bases in both regions negatively impact assembles, mapping, and downstream bioinformatics analyses.
|
|
89
|
|
90 Sickle is a tool that uses sliding windows along with quality and length thresholds to determine when quality is sufficiently low to trim the 3'-end of reads and also determines when the quality is sufficiently high enough to trim the 5'-end of reads. It will also discard reads based upon the length threshold. It takes the quality values and slides a window across them whose length is 0.1 times the length of the read. If this length is less than 1, then the window is set to be equal to the length of the read. Otherwise, the window slides along the quality values until the average quality in the window rises above the threshold, at which point the algorithm determines where within the window the rise occurs and cuts the read and quality there for the 5'-end cut. Then when the average quality in the window drops below the threshold, the algorithm determines where in the window the drop occurs and cuts both the read and quality strings there for the 3'-end cut. However, if the length of the remaining sequence is less than the minimum length threshold, then the read is discarded entirely. 5'-end trimming can be disabled.
|
|
91
|
|
92 Sickle also has an option to discard reads with any Ns in them.
|
|
93
|
|
94 Sickle supports three types of quality values: Illumina, Solexa, and Sanger. Note that the Solexa quality setting is an approximation (the actual conversion is a non-linear transformation). The end approximation is close. Illumina quality refers to qualities encoded with the CASAVA pipeline between versions 1.3 and 1.7. Illumina quality using CASAVA >= 1.8 is Sanger encoded.
|
|
95
|
|
96 Note that Sickle will remove the 2nd fastq record header (on the "+" line) and replace it with simply a "+". This is the default format for CASAVA >= 1.8.
|
|
97
|
|
98 Sickle also supports gzipped file inputs.
|
|
99 </help>
|
|
100
|
|
101 </tool>
|