diff tools/mira4/mira4_de_novo.xml @ 4:df86ed992a1b draft

Uploaded preview 4, lots of work on mapping
author peterjc
date Fri, 11 Oct 2013 04:28:45 -0400
parents 32f693f6e741
children ffefb87bd414
line wrap: on
line diff
--- a/tools/mira4/mira4_de_novo.xml	Thu Sep 26 12:30:08 2013 -0400
+++ b/tools/mira4/mira4_de_novo.xml	Fri Oct 11 04:28:45 2013 -0400
@@ -1,5 +1,5 @@
 <tool id="mira_4_0_de_novo" name="MIRA v4.0 de novo assember" version="0.0.1">
-    <description>Takes Sanger, Roche, Illumina, Ion Torrent and PacBio data</description>
+    <description>Takes Sanger, Roche 454, Solexa/Illumina, Ion Torrent and PacBio reads</description>
     <requirements>
         <requirement type="python-module">Bio</requirement>
         <requirement type="binary">mira</requirement>
@@ -19,7 +19,7 @@
             <option value="draft">Draft</option>
         </param>
         <repeat name="read_group" title="Read Group" min="1">
-            <param name="technology" type="select" label="Read technology" help="MIRA has different error models for different technologies">
+            <param name="technology" type="select" label="Read technology">
                 <option value="solexa">Solexa/Illumina</option>
                 <option value="sanger">Sanger cappillary sequencing</option>
                 <option value="454">Roche 454</option>
@@ -29,15 +29,14 @@
                 <option value="text">Synthetic reads (database entries, consensus sequences, artifical reads, etc)</option>
 		<!-- TODO reference/backbone as an entry here? -->
             </param>
-	    <repeat name="reads" title="Reads" min="1" help="Paired reads can be combined into one file, or given as two files. MIRA will look at the read names to identify pairs.">
-                <param name="filename" type="data" format="fastq" label="Reads in FASTQ format" />
-            </repeat>
+	    <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>
     </inputs>
     <outputs>
-        <data name="out_fasta" format="fasta" label="MIRA contigs (FASTA)" />
-        <data name="out_maf" format="mira" label="MIRA Assembly" />
-        <data name="out_log" format="txt" label="MIRA log" />
+        <data name="out_fasta" format="fasta" label="MIRA de novo contigs (FASTA)" />
+        <data name="out_maf" format="mira" label="MIRA de novo assembly" />
+        <data name="out_log" format="txt" label="MIRA de novo log" />
     </outputs>
     <configfiles>
         <configfile name="manifest">
@@ -55,16 +54,26 @@
 ## point to a local hard drive (not something like NFS on network).
 
 #for $rg in $read_group
-#=======================================================
+
+##This bar goes into the manifest as a comment line
+#------------------------------------------------------------------------------
+
 readgroup
 technology = ${rg.technology}
 ##MIRA will accept multiple filenames on one data line, or multiple data lines
-#for f in $rg.reads
-data = ${f.filename}
+#for $f in $rg.filenames
+##Must now map Galaxy datatypes to MIRA file types...
+#if $f.ext.startswith("fastq")
+##MIRA doesn't like fastqsanger etc, just plain old fastq:
+data = fastq::$f
+#elif $f.ext == "mira"
+##We're calling *.maf the "mira" format in Galaxy (name space collision)
+data = maf::$f
+#else
+##MIRA is happy with fasta as name,
+data = ${f.ext}::$f
+#end if
 #end for
-### Cheetah doesn't want dollar sign on list comprehension intermediate variables
-###set $files = ' '.join([str(f['filename']) for f in rg['reads']])
-##data = $files
 #end for
         </configfile>
     </configfiles>