diff dada2_filterAndTrim.xml @ 3:e4b415aa4c84 draft

planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/topic/dada2/tools/dada2 commit 5b1603bbcd3f139cad5c876be83fcb39697b5613-dirty
author matthias
date Mon, 29 Apr 2019 08:57:57 -0400
parents ea3c356bff55
children ea57169fd0d0
line wrap: on
line diff
--- a/dada2_filterAndTrim.xml	Tue Apr 09 07:05:06 2019 -0400
+++ b/dada2_filterAndTrim.xml	Mon Apr 29 08:57:57 2019 -0400
@@ -6,8 +6,8 @@
     <expand macro="requirements"/>
     <expand macro="version_command"/>
     <command detect_errors="exit_code"><![CDATA[
-Rscript '$dada2_script' &&
-sed -i '1!b;s/^/#dataset/' $outtab
+Rscript '$dada2_script'
+## && sed -i '1!b;s/^/#dataset/' $outtab
     ]]></command>
     <configfiles>
         <configfile name="dada2_script"><![CDATA[
@@ -67,7 +67,7 @@
 ftout <- filterAndTrim(fwd, filt.fwd, rev = rev, filt.rev,  compress = TRUE,
     truncQ = truncQ, truncLen = truncLen, trimLeft = trimLeft, trimRight = trimRight, maxLen = maxLen,
     minLen = minLen, maxN = maxN, minQ = minQ, maxEE = maxEE, rm.phix = $rmPhiX, orient.fwd = '$orientFwd')
-    
+
 rownames(ftout) <- c( '$paired_cond.reads.element_identifier' )
 write.table(ftout, "$outtab", quote=F, sep="\t", col.names=NA)
     ]]></configfile>
@@ -96,10 +96,10 @@
             <when value="yes">
                 <expand macro="trimmers"/>
                 <expand macro="filters"/>
-            </when> 
+            </when>
         </conditional>
-        <param name="rmPhiX" truevalue="TRUE" falsevalue="FALSE" type="boolean" checked="true" label="Discard reads matching the PhiX genome" />
-        <param name="orientFwd" type="text" value="" optional="true" label="String present at the start of valid reads" help="see below"/>
+        <param argument="rmPhiX" truevalue="TRUE" falsevalue="FALSE" type="boolean" checked="true" label="Discard reads matching the PhiX genome" />
+        <param name="orientFwd" argument="orinent.fwd" type="text" value="" optional="true" label="String present at the start of valid reads" help="see below"/>
         <param name="output_statistics" truevalue="TRUE" falsevalue="FALSE" type="boolean" checked="true" label="Output statistics" help="Create extra table with the number of reads pre and post filtering" />
     </inputs>
     <outputs>
@@ -107,13 +107,13 @@
             <data name="forward" format="fastqsanger.gz" from_work_dir="filt_forward.fastq.gz" />
             <data name="reverse" format="fastqsanger.gz" from_work_dir="filt_reverse.fastq.gz" />
             <filter>paired_cond['paired_select'] == 'TRUE'</filter>
-        </collection>   
+        </collection>
         <data name="output" format="fastqsanger.gz" from_work_dir="filt_forward.fastq.gz">
             <filter>paired_cond['paired_select'] == 'FALSE'</filter>
         </data>
         <data name="outtab" format="tabular" label="${tool.name} on ${on_string}: Statistics">
-			<filter>output_statistics</filter>
-		</data>
+            <filter>output_statistics</filter>
+        </data>
     </outputs>
     <tests>
         <!-- paired data -->
@@ -128,8 +128,8 @@
                 </param>
             </conditional>
             <output_collection name="paired_output" count="2">
-                <element name="forward" value="filterAndTrim_paired_F3D0_R1.fq.gz" ftype="fastqsanger.gz" />
-                <element name="reverse" value="filterAndTrim_paired_F3D0_R2.fq.gz" ftype="fastqsanger.gz" />
+                <element name="forward" value="filterAndTrim_F3D0_R1.fq.gz" ftype="fastqsanger.gz" />
+                <element name="reverse" value="filterAndTrim_F3D0_R2.fq.gz" ftype="fastqsanger.gz" />
             </output_collection>
         </test>
         <!-- single end data -->
@@ -197,9 +197,9 @@
 Filters and trims an input FASTQ dataset (can be compressed) based on several user-definable criteria, and outputs a compressed FASTQ data set containing those trimmed reads which passed the filters. For paired end data forward and reverse FASTQ datasets can be provided as pair of FASTQ datasets, in which case filtering is performed on the forward and reverse reads independently, and both reads must pass for the read pair to be in the output.
 
 Usage
------
+.....
 
-**Input** is a FASTQ dataset (or a pair on case of paired end data) containing all reads of a sample. If you have multiple samples it is suggested to organize them in a (paired) collection. The **output** is a (paired) collection of filtered and trimmed paired FASTQ datasets (again one data set or pair per sample). 
+**Input** is a FASTQ dataset (or a pair on case of paired end data) containing all reads of a sample. If you have multiple samples it is suggested to organize them in a (paired) collection. The **output** is a (paired) collection of filtered and trimmed paired FASTQ datasets (again one data set or pair per sample).
 
 Upstream dada2 tools are *dada2: derepFastq* and *dada2: learnErrorRates*. Note that these tools do not work on paired end data. So, if you have paired end data you need to split the generated paired collection into one containing the forward reads and one containing the reverse reads. This can be done by the *unzip collection* tool.
 
@@ -211,7 +211,7 @@
 *Trimming and filtering*:
 
 - Truncation of the read length is enforced after trimming of the right end.
-- The long read filter is applied before trimming and the short read filter after trimming. 
+- The long read filter is applied before trimming and the short read filter after trimming.
 - For details on the calculation of the number of expected errors see also https://doi.org/10.1093/bioinformatics/btv401
 
 
@@ -225,7 +225,9 @@
 This step may be replaced by alternative tools to filter and trim short read data if the following is ensured:
 
 - For paired end data unpaired reads must be removed.
-- There must not be a read containing a non-canonical nucleotide (N). 
+- There must not be a read containing a non-canonical nucleotide (N).
+
+@HELP_OVERVIEW@
     ]]></help>
     <expand macro="citations"/>
 </tool>