diff lumpy_smoove.xml @ 5:bd4135caa3fa draft

"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/lumpy_smoove commit 627bb5344b7d86c0b7ca7235ea3636269613dc32"
author artbio
date Fri, 25 Sep 2020 10:43:20 +0000
parents 49da975ba395
children ad8853ee9909
line wrap: on
line diff
--- a/lumpy_smoove.xml	Thu Aug 27 17:14:25 2020 -0400
+++ b/lumpy_smoove.xml	Fri Sep 25 10:43:20 2020 +0000
@@ -1,4 +1,4 @@
-<tool id="lumpy_smoove" name="lumpy_smoove" version="0.6.0">
+<tool id="lumpy_smoove" name="lumpy_smoove" version="0.2.5+galaxy5">
     <description>find structural variants using the smoove workflow</description>
     <macros>
         <import>macro_lumpy_smoove.xml</import>
@@ -17,9 +17,15 @@
         ln -f -s $set_plan.normal_bam.metadata.bam_index normal.bam.bai &&
         ln -s $set_plan.tumor_bam tumor.bam &&
         ln -f -s $set_plan.tumor_bam.metadata.bam_index tumor.bam.bai &&
-    #else
+    #elif $set_plan.plan_choice=='single':
         ln -s $set_plan.single_bam single.bam &&
         ln -f -s $set_plan.single_bam.metadata.bam_index single.bam.bai &&
+    #else:
+        #for $sample in $set_plan.cohort:
+            ln -s $sample ${sample.element_identifier}.bam &&
+            ln -f -s $sample.metadata.bam_index ${sample.element_identifier}.bam.bai &&
+        #end for
+    ls -la &&
     #end if
    
     smoove call --name output
@@ -43,6 +49,7 @@
             <param name="plan_choice" type="select" label="Analyse a single Bam or a pair of Bam (eg normal/tumor)" display="radio">
                 <option value="pair" selected="true">A pair of Bam files</option>
                 <option value="single">A single Bam</option>
+                <option value="cohort">a small cohort of Bam files (less than ~40)</option>
             </param>
             <when value="pair">
                 <param format="bam" name="normal_bam" type="data" label="BAM alignment from the normal sample"/>
@@ -51,6 +58,9 @@
             <when value="single">
                 <param format="bam" name="single_bam" type="data" label="BAM alignment from a single sample"/>
             </when>
+            <when value="cohort">
+                <param name="cohort" type="data_collection" format="bam" label="A collection of bam files" multiple="true"/>
+            </when>
         </conditional>      
 
  
@@ -77,6 +87,24 @@
 
     <tests>
         <test>
+
+            <conditional name="set_plan">
+                <param name="plan_choice" value="cohort"/>
+                <param name="cohort">
+                    <collection type="list">
+                        <element name="1" ftype="bam" value="celegans_RG_1.bam"/>
+                        <element name="2" ftype="bam" value="celegans_RG_2.bam"/>
+                    </collection>
+                </param>
+            </conditional>
+            <param name="reference_source_selector" value="history" />
+            <param name="ref_file" value="chrI-ce11.fa"/>
+            <param name="choices" value="yes"/>
+            <param name="bedmask" value="exclude.bed"/>
+            <param name="prpos" value="no"/>
+            <output name="vcf_call" ftype="vcf" file="result-6.vcf" lines_diff="8"/>
+        </test>
+        <test>
             <param name="reference_source_selector" value="history" />
             <param name="ref_file" value="chrI-ce11.fa"/>
             <param name="normal_bam" value="celegans_RG_1.bam"/>
@@ -132,7 +160,8 @@
 There is a blog-post describing smoove in more detail
 here: https://brentp.github.io/post/smoove/
 
-Currently, this Galaxy tool only wraps smoove for 2 samples (bam normal and tumor inputs),
+Currently, this Galaxy tool only wraps smoove for 1, 2 (bam normal and tumor inputs) or
+a small collection of samples (&lt;40),
 which translates in the command line::
 
     <![CDATA[smoove call --name my-cohort --exclude $bed --fasta $fasta -p $threads --genotype [--removepr] /path/to/*.bam]]>