diff small_rna_maps.xml @ 2:507383cce5a8 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_maps commit edbb53cb13b52bf8e71c562fa8acc2c3be2fb270
author artbio
date Mon, 14 Aug 2017 05:52:34 -0400
parents 40972a8dfab9
children ed8b0142538d
line wrap: on
line diff
--- a/small_rna_maps.xml	Mon Jul 24 12:31:04 2017 -0400
+++ b/small_rna_maps.xml	Mon Aug 14 05:52:34 2017 -0400
@@ -1,4 +1,4 @@
-<tool id="small_rna_maps" name="small_rna_maps" version="0.9.1">
+<tool id="small_rna_maps" name="small_rna_maps" version="1.0.0">
   <description></description>
   <requirements>
         <requirement type="package" version="1.11.2=py27_0">numpy</requirement>
@@ -11,79 +11,77 @@
       <exit_code range="1:" level="fatal" description="Tool exception" />
   </stdio>
   <command detect_errors="exit_code"><![CDATA[
-      #for $file in $input
+      #for $file in $inputs
           samtools index '$file' &&
       #end for
       python '$__tool_directory__'/small_rna_maps.py 
-      --input 
-      #for $file in $input
+          --inputs 
+      #for $file in $inputs
            '$file'
       #end for
-          --sample_name
-      #for $sample in $input
+          --sample_names
+      #for $sample in $inputs
           '$sample.name'
       #end for
-      #if $extra_plot == 'Sizes':
-          --sizes '$output_sizes'
-      #end if
-      --output '$output_tab' &&
-       Rscript '$__tool_directory__'/small_rna_maps.r --output_tab '$output_tab' 
-               --output_pdf '$output_pdf'
-      #if $extra_plot != 'Sizes':
-          --extra_plot '$extra_plot'
-      #else
-          --sizes $output_sizes
-      #end if
+          --plot_methods Counts $extra_plot
+          --outputs $output_tab $extra_output_tab &&
+      Rscript '$__tool_directory__'/small_rna_maps.r
+          --first_dataframe '$output_tab' 
+          --extra_dataframe '$extra_output_tab'
+          --extra_plot_method '$extra_plot'
+          --output_pdf '$output_pdf'
   ]]></command>
  <inputs>
-   <param name="input" type="data" format="bam" label="Select multiple alignments to parse" multiple="True"/> 
+   <param name="inputs" type="data" format="bam" label="Select multiple alignments to parse" multiple="True"/> 
    <param name="extra_plot" type="select" label="select the type of extra plot in addition to read map">
        <option value="Coverage">Coverage</option> 
        <option value="Mean">Mean Sizes</option> 
        <option value="Median">Median Sizes</option>
-       <option value="Sizes">Size Distributions</option>
+       <option value="Size">Size Distributions</option>
     </param>
  </inputs>
 
  <outputs>
-   <data format="tabular" name="output_tab" label="Map dataframe" />
-   <data format="tabular" name="output_sizes" label="Size dataframe" >
-       <filter>extra_plot == "Sizes"</filter>
-   </data>
+   <data format="tabular" name="output_tab" label="Read Count dataframe" />
+   <data format="tabular" name="extra_output_tab" label="$extra_plot dataframe" />
    <data format="pdf" name="output_pdf" label="PDF file" />
 
 </outputs>
 
     <tests>
         <test>
-            <param name="input" value="input1.bam,input2.bam" ftype="bam"/>
+            <param name="inputs" value="input1.bam,input2.bam" ftype="bam"/>
             <param name="extra_plot" value="Mean" />
-            <output file="output.tab" name="output_tab" />
+            <output file="readmap.tab" name="output_tab" />
+            <output file="mean.tab" name="extra_output_tab" />
             <output file="mean.pdf" name="output_pdf" />
         </test>
         <test>
-            <param name="input" value="input1.bam,input1.bam" ftype="bam"/>
+            <param name="inputs" value="input1.bam,input1.bam" ftype="bam"/>
             <param name="extra_plot" value="Mean" />
-            <output file="doubled.tab" name="output_tab" />
+            <output file="doubled_readmap.tab" name="output_tab" />
+            <output file="double_mean.tab" name="extra_output_tab" />
             <output file="doubled_mean.pdf" name="output_pdf" />
         </test>
         <test>
-            <param name="input" value="input1.bam,input2.bam" ftype="bam"/>
+            <param name="inputs" value="input1.bam,input2.bam" ftype="bam"/>
             <param name="extra_plot" value="Median" />
-            <output file="output.tab" name="output_tab" />
+            <output file="readmap.tab" name="output_tab" />
+            <output file="median.tab" name="extra_output_tab" />
             <output file="median.pdf" name="output_pdf" />
         </test>
         <test>
-            <param name="input" value="input1.bam,input2.bam" ftype="bam"/>
+            <param name="inputs" value="input1.bam,input2.bam" ftype="bam"/>
             <param name="extra_plot" value="Coverage" />
-            <output file="output.tab" name="output_tab" />
+            <output file="readmap.tab" name="output_tab" />
+            <output file="coverage.tab" name="extra_output_tab" />
             <output file="coverage.pdf" name="output_pdf" />
         </test>
         <test>
-            <param name="input" value="input1.bam,input2.bam" ftype="bam"/>
-            <param name="extra_plot" value="Sizes" />
-            <output file="output.tab" name="output_tab" />
-            <output file="sizes.tab" name="output_sizes" />
+            <param name="inputs" value="input1.bam,input2.bam" ftype="bam"/>
+            <param name="extra_plot" value="Size" />
+            <output file="readmap.tab" name="output_tab" />
+            <output file="size.tab" name="extra_output_tab" />
             <output file="sizes.pdf" name="output_pdf" />
         </test>
     </tests>
@@ -99,7 +97,7 @@
 
 **Inputs**
 
-bam alignment files that *must* be
+bam alignment files that must be
 
   - single-read
   - sorted