9
|
1 <tool id="scythe" name="Scythe" version="0.991">
|
|
2 <description>Trimming adapters/contaminants using a Naive Bayesian classifier</description>
|
|
3
|
|
4 <command>
|
|
5 scythe -a $adapter_file
|
|
6
|
|
7 #if $input_fastq.ext == "fastq":
|
|
8 -q sanger
|
|
9 #else if $input_fastq.ext == "fastqsanger":
|
|
10 -q sanger
|
|
11 #else if $input_fastq.ext == "fastqillumina":
|
|
12 -q illumina
|
|
13 #else if $input_fastq.ext == "fastqsolexa":
|
|
14 -q solexa
|
|
15 #end if
|
|
16
|
|
17 #if str($add_tag) == "add_tag_true":
|
|
18 -t
|
|
19 #end if
|
|
20
|
|
21 #if str($prior) != "":
|
|
22 -p $prior
|
|
23 #end if
|
|
24
|
|
25 #if str($min_match) != "":
|
|
26 -n $min_match
|
|
27 #end if
|
|
28
|
|
29 #if str($min_keep) != "":
|
|
30 -M $min_keep
|
|
31 #end if
|
|
32
|
|
33 #if str($matches_file) == "matches_file_true":
|
|
34 -m $output_matches
|
|
35 #end if
|
|
36
|
|
37 -o $output_trimmed $input_fastq 2>&1
|
|
38 </command>
|
|
39
|
|
40 <inputs>
|
|
41 <param format="fastq, fastqsanger, fastqillumina, fastqsolexa" name="input_fastq" type="data" optional="false" label="FastQ Reads" help="Note: Scythe will infer the quality type of the file from its datatype. I.e., if the datatype is fastqsanger, then the quality type is sanger. The default is fastqsanger."/>
|
|
42
|
|
43 <param format="fasta" name="adapter_file" type="data" optional="false" label="Adapter/Contaminant file (in fasta format)"/>
|
|
44
|
|
45 <param name="add_tag" type="boolean" checked="false" truevalue="add_tag_true" falsevalue="add_tag_false" label="Add a tag to the header indicating that Scythe cut a sequence?"/>
|
|
46
|
|
47 <param name="matches_file" type="boolean" checked="false" truevalue="matches_file_true" falsevalue="matches_file_false" label="Also output another file with details about adapter/contaminant matches?"/>
|
|
48
|
|
49 <param name="prior" value="0.3" type="float" optional="true" label="Prior" help="The prior contamination rate">
|
|
50 <validator type="in_range" min="0" message="Minimum value is 0"/>
|
|
51 </param>
|
|
52
|
|
53 <param name="min_match" value="5" type="integer" optional="true" label="Smallest length adapter/contaminant to consider">
|
|
54 <validator type="in_range" min="0" message="Minimum value is 0"/>
|
|
55 </param>
|
|
56
|
|
57 <param name="min_keep" value="35" type="integer" optional="true" label="Filter sequences less than this length (after trimming)">
|
|
58 <validator type="in_range" min="0" message="Minimum value is 0"/>
|
|
59 </param>
|
|
60 </inputs>
|
|
61
|
|
62 <outputs>
|
|
63 <data format_source="input_fastq" name="output_trimmed" label="Adapter/Contaminant Trimmed FastQ using ${tool.name} on ${on_string}"/>
|
|
64
|
|
65 <data format="txt" name="output_matches" label="Matches of Adapters/Contaminants using ${tool.name} on ${on_string}">
|
|
66 <filter>(matches_file == True)</filter>
|
|
67 </data>
|
|
68 </outputs>
|
|
69
|
|
70 <help>
|
|
71 Scythe uses a Naive Bayesian approach to classify contaminant substrings in sequence reads. It considers quality information, which can make it robust in picking out 3'-end adapters, which often include poor quality bases.
|
|
72
|
|
73 Most next generation sequencing reads have deteriorating quality towards the 3'-end. It's common for a quality-based trimmer to be employed before mapping, assemblies, and analysis to remove these poor quality bases. However, quality-based trimming could remove bases that are helpful in identifying (and removing) 3'-end adapter contaminants. Thus, it is recommended you run Scythe before quality-based trimming, as part of a read quality control pipeline.
|
|
74
|
|
75 The Bayesian approach Scythe uses compares two likelihood models: the probability of seeing the matches in a sequence given contamination, and not given contamination. Given that the read is contaminated, the probability of seeing a certain number of matches and mistmatches is a function of the quality of the sequence. Given the read is not contaminated (and is thus assumed to be random sequence), the probability of seeing a certain number of matches and mismatches is chance. The posterior is calculated across both these likelihood models, and the class (contaminated or not contaminated) with the maximum posterior probability is the class selected.
|
|
76
|
|
77 Scythe will infer the quality type from the datatype of the file.
|
|
78 </help>
|
|
79
|
|
80 </tool>
|