diff kallisto_quant.xml @ 9:2568a3b975cb draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/kallisto/ commit 168993a4e148506b1d3998c536caa2e501c36ccf
author iuc
date Wed, 31 May 2023 20:09:49 +0000
parents c971db6f0fe5
children 4f9c4e6566e5
line wrap: on
line diff
--- a/kallisto_quant.xml	Sun Jul 18 17:54:19 2021 +0000
+++ b/kallisto_quant.xml	Wed May 31 20:09:49 2023 +0000
@@ -1,9 +1,11 @@
-<?xml version="1.0"?>
 <tool id="kallisto_quant" name="Kallisto quant" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05">
-    <description>- quantify abundances of RNA-Seq transcripts</description>
+    <description>quantify abundances of RNA-Seq transcripts</description>
     <macros>
         <import>macros.xml</import>
     </macros>
+    <xrefs>
+        <xref type="bio.tools">kallisto</xref>
+    </xrefs>
     <expand macro="requirements" />
     <command detect_errors="exit_code">
         <![CDATA[
@@ -15,7 +17,7 @@
             #set index_path = $reference_transcriptome.index.fields.path
         #end if
         kallisto quant -i '$index_path'
-            $bias --bootstrap-samples $bootstrap_samples --seed $seed $fusion $lib_type $pseudobam
+            $bias --bootstrap-samples $bootstrap_samples --seed $seed $fusion  $pseudobam
             #if $pseudobam:
                 -o .
             #else:
@@ -29,6 +31,7 @@
                 --sd $single_paired.sd
                 '$single_reads'
             #else:
+                $single_paired.lib_type
                 #if str($single_paired.collection.collection_selector) == 'datasets':
                     #set $forward_reads = $single_paired.collection.forward
                     #set $reverse_reads = $single_paired.collection.reverse
@@ -39,6 +42,12 @@
                 #set $reads = "'%s' '%s'" % ($forward_reads, $reverse_reads)
                 $reads
             #end if
+            $single_overhang
+            #if $genomebam_option.selector
+                $genomebam_option.selector
+                --gtf $genomebam_option.gtf
+                --chromosomes $genomebam_option.chromosomes
+            #end if
             #if $pseudobam:
                 && samtools sort --no-PG -O bam -@ \${GALAXY_SLOTS:-1} -T "\${TMPDIR:-.}" -o '$pseudobam_output' pseudoalignments.bam
             #end if
@@ -54,7 +63,7 @@
             </param>
             <when value="single">
                 <param name="reads" type="data" format="fastq,fastq.gz" label="Reads in FASTQ format" />
-                <param name="fragment_length" argument="--fragment-length" type="integer" value="200" label="Average fragment length" help="Illumina typically produces reads of 180-200bp" />
+                <param argument="--fragment-length" type="integer" value="200" label="Average fragment length" help="Illumina typically produces reads of 180-200bp" />
                 <param argument="--sd" type="integer" value="20" label="Estimated standard deviation of fragment length" />
             </when>
             <when value="paired">
@@ -71,18 +80,34 @@
                         <param name="reads" type="data_collection" format="fastq,fastq.gz" collection_type="paired" label="Collection of reads" />
                     </when>
                 </conditional>
+                <param name="lib_type" type="select" label="Library strandness information">
+                    <option value="">Unstranded</option>
+                    <option value="--fr-stranded">Strand specific reads, first read forward</option>
+                    <option value="--rf-stranded">Strand specific reads, first read reverse</option>
+                </param>
             </when>
         </conditional>
-        <param argument="--bias" type="boolean" truevalue="--bias" falsevalue="" label="Perform sequence based bias correction" />
-        <param name="bootstrap_samples" argument="--bootstrap-samples" type="integer" value="0" label="Number of bootstrap samples" help="default: 0" />
-        <param argument="--seed" type="integer" value="42" label="Seed for the bootstrap sampling" help="default: 42" />
-        <param argument="--fusion" type="boolean" truevalue="--fusion" falsevalue="" label="Search for fusions" help="for Pizzly" />
-        <param name="lib_type" type="select" label="Library strandness information">
-            <option value="">Unstranded</option>
-            <option value="--fr-stranded">Strand specific reads, first read forward</option>
-            <option value="--rf-stranded">Strand specific reads, first read reverse</option>
-        </param>
+        <param argument="--bias" type="boolean" truevalue="--bias" falsevalue="" label="Perform sequence based bias correction" help="It allows to learn 
+            parameters for a model of sequences specific bias and corrects the abundances accordlingly"/>
+        <param argument="--bootstrap-samples" type="integer" value="0" label="Number of bootstrap samples" help="Running with bootstraps 
+            is mandatory if you want to perform differential expression analysis of isoforms with Sleuth.Default: 0" />
+        <param argument="--fusion" type="boolean" truevalue="--fusion" falsevalue="" label="Search for fusions" help="It generates the required files for Pizzly. This option does normal quantification, but 
+            additionally looks for reads that do not pseudoalign because they are potentially from fusion genes." />
+        <param argument="--single-overhang" type="boolean" truevalue="--single-overhang" falsevalue="" checked="false" label="Single overhang" help="Include reads where 
+            unobserved rest of fragment is predicted to lie outside a transcript" />
         <param argument="--pseudobam" type="boolean" truevalue="--pseudobam" falsevalue="" label="Output pseudoalignments in BAM format" />
+        <conditional name="genomebam_option">
+            <param name="selector" type="select" label="Project pseudoalignments to genome">
+                <option value="--genomebam">Enabled</option>
+                <option value="" selected="true">Disabled</option>
+            </param>
+            <when value="--genomebam">
+                <param argument="--gtf" type="data" format="gtf" label="GTF file" help="GTF file for transcriptome information" />
+                <param argument="--chromosomes" type="data" format="tabular" label="Chromosome names and lengths"/>
+            </when>
+            <when value=""/>
+        </conditional>
+        <param argument="--seed" type="integer" value="42" label="Seed for the bootstrap sampling" help="Default: 42" />
     </inputs>
     <outputs>
         <data format="h5" name="abundance_h5" from_work_dir="abundance.h5" label="${tool.name} on ${on_string}: Abundances (HDF5)" />
@@ -170,7 +195,25 @@
             <param name="reverse" ftype="fastq" dbkey="hg38" value="hg38_R.fq.gz" />
             <output name="fusion_output" file="fusion.txt" ftype="tabular" />
         </test>
-
+        <test>
+            <param name="reference_transcriptome_source" value="history" />
+            <param name="reference" ftype="fasta" value="transcripts.fasta" />
+            <param name="single_paired_selector" value="paired" />
+            <param name="collection_selector" value="datasets" />
+            <param name="forward" ftype="fastq" value="reads_forward.fastq.gz" />
+            <param name="reverse" ftype="fastq" value="reads_reverse.fastq.gz" />
+            <conditional name="genomebam_option">
+                <param name="selector" value="--genomebam"/>
+                <param name="gtf" value="annotation.gtf.gz"/>
+                <param name="chromosomes" value="chromosome_size.tabular"/>
+            </conditional>
+            <output name="abundance_tab" file="kallisto_quant_out7.tab" ftype="tabular" />
+            <assert_command>
+                <has_text text="--genomebam" />
+                <has_text text="--chromosomes" />
+                <has_text text="--gtf" />
+            </assert_command>
+        </test>
     </tests>
     <help>
  <![CDATA[