Mercurial > repos > iuc > trinity_align_and_estimate_abundance
view align_and_estimate_abundance.xml @ 22:2fb4ee002432 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/trinity commit ec26c475a013d89b0f973f29250d660e79d4751f
author | iuc |
---|---|
date | Wed, 20 Sep 2023 14:53:59 +0000 |
parents | b2bbe9a7f1b8 |
children |
line wrap: on
line source
<tool id="trinity_align_and_estimate_abundance" name="Align reads and estimate abundance" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> <description>on a de novo assembly of RNA-Seq data</description> <macros> <import>macros.xml</import> </macros> <expand macro="bio_tools"/> <expand macro="requirements"> <requirement type="package" version="1.3.3">rsem</requirement> </expand> <command detect_errors="aggressive"><![CDATA[ ln -f -s '$transcripts' input.fa && #if $additional_params.gene_map.has_gene_map == "yes": get_Trinity_gene_to_trans_map.pl input.fa > gene_to_trans.map && #else: ln -f -s '$additional_params.gene_map.gene_trans_map' gene_to_trans.map && #end if #if $inputs.paired_or_single == "paired": #if $inputs.left_input.is_of_type('fasta'): ln -s '$inputs.left_input' paired_left.fa && ln -s '$inputs.right_input' paired_right.fa #else if $inputs.left_input.is_of_type('fastqsanger'): ln -s '$inputs.left_input' paired_left.fq && ln -s '$inputs.right_input' paired_right.fq #else: ln -s '$inputs.left_input' paired_left.fq.gz && ln -s '$inputs.right_input' paired_right.fq.gz #end if #else: #if $inputs.input.is_of_type('fasta'): ln -s '$inputs.input' single.fa #else if $inputs.input.is_of_type('fastqsanger'): ln -s '$inputs.input' single.fq #else: ln -s '$inputs.input' single.fq.gz #end if #end if && align_and_estimate_abundance.pl --transcripts input.fa --est_method $method.est_method #if $method.est_method == "RSEM": --aln_method $method.aln_method #end if #if $inputs.paired_or_single == "paired": #if $inputs.left_input.is_of_type('fasta'): --left paired_left.fa --right paired_right.fa --seqType fa #else if $inputs.left_input.is_of_type('fastqsanger'): --left paired_left.fq --right paired_right.fq --seqType fq #else: --left paired_left.fq.gz --right paired_right.fq.gz --seqType fq #end if #if $inputs.strand.is_strand_specific == 'true': --SS_lib_type $inputs.strand.library_type #end if --max_ins_size $inputs.max_ins_size #else: #if $inputs.input.is_of_type('fasta'): --single single.fa --seqType fa #else if $inputs.input.is_of_type('fastqsanger'): --single single.fq --seqType fq #else: --single single.fq.gz --seqType fq #end if #if $inputs.strand.is_strand_specific == 'true': --SS_lib_type $inputs.strand.library_type #end if #end if ## Additional parameters. --gene_trans_map gene_to_trans.map --prep_reference --output_dir output ## CPU --thread_count \${GALAXY_SLOTS:-4} ]]></command> <inputs> <param format="fasta" argument="--transcripts" type="data" label="Transcripts" help="de novo assembly of RNA-Seq data"/> <conditional name="inputs"> <param name="paired_or_single" type="select" label="Paired or Single-end data?"> <option value="paired">Paired</option> <option value="single">Single</option> </param> <when value="paired"> <param name="left_input" argument="--left" type="data" format="fasta,fastqsanger,fastqsanger.gz" label="Left/Forward strand reads" /> <param name="right_input" argument="--right" type="data" format="fasta,fastqsanger,fastqsanger.gz" label="Right/Reverse strand reads" /> <conditional name="strand"> <param name="is_strand_specific" type="select" label="Strand specific data"> <option value="false">No</option> <option value="true">Yes</option> </param> <when value="false"/> <when value="true"> <param name="library_type" argument="--SS_lib_type" type="select" label="Strand-specific Library Type"> <option value="FR">Forward-Reverse</option> <option value="RF">Reverse-Forward</option> </param> </when> </conditional> <param argument="--max_ins_size" type="integer" value="800" min="1" label="Maximum insert size" help="Bowtie -X parameter"/> </when> <when value="single"> <param format="fasta,fastqsanger,fastqsanger.gz" argument="--single" name="input" type="data" label="Single-end reads" help=""/> <conditional name="strand"> <param name="is_strand_specific" type="select" label="Strand specific data"> <option value="false">No</option> <option value="true">Yes</option> </param> <when value="false"/> <when value="true"> <param name="library_type" argument="--SS_lib_type" type="select" label="Strand-specific Library Type"> <option value="F">F</option> <option value="R">R</option> </param> </when> </conditional> </when> </conditional> <conditional name="method"> <param type="select" argument="--est_method" label="Abundance estimation method"> <option value="RSEM">RSEM</option> <option value="salmon">Salmon</option> <option value="kallisto">Kallisto</option> </param> <when value="RSEM"> <param type="select" argument="--aln_method" label="Alignment method"> <option value="bowtie">Bowtie</option> <option value="bowtie2">Bowtie2</option> </param> </when> <when value="salmon"/> <when value="kallisto"/> </conditional> <section name="additional_params" title="Additional Options" expanded="False"> <conditional name="gene_map"> <param name="has_gene_map" type="select" label="Trinity assembly?" help="If the transcripts were not assembled by trinity, additional information is needed"> <option value="yes">Yes</option> <option value="no">No</option> </param> <when value="yes" /> <when value="no"> <param argument="--gene_trans_map" type="data" format="tabular" label="Gene to transcript correspondence ('gene(tab)transcript' lines)" /> </when> </conditional> </section> </inputs> <outputs> <data format="tabular" name="isoforms_counts_rsem" label="${tool.name} on ${on_string}: isoforms counts (RSEM)" from_work_dir="output/RSEM.isoforms.results"> <filter>method['est_method'] == "RSEM"</filter> </data> <data format="tabular" name="genes_counts_rsem" label="${tool.name} on ${on_string}: genes counts (RSEM)" from_work_dir="output/RSEM.genes.results"> <filter>method['est_method'] == "RSEM"</filter> </data> <data format="tabular" name="isoforms_counts_salmon" label="${tool.name} on ${on_string}: isoforms counts (Salmon)" from_work_dir="output/quant.sf"> <filter>method['est_method'] == "salmon"</filter> </data> <data format="tabular" name="genes_counts_salmon" label="${tool.name} on ${on_string}: genes counts (Salmon)" from_work_dir="output/quant.sf.genes"> <filter>method['est_method'] == "salmon"</filter> </data> <data format="tabular" name="isoforms_counts_kallisto" label="${tool.name} on ${on_string}: isoforms counts (Kallisto)" from_work_dir="output/abundance.tsv"> <filter>method['est_method'] == "kallisto"</filter> </data> <data format="tabular" name="genes_counts_kallisto" label="${tool.name} on ${on_string}: genes counts (Kallisto)" from_work_dir="output/abundance.tsv.genes"> <filter>method['est_method'] == "kallisto"</filter> </data> </outputs> <tests> <test expect_num_outputs="2"> <param name="paired_or_single" value="paired"/> <param name="left_input" value="reads.left.fq.gz"/> <param name="right_input" value="reads.right.fq.gz"/> <param name="transcripts" value="raw/Trinity.fasta"/> <param name="library_type" value="RF"/> <param name="est_method" value="RSEM"/> <param name="aln_method" value="bowtie"/> <param name="has_gene_map" value="yes"/> <param name="gene_trans_map" value="raw/Trinity.map" /> <output name="isoforms_counts_rsem"> <assert_contents> <has_line_matching expression="TRINITY_DN0_c0_g1_i1	.*" /> <has_n_columns n="8" /> </assert_contents> </output> <output name="genes_counts_rsem"> <assert_contents> <has_line_matching expression="TRINITY_DN0_c0_g1	.*" /> <has_n_columns n="7" /> </assert_contents> </output> </test> <test expect_num_outputs="2"> <param name="paired_or_single" value="paired"/> <param name="left_input" value="reads.left.fq"/> <param name="right_input" value="reads.right.fq"/> <param name="transcripts" value="raw/Trinity.fasta"/> <param name="library_type" value="RF"/> <param name="est_method" value="RSEM"/> <param name="aln_method" value="bowtie2"/> <param name="has_gene_map" value="yes"/> <param name="gene_trans_map" value="raw/Trinity.map" /> <output name="isoforms_counts_rsem"> <assert_contents> <has_line_matching expression="TRINITY_DN0_c0_g1_i1	.*" /> <has_n_columns n="8" /> </assert_contents> </output> <output name="genes_counts_rsem"> <assert_contents> <has_line_matching expression="TRINITY_DN0_c0_g1	.*" /> <has_n_columns n="7" /> </assert_contents> </output> </test> <test expect_num_outputs="2"> <param name="paired_or_single" value="paired"/> <param name="left_input" value="reads.left.fq"/> <param name="right_input" value="reads.right.fq"/> <param name="transcripts" value="raw/Trinity.fasta"/> <param name="library_type" value="RF"/> <param name="est_method" value="salmon"/> <param name="aln_method" value="bowtie"/> <param name="has_gene_map" value="yes"/> <param name="gene_trans_map" value="raw/Trinity.map" /> <output name="isoforms_counts_salmon"> <assert_contents> <has_line_matching expression="TRINITY_DN2_c3_g1_i1	.*" /> <has_n_columns n="5" /> </assert_contents> </output> <output name="genes_counts_salmon"> <assert_contents> <has_line_matching expression="TRINITY_DN3_c0_g1.*" /> <has_n_columns n="5" /> </assert_contents> </output> </test> <test expect_num_outputs="2"> <param name="paired_or_single" value="paired"/> <param name="left_input" value="reads.left.fq"/> <param name="right_input" value="reads.right.fq"/> <param name="transcripts" value="raw/Trinity.fasta"/> <param name="library_type" value="RF"/> <param name="est_method" value="kallisto"/> <param name="has_gene_map" value="yes"/> <param name="gene_trans_map" value="raw/Trinity.map" /> <output name="isoforms_counts_kallisto"> <assert_contents> <has_line_matching expression="TRINITY_DN1_c0_g1_i1	.*" /> <has_n_columns n="5" /> </assert_contents> </output> <output name="genes_counts_kallisto"> <assert_contents> <has_line_matching expression="TRINITY_DN1_c0_g1	.*" /> <has_n_columns n="5" /> </assert_contents> </output> </test> </tests> <help> <![CDATA[ Trinity_ assembles transcript sequences from Illumina RNA-Seq data. This tool estimates the abundance of isoforms and genes of a transcriptome assembled with Trinity, using FastQ of a specific sample. **Inputs** It takes as input a transcriptome assembled with Trinity and the reads from a RNASeq sample. You have to choose between several counting methods. If you dont align on a Trinity assembly, you need to provide a file of the following (tabular) format to map gene ids to transcript ids: =========== ================ gene1 transcript1 ----------- ---------------- gene2 transcript2 =========== ================ **Output** This tool will produce 2 tabular files, with counts for isoforms and genes respectively. More details on this page: .. _Trinity manual: https://github.com/trinityrnaseq/trinityrnaseq/wiki/Trinity-Transcript-Quantification .. _Trinity: https://github.com/trinityrnaseq/trinityrnaseq/wiki ]]> </help> <expand macro="citation" /> </tool>