changeset 4:b818b23df1e0 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/kallisto/ commit 011de86c970114d5ae22f76e9ee8e2d86c190063
author iuc
date Sat, 09 Dec 2017 05:33:38 -0500
parents 2754990eb583
children 10c98fab6c5a
files kallisto_quant.xml macros.xml
diffstat 2 files changed, 30 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/kallisto_quant.xml	Tue Sep 05 03:25:35 2017 -0400
+++ b/kallisto_quant.xml	Sat Dec 09 05:33:38 2017 -0500
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<tool id="kallisto_quant" name="Kallisto quant" version="@VERSION@.2">
+<tool id="kallisto_quant" name="Kallisto quant" version="@VERSION@.3">
     <description>- quantify abundances of RNA-Seq transcripts</description>
     <macros>
         <import>macros.xml</import>
@@ -7,12 +7,12 @@
     <expand macro="requirements" />
     <command detect_errors="exit_code">
         <![CDATA[
-        #if $reference_genome.reference_genome_source == "history":
-            ln -s '$reference_genome.reference' reference.fa &&
+        #if $reference_transcriptome.reference_transcriptome_source == "history":
+            ln -s '$reference_transcriptome.reference' reference.fa &&
             kallisto index reference.fa -i reference.kallisto &&
             #set index_path = 'reference.kallisto'
         #else:
-            #set index_path = $reference_genome.index.fields.path
+            #set index_path = $reference_transcriptome.index.fields.path
         #end if
         kallisto quant -i '$index_path'
             $bias --bootstrap-samples $bootstrap_samples --seed $seed $fusion $pseudobam
@@ -46,23 +46,7 @@
         ]]>
     </command>
     <inputs>
-        <conditional name="reference_genome">
-            <param name="reference_genome_source" type="select" label="Reference genome for quantification">
-                <option value="indexed" selected="true">Use a built-in genome</option>
-                <option value="history">Use a genome from history</option>
-            </param>
-            <when value="indexed">
-                <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact your Galaxy administrator">
-                    <options from_data_table="kallisto_indexes">
-                        <filter type="sort_by" column="2" />
-                        <validator type="no_options" message="No genomes are available for the selected input dataset" />
-                    </options>
-                </param>
-            </when>
-            <when value="history">
-                <param name="reference" type="data" format="fasta" label="FASTA reference genome" />
-            </when>
-        </conditional>
+        <expand macro="reference_input" />
         <conditional name="single_paired">
             <param name="single_paired_selector" type="select" label="Single-end or paired reads">
                 <option value="single" selected="true">Single-end</option>
@@ -107,7 +91,7 @@
     </outputs>
     <tests>
         <test>
-            <param name="reference_genome_source" value="history" />
+            <param name="reference_transcriptome_source" value="history" />
             <param name="reference" ftype="fasta" value="mm10_chrM.fa" />
             <param name="single_paired_selector" value="paired" />
             <param name="collection_selector" value="datasets" />
@@ -116,7 +100,7 @@
             <output name="abundance_tab" file="kallisto_quant_out1.tab" ftype="tabular" />
         </test>
         <test>
-            <param name="reference_genome_source" value="history" />
+            <param name="reference_transcriptome_source" value="history" />
             <param name="reference" ftype="fasta" value="mm10_chrM.fa" />
             <param name="single_paired_selector" value="paired" />
             <param name="collection_selector" value="collection" />
@@ -129,7 +113,7 @@
             <output name="abundance_tab" file="kallisto_quant_out2.tab" ftype="tabular" />
         </test>
         <test>
-            <param name="reference_genome_source" value="history" />
+            <param name="reference_transcriptome_source" value="history" />
             <param name="reference" ftype="fasta" value="mm10_chrM.fa" />
             <param name="single_paired_selector" value="single" />
             <param name="collection_selector" value="collection" />
@@ -137,7 +121,7 @@
             <output name="abundance_tab" file="kallisto_quant_out3.tab" ftype="tabular" />
         </test>
         <test>
-            <param name="reference_genome_source" value="history" />
+            <param name="reference_transcriptome_source" value="history" />
             <param name="reference" ftype="fasta" value="felCat8_chrM.fa" />
             <param name="single_paired_selector" value="paired" />
             <param name="collection_selector" value="datasets" />
@@ -148,7 +132,7 @@
             <output name="pseudobam_output" file="kallisto_quant_out4.bam" ftype="bam" />
         </test>
         <test>
-            <param name="reference_genome_source" value="cached" />
+            <param name="reference_transcriptome_source" value="cached" />
             <param name="single_paired_selector" value="paired" />
             <param name="collection_selector" value="datasets" />
             <param name="pseudobam" value="true" />
@@ -158,7 +142,7 @@
             <output name="pseudobam_output" file="kallisto_quant_out5.bam" ftype="bam" />
         </test>
         <test>
-            <param name="reference_genome_source" value="history" />
+            <param name="reference_transcriptome_source" value="history" />
             <param name="reference" ftype="fasta" value="hg38_transcripts.fa" />
             <param name="single_paired_selector" value="paired" />
             <param name="collection_selector" value="datasets" />
--- a/macros.xml	Tue Sep 05 03:25:35 2017 -0400
+++ b/macros.xml	Sat Dec 09 05:33:38 2017 -0500
@@ -12,4 +12,23 @@
             <citation type="doi">doi:10.1038/nbt.3519</citation>
         </citations>
     </xml>
+    <xml name="reference_input">
+        <conditional name="reference_transcriptome">
+            <param name="reference_transcriptome_source" type="select" label="Reference transcriptome for quantification">
+                <option value="indexed" selected="true">Use a built-in transcriptome</option>
+                <option value="history">Use a transcriptome from history</option>
+            </param>
+            <when value="indexed">
+                <param name="index" type="select" label="Select a reference transcriptome" help="If your transcriptome of interest is not listed, contact your Galaxy administrator">
+                    <options from_data_table="kallisto_indexes">
+                        <filter type="sort_by" column="2" />
+                        <validator type="no_options" message="No transcriptomes are available for the selected input dataset" />
+                    </options>
+                </param>
+            </when>
+            <when value="history">
+                <param name="reference" type="data" format="fasta" label="FASTA reference transcriptome" />
+            </when>
+        </conditional>
+    </xml>
 </macros>
\ No newline at end of file