comparison cufflinks_wrapper.xml @ 0:b50aacc8ae49

Uploaded tool tarball.
author devteam
date Tue, 01 Oct 2013 12:55:37 -0400
parents
children da11bfc10e81
comparison
equal deleted inserted replaced
-1:000000000000 0:b50aacc8ae49
1 <tool id="cufflinks" name="Cufflinks" version="0.0.6">
2 <!-- Wrapper supports Cufflinks versions v1.3.0 and newer -->
3 <description>transcript assembly and FPKM (RPKM) estimates for RNA-Seq data</description>
4 <requirements>
5 <requirement type="package" version="2.1.1">cufflinks</requirement>
6 </requirements>
7 <version_command>cufflinks 2>&amp;1 | head -n 1</version_command>
8 <command interpreter="python">
9 cufflinks_wrapper.py
10 --input=$input
11 --assembled-isoforms-output=$assembled_isoforms
12 --num-threads="4"
13 -I $max_intron_len
14 -F $min_isoform_fraction
15 -j $pre_mrna_fraction
16 $effective_length_correction
17
18 ## Include reference annotation?
19 #if $reference_annotation.use_ref == "Use reference annotation":
20 -G $reference_annotation.reference_annotation_file
21 #end if
22 #if $reference_annotation.use_ref == "Use reference annotation guide":
23 -g $reference_annotation.reference_annotation_guide_file
24 #end if
25
26 ## Normalization?
27 #if str($do_normalization) == "Yes":
28 -N
29 #end if
30
31 ## Bias correction?
32 #if $bias_correction.do_bias_correction == "Yes":
33 -b
34 #if $bias_correction.seq_source.index_source == "history":
35 --ref_file=$bias_correction.seq_source.ref_file
36 #else:
37 --ref_file="None"
38 #end if
39 --dbkey=${input.metadata.dbkey}
40 --index_dir=${GALAXY_DATA_INDEX_DIR}
41 #end if
42
43 ## Multi-read correct?
44 #if str($multiread_correct) == "Yes":
45 -u
46 #end if
47
48 ## Include global model if available.
49 #if $global_model:
50 --global_model=$global_model
51 #end if
52 </command>
53 <inputs>
54 <param format="sam,bam" name="input" type="data" label="SAM or BAM file of aligned RNA-Seq reads" help=""/>
55 <param name="max_intron_len" type="integer" value="300000" min="1" max="600000" label="Max Intron Length" help=""/>
56 <param name="min_isoform_fraction" type="float" value="0.10" min="0" max="1" label="Min Isoform Fraction" help=""/>
57 <param name="pre_mrna_fraction" type="float" value="0.15" min="0" max="1" label="Pre MRNA Fraction" help=""/>
58 <param name="do_normalization" type="select" label="Perform quartile normalization" help="Removes top 25% of genes from FPKM denominator to improve accuracy of differential expression calls for low abundance transcripts.">
59 <option value="No" selected="true">No</option>
60 <option value="Yes">Yes</option>
61 </param>
62 <conditional name="reference_annotation">
63 <param name="use_ref" type="select" label="Use Reference Annotation">
64 <option value="No" selected="true">No</option>
65 <option value="Use reference annotation">Use reference annotation</option>
66 <option value="Use reference annotation guide">Use reference annotation as guide</option>
67 </param>
68 <when value="No"></when>
69 <when value="Use reference annotation">
70 <param format="gff3,gtf" name="reference_annotation_file" type="data" label="Reference Annotation" help="Gene annotation dataset in GTF or GFF3 format."/>
71 </when>
72 <when value="Use reference annotation guide">
73 <param format="gff3,gtf" name="reference_annotation_guide_file" type="data" label="Reference Annotation" help="Gene annotation dataset in GTF or GFF3 format."/>
74 </when>
75 </conditional>
76 <conditional name="bias_correction">
77 <param name="do_bias_correction" type="select" label="Perform Bias Correction" help="Bias detection and correction can significantly improve accuracy of transcript abundance estimates.">
78 <option value="No" selected="true">No</option>
79 <option value="Yes">Yes</option>
80 </param>
81 <when value="Yes">
82 <conditional name="seq_source">
83 <param name="index_source" type="select" label="Reference sequence data">
84 <option value="cached" selected="true">Locally cached</option>
85 <option value="history">History</option>
86 </param>
87 <when value="cached"></when>
88 <when value="history">
89 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
90 </when>
91 </conditional>
92 </when>
93 <when value="No"></when>
94 </conditional>
95
96 <param name="multiread_correct" type="select" label="Use multi-read correct" help="Tells Cufflinks to do an initial estimation procedure to more accurately weight reads mapping to multiple locations in the genome.">
97 <option value="No" selected="true">No</option>
98 <option value="Yes">Yes</option>
99 </param>
100
101 <param name="effective_length_correction" type="select" label="Use effective length correction" help="Cufflinks will not employ its 'effective' length normalization to transcript FPKM.">
102 <option value="" selected="true">Yes</option>
103 <option value="--no-effective-length-correction">No</option>
104 </param>
105
106 <param name="global_model" type="hidden_data" label="Global model (for use in Trackster)" optional="True"/>
107 </inputs>
108
109 <outputs>
110 <data format="tabular" name="genes_expression" label="${tool.name} on ${on_string}: gene expression" from_work_dir="genes.fpkm_tracking"/>
111 <data format="tabular" name="transcripts_expression" label="${tool.name} on ${on_string}: transcript expression" from_work_dir="isoforms.fpkm_tracking"/>
112 <data format="gtf" name="assembled_isoforms" label="${tool.name} on ${on_string}: assembled transcripts"/>
113 <data format="txt" name="total_map_mass" label="${tool.name} on ${on_string}: total map mass" hidden="true" from_work_dir="global_model.txt"/>
114 </outputs>
115
116 <trackster_conf>
117 <action type="set_param" name="global_model" output_name="total_map_mass"/>
118 </trackster_conf>
119
120 <tests>
121 <!--
122 Simple test that uses test data included with cufflinks.
123 -->
124 <test>
125 <param name="input" value="cufflinks_in.bam"/>
126 <param name="max_intron_len" value="300000"/>
127 <param name="min_isoform_fraction" value="0.05"/>
128 <param name="pre_mrna_fraction" value="0.05"/>
129 <param name="use_ref" value="No"/>
130 <param name="do_normalization" value="No" />
131 <param name="do_bias_correction" value="No"/>
132 <param name="multiread_correct" value="No"/>
133 <param name="effective_length_correction" value="Yes"/>
134 <output name="genes_expression" format="tabular" lines_diff="2" file="cufflinks_out3.fpkm_tracking"/>
135 <output name="transcripts_expression" format="tabular" lines_diff="2" file="cufflinks_out2.fpkm_tracking"/>
136 <output name="assembled_isoforms" file="cufflinks_out1.gtf"/>
137 <output name="global_model" file="cufflinks_out4.txt"/>
138 </test>
139 </tests>
140
141 <help>
142 **Cufflinks Overview**
143
144 Cufflinks_ assembles transcripts, estimates their abundances, and tests for differential expression and regulation in RNA-Seq samples. It accepts aligned RNA-Seq reads and assembles the alignments into a parsimonious set of transcripts. Cufflinks then estimates the relative abundances of these transcripts based on how many reads support each one. Please cite: Trapnell C, Williams BA, Pertea G, Mortazavi AM, Kwan G, van Baren MJ, Salzberg SL, Wold B, Pachter L. Transcript assembly and abundance estimation from RNA-Seq reveals thousands of new transcripts and switching among isoforms. Nature Biotechnology doi:10.1038/nbt.1621
145
146 .. _Cufflinks: http://cufflinks.cbcb.umd.edu/
147
148 ------
149
150 **Know what you are doing**
151
152 .. class:: warningmark
153
154 There is no such thing (yet) as an automated gearshift in expression analysis. It is all like stick-shift driving in San Francisco. In other words, running this tool with default parameters will probably not give you meaningful results. A way to deal with this is to **understand** the parameters by carefully reading the `documentation`__ and experimenting. Fortunately, Galaxy makes experimenting easy.
155
156 .. __: http://cufflinks.cbcb.umd.edu/manual.html
157
158 ------
159
160 **Input formats**
161
162 Cufflinks takes a text file of SAM alignments as input. The RNA-Seq read mapper TopHat produces output in this format, and is recommended for use with Cufflinks. However Cufflinks will accept SAM alignments generated by any read mapper. Here's an example of an alignment Cufflinks will accept::
163
164 s6.25mer.txt-913508 16 chr1 4482736 255 14M431N11M * 0 0 \
165 CAAGATGCTAGGCAAGTCTTGGAAG IIIIIIIIIIIIIIIIIIIIIIIII NM:i:0 XS:A:-
166
167 Note the use of the custom tag XS. This attribute, which must have a value of "+" or "-", indicates which strand the RNA that produced this read came from. While this tag can be applied to any alignment, including unspliced ones, it must be present for all spliced alignment records (those with a 'N' operation in the CIGAR string).
168 The SAM file supplied to Cufflinks must be sorted by reference position. If you aligned your reads with TopHat, your alignments will be properly sorted already. If you used another tool, you may want to make sure they are properly sorted as follows::
169
170 sort -k 3,3 -k 4,4n hits.sam > hits.sam.sorted
171
172 NOTE: Cufflinks currently only supports SAM alignments with the CIGAR match ('M') and reference skip ('N') operations. Support for the other operations, such as insertions, deletions, and clipping, will be added in the future.
173
174 ------
175
176 **Outputs**
177
178 Cufflinks produces three output files:
179
180 Transcripts and Genes:
181
182 This GTF file contains Cufflinks' assembled isoforms. The first 7 columns are standard GTF, and the last column contains attributes, some of which are also standardized (e.g. gene_id, transcript_id). There one GTF record per row, and each record represents either a transcript or an exon within a transcript. The columns are defined as follows::
183
184 Column number Column name Example Description
185 -----------------------------------------------------
186 1 seqname chrX Chromosome or contig name
187 2 source Cufflinks The name of the program that generated this file (always 'Cufflinks')
188 3 feature exon The type of record (always either "transcript" or "exon").
189 4 start 77696957 The leftmost coordinate of this record (where 0 is the leftmost possible coordinate)
190 5 end 77712009 The rightmost coordinate of this record, inclusive.
191 6 score 77712009 The most abundant isoform for each gene is assigned a score of 1000. Minor isoforms are scored by the ratio (minor FPKM/major FPKM)
192 7 strand + Cufflinks' guess for which strand the isoform came from. Always one of '+', '-' '.'
193 7 frame . Cufflinks does not predict where the start and stop codons (if any) are located within each transcript, so this field is not used.
194 8 attributes See below
195
196 Each GTF record is decorated with the following attributes::
197
198 Attribute Example Description
199 -----------------------------------------
200 gene_id CUFF.1 Cufflinks gene id
201 transcript_id CUFF.1.1 Cufflinks transcript id
202 FPKM 101.267 Isoform-level relative abundance in Reads Per Kilobase of exon model per Million mapped reads
203 frac 0.7647 Reserved. Please ignore, as this attribute may be deprecated in the future
204 conf_lo 0.07 Lower bound of the 95% confidence interval of the abundance of this isoform, as a fraction of the isoform abundance. That is, lower bound = FPKM * (1.0 - conf_lo)
205 conf_hi 0.1102 Upper bound of the 95% confidence interval of the abundance of this isoform, as a fraction of the isoform abundance. That is, upper bound = FPKM * (1.0 + conf_lo)
206 cov 100.765 Estimate for the absolute depth of read coverage across the whole transcript
207
208
209 Transcripts only:
210 This file is simply a tab delimited file containing one row per transcript and with columns containing the attributes above. There are a few additional attributes not in the table above, but these are reserved for debugging, and may change or disappear in the future.
211
212 Genes only:
213 This file contains gene-level coordinates and expression values.
214
215 -------
216
217 **Cufflinks settings**
218
219 All of the options have a default value. You can change any of them. Most of the options in Cufflinks have been implemented here.
220
221 ------
222
223 **Cufflinks parameter list**
224
225 This is a list of implemented Cufflinks options::
226
227 -m INT This is the expected (mean) inner distance between mate pairs. For, example, for paired end runs with fragments selected at 300bp, where each end is 50bp, you should set -r to be 200. The default is 45bp.
228 -s INT The standard deviation for the distribution on inner distances between mate pairs. The default is 20bp.
229 -I INT The minimum intron length. Cufflinks will not report transcripts with introns longer than this, and will ignore SAM alignments with REF_SKIP CIGAR operations longer than this. The default is 300,000.
230 -F After calculating isoform abundance for a gene, Cufflinks filters out transcripts that it believes are very low abundance, because isoforms expressed at extremely low levels often cannot reliably be assembled, and may even be artifacts of incompletely spliced precursors of processed transcripts. This parameter is also used to filter out introns that have far fewer spliced alignments supporting them. The default is 0.05, or 5% of the most abundant isoform (the major isoform) of the gene.
231 -j Some RNA-Seq protocols produce a significant amount of reads that originate from incompletely spliced transcripts, and these reads can confound the assembly of fully spliced mRNAs. Cufflinks uses this parameter to filter out alignments that lie within the intronic intervals implied by the spliced alignments. The minimum depth of coverage in the intronic region covered by the alignment is divided by the number of spliced reads, and if the result is lower than this parameter value, the intronic alignments are ignored. The default is 5%.
232 -G Tells Cufflinks to use the supplied reference annotation to estimate isoform expression. It will not assemble novel transcripts, and the program will ignore alignments not structurally compatible with any reference transcript.
233 -N With this option, Cufflinks excludes the contribution of the top 25 percent most highly expressed genes from the number of mapped fragments used in the FPKM denominator. This can improve robustness of differential expression calls for less abundant genes and transcripts.
234 </help>
235 </tool>