annotate RSEM_abundance_estimation.xml @ 7:964364c9279f

Fix RSEM tool_dependency changeset_revision
author Jim Johnson <jj@umn.edu>
date Thu, 06 Feb 2014 09:29:58 -0600
parents 8d546ef8cfea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
1 <tool id="RSEM_abundance_estimation" name="RSEM abundance estimation" version="0.0.2">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
2 <description>run RSEM to estimate transcript abundances</description>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
3 <requirements>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
4 <requirement type="package" version="2013_08_14">trinityrnaseq</requirement>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
5 <requirement type="package" version="1.1.17">rsem</requirement>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
6 </requirements>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
7 <command>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
8 \$TRINITY_HOME/util/RSEM_util/run_RSEM_align_n_estimate.pl --transcripts $transcripts
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
9 ## Inputs.
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
10 #if str($read_type.paired_or_single) == "single":
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
11 #if $read_type.single_reads.extension.startswith( "fastq"):
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
12 --seqType fq
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
13 #else
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
14 --seqType fa
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
15 #end if
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
16 --single $read_type.single_reads
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
17 #else
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
18 #if $read_type.left_reads.extension.startswith( "fastq"):
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
19 --seqType fq
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
20 #else
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
21 --seqType fa
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
22 #end if
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
23 --left $read_type.left_reads
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
24 --right $read_type.right_reads
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
25 #end if
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
26 #if $transcript.source == "other":
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
27 --no_group_by_component
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
28 --gene_trans_map $transcript.gene_trans_map
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
29 #end if
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
30 </command>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
31 <inputs>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
32 <param name="transcripts" type="data" format="fasta" label="transcripts_fasta" help="Fasta sequences for which reads are aligned." />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
33 <conditional name="read_type">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
34 <param name="paired_or_single" type="select" label="Paired or Single-end data?">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
35 <option value="paired">Paired</option>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
36 <option value="single">Single</option>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
37 </param>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
38 <when value="paired">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
39 <param name="left_reads" type="data" format="fasta,fastq" label="left reads" help="" />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
40 <param name="right_reads" type="data" format="fasta,fastq" label="right reads" help="" />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
41 <param name="ss_lib_type" type="select" label="strand-specific library type">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
42 <option value="RF">RF</option>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
43 <option value="FR">FR</option>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
44 </param>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
45 </when>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
46 <when value="single">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
47 <param name="single_reads" type="data" format="fasta,fastq" label="single reads" help="" />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
48 <param name="ss_lib_type" type="select" label="strand-specific library type">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
49 <option value="F">F</option>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
50 <option value="R">R</option>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
51 </param>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
52 </when>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
53 </conditional>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
54 <conditional name="transcript">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
55 <param name="source" type="select" label="Transcripts Source">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
56 <option value="trinity">Trinity</option>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
57 <option value="other">NOT trinity</option>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
58 </param>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
59 <when value="trinity"/>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
60 <when value="other">
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
61 <param name="gene_trans_map" type="data" format="tabular" optional="true" label="Map of gene ids to transcript (isoform) ids" >
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
62 <help>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
63 Each line of should be of the form: gene_id transcript_id ( with the two fields separated by a tab character )
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
64 </help>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
65 </param>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
66 </when>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
67 </conditional>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
68 </inputs>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
69 <stdio>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
70 <exit_code range="1:" level="fatal" description="Error Running RSEM" />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
71 </stdio>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
72 <outputs>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
73 <data format="text" name="transcript_counts" label="${tool.name} on ${on_string}: Isoform Counts" from_work_dir="RSEM.isoforms.results"/>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
74 <data format="text" name="gene_counts" label="${tool.name} on ${on_string}: Gene counts" from_work_dir="RSEM.genes.results"/>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
75 </outputs>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
76 <tests>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
77 <test>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
78 <param name="target" value="trinity/Trinity.fasta" />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
79 <param name="aligner" value="bowtie" />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
80 <param name="paired_or_single" value="single" />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
81 <param name="library_type" value="None" />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
82 <param name="input" value="trinity/reads.left.fq" />
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
83 </test>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
84 </tests>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
85 <help>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
86 .. _Trinity: http://trinityrnaseq.sourceforge.net
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
87
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
88 $TRINITY_HOME/util/RSEM_util/run_RSEM_align_n_estimate.pl --transcripts Trinity.fasta \
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
89 --seqType fq --left left.reads.fq --right right.reads.fq
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
90 </help>
8d546ef8cfea Add RSEM_abundance_estimation
Jim Johnson <jj@umn.edu>
parents:
diff changeset
91 </tool>