diff kallisto_quant.xml @ 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
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" />