diff tools/mira4/mira4_de_novo.xml @ 20:aeb3e35f8236 draft

Uploaded v0.0.4 preview, made MAF and BAM output optional
author peterjc
date Tue, 10 Jun 2014 10:11:58 -0400
parents 8487d70e82aa
children 4abe8d59a438
line wrap: on
line diff
--- a/tools/mira4/mira4_de_novo.xml	Wed May 21 06:56:06 2014 -0400
+++ b/tools/mira4/mira4_de_novo.xml	Tue Jun 10 10:11:58 2014 -0400
@@ -1,4 +1,4 @@
-<tool id="mira_4_0_de_novo" name="MIRA v4.0 de novo assember" version="0.0.3">
+<tool id="mira_4_0_de_novo" name="MIRA v4.0 de novo assember" version="0.0.4">
     <description>Takes Sanger, Roche 454, Solexa/Illumina, Ion Torrent and PacBio reads</description>
     <requirements>
         <requirement type="binary">mira</requirement>
@@ -8,8 +8,16 @@
         <requirement type="package" version="0.1.19">samtools</requirement>
     </requirements>
     <version_command interpreter="python">mira4.py --version</version_command>
-    <command interpreter="python">
-mira4.py "$manifest" "$out_maf" "$out_bam" "$out_fasta" "$out_log"
+    <command interpreter="python">mira4.py
+--manifest "$manifest"
+#if str($maf_wanted)=="true":
+--maf "$out_maf"
+#end if
+#if str($bam_wanted)=="true":
+--bam "$out_bam"
+#end if
+--fasta "$out_fasta"
+--log "$out_log"
     </command>
     <stdio>
         <!-- Assume anything other than zero is an error -->
@@ -67,12 +75,18 @@
             <param name="filenames" type="data" format="fastq,mira" multiple="true" required="true" label="Read file(s)"
                   help="Multiple files allowed, for example paired reads can be given as two files (MIRA looks at read names to identify pairs)." />
         </repeat>
+        <param name="maf_wanted" type="boolean" label="Output assembly in MIRA's own format?" checked="False" />
+        <param name="bam_wanted" type="boolean" label="Convert assembly into BAM format?" checked="True" />
     </inputs>
     <code file="mira4_validator.py" />
     <outputs>
         <data name="out_fasta" format="fasta" label="MIRA de novo contigs (FASTA)" />
-        <data name="out_bam" format="bam" label="MIRA de novo assembly (BAM)" />
-        <data name="out_maf" format="mira" label="MIRA de novo assembly" />
+        <data name="out_bam" format="bam" label="MIRA de novo assembly (BAM)">
+            <filter>bam_wanted is True</filter>
+        </data>
+        <data name="out_maf" format="mira" label="MIRA de novo assembly">
+            <filter>maf_wanted is True</filter>
+        </data>
         <!-- TODO?
         <data name="out_contigstats" format="tabular" label="MIRA contig stats" />
         -->
@@ -162,6 +176,8 @@
             <param name="technology" value="sanger" />
             <param name="type" value="none" />
             <param name="filenames" value="U13small_m.fastq" ftype="fastqsanger" />
+            <param name="maf_wanted" value="true"/>
+            <param name="bam_wanted" value="true"/>
             <output name="out_fasta" file="U13small_m.mira4_de_novo.fasta" ftype="fasta" />
             <output name="out_bam" file="empty_file.dat" compare="contains" />
             <output name="out_maf" file="empty_file.dat" compare="contains" />
@@ -176,6 +192,8 @@
             <param name="job_quality" value="accurate" />
             <param name="type" value="none" />
             <param name="filenames" value="ecoli.fastq" ftype="fastqsanger" />
+            <param name="maf_wanted" value="true"/>
+            <param name="bam_wanted" value="true"/>
             <output name="out_fasta" file="ecoli.mira4_de_novo.fasta" ftype="fasta" />
             <output name="out_bam" file="empty_file.dat" compare="contains" />
             <output name="out_maf" file="empty_file.dat" compare="contains" />