changeset 2:8e5357ca8ebd draft

Uploaded
author nikhil-joshi
date Tue, 06 Aug 2013 23:13:27 -0400
parents 6833c884a751
children b88a9826ec92
files scythe/scythe.xml
diffstat 1 files changed, 24 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/scythe/scythe.xml	Tue Aug 06 23:13:08 2013 -0400
+++ b/scythe/scythe.xml	Tue Aug 06 23:13:27 2013 -0400
@@ -2,7 +2,17 @@
 	<description>Trimming adapters/contaminants using a Naive Bayesian classifier</description>
 
 	<command>
-		scythe --quiet -a $adapter_file -q $qual_type
+		scythe --quiet -a $adapter_file
+
+                #if $input_fastq.ext == "fastq":
+                -q sanger
+                #else if $input_fastq.ext == "fastqsanger":
+                -q sanger
+                #else if $input_fastq.ext == "fastqillumina":
+                -q illumina
+                #else if $input_fastq.ext == "fastqsolexa":
+                -q solexa
+                #end if
 
 		#if str($add_tag) == "add_tag_true":
 		-t
@@ -16,6 +26,10 @@
 		-n $min_match
 		#end if
 
+		#if str($min_keep) != "":
+                -M $min_keep
+                #end if
+
 		#if str($matches_file) == "matches_file_true":
 		-m $output_matches
 		#end if
@@ -24,27 +38,25 @@
 	</command>
 
 	<inputs>
-		<param format="fastq, fastqsanger" name="input_fastq" type="data" optional="false" label="FastQ Reads"/>
+		<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."/>
 
 		<param format="fasta" name="adapter_file" type="data" optional="false" label="Adapter/Contaminant file (in fasta format)"/>
 
-		<param name="qual_type" type="select" optional="false" label="Quality type">
-			<option value="illumina" selected="true">Illumina</option>
-			<option value="solexa">Solexa</option>
-			<option value="sanger">Sanger</option>
-		</param>
-
 		<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?"/>
 
 		<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?"/>
 
-		<param name="prior" value="0.05" type="float" optional="true" label="Prior" help="The prior contamination rate">
+		<param name="prior" value="0.3" type="float" optional="true" label="Prior" help="The prior contamination rate">
 			<validator type="in_range" min="0" message="Minimum value is 0"/>
 		</param>
 
-		<param name="min_match" value="0" type="integer" optional="true" label="Smallest length adapter/contaminant to consider">
+		<param name="min_match" value="5" type="integer" optional="true" label="Smallest length adapter/contaminant to consider">
 			<validator type="in_range" min="0" message="Minimum value is 0"/>
 		</param>
+
+		<param name="min_keep" value="35" type="integer" optional="true" label="Filter sequences less than this length (after trimming)">
+                        <validator type="in_range" min="0" message="Minimum value is 0"/>
+                </param>
 	</inputs>
 
 	<outputs>
@@ -61,6 +73,8 @@
 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.
 
 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.
+
+Scythe will infer the quality type from the datatype of the file.
 	</help>
 
 </tool>