annotate cuffquant_wrapper.xml @ 0:cef77c81d60c draft

Uploaded
author devteam
date Wed, 26 Nov 2014 14:02:38 -0500
parents
children 8fb10700729b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cef77c81d60c Uploaded
devteam
parents:
diff changeset
1 <tool id="cuffquant" name="Cuffquant" version="@VERSION@.0">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
2 <!-- Wrapper supports Cuffdiff versions 2.2.1 -->
cef77c81d60c Uploaded
devteam
parents:
diff changeset
3 <description>Precompute gene expression levels</description>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
4 <expand macro="requirements" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
5 <expand macro="stdio" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
6 <macros>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
7 <import>cuff_macros.xml</import>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
8 </macros>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
9 <version_command>cuffquant 2>&amp;1 | head -n 1</version_command>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
10 <command>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
11 cuffquant
cef77c81d60c Uploaded
devteam
parents:
diff changeset
12 --no-update-check
cef77c81d60c Uploaded
devteam
parents:
diff changeset
13 --num-threads=\${GALAXY_SLOTS:-4}
cef77c81d60c Uploaded
devteam
parents:
diff changeset
14 ## Set advanced SE data parameters?
cef77c81d60c Uploaded
devteam
parents:
diff changeset
15 #if $additional.sAdditional == "Yes":
cef77c81d60c Uploaded
devteam
parents:
diff changeset
16 -m $additional.frag_mean_len
cef77c81d60c Uploaded
devteam
parents:
diff changeset
17 -s $additional.frag_len_std_dev
cef77c81d60c Uploaded
devteam
parents:
diff changeset
18 #end if
cef77c81d60c Uploaded
devteam
parents:
diff changeset
19
cef77c81d60c Uploaded
devteam
parents:
diff changeset
20 ## Multi-read correct?
cef77c81d60c Uploaded
devteam
parents:
diff changeset
21 #if $multiread_correct :
cef77c81d60c Uploaded
devteam
parents:
diff changeset
22 -u
cef77c81d60c Uploaded
devteam
parents:
diff changeset
23 #end if
cef77c81d60c Uploaded
devteam
parents:
diff changeset
24
cef77c81d60c Uploaded
devteam
parents:
diff changeset
25 ## Bias correction?
cef77c81d60c Uploaded
devteam
parents:
diff changeset
26 #if $bias_correction.do_bias_correction == "Yes":
cef77c81d60c Uploaded
devteam
parents:
diff changeset
27 -b
cef77c81d60c Uploaded
devteam
parents:
diff changeset
28 #if $bias_correction.seq_source.index_source == "history":
cef77c81d60c Uploaded
devteam
parents:
diff changeset
29 ## Custom genome from history.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
30 $bias_correction.seq_source.ref_file
cef77c81d60c Uploaded
devteam
parents:
diff changeset
31 #else:
cef77c81d60c Uploaded
devteam
parents:
diff changeset
32 ## Built-in genome.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
33 "${ bias_correction.seq_source.index.fields.path }"
cef77c81d60c Uploaded
devteam
parents:
diff changeset
34 #end if
cef77c81d60c Uploaded
devteam
parents:
diff changeset
35 #end if
cef77c81d60c Uploaded
devteam
parents:
diff changeset
36
cef77c81d60c Uploaded
devteam
parents:
diff changeset
37 $length_correction
cef77c81d60c Uploaded
devteam
parents:
diff changeset
38
cef77c81d60c Uploaded
devteam
parents:
diff changeset
39 ## Set advanced parameters for cufflinks
cef77c81d60c Uploaded
devteam
parents:
diff changeset
40 #if $advanced_settings.sAdvanced == "Yes":
cef77c81d60c Uploaded
devteam
parents:
diff changeset
41 #if str($advanced_settings.library_type) != 'auto':
cef77c81d60c Uploaded
devteam
parents:
diff changeset
42 --library-type=$advanced_settings.library_type
cef77c81d60c Uploaded
devteam
parents:
diff changeset
43 #end if
cef77c81d60c Uploaded
devteam
parents:
diff changeset
44 #if $advanced_settings.mask_file:
cef77c81d60c Uploaded
devteam
parents:
diff changeset
45 --mask-file=$advanced_settings.mask_file
cef77c81d60c Uploaded
devteam
parents:
diff changeset
46 #end if
cef77c81d60c Uploaded
devteam
parents:
diff changeset
47 --max-mle-iterations=$advanced_settings.max_mle_iterations
cef77c81d60c Uploaded
devteam
parents:
diff changeset
48 --max-bundle-frags=$advanced_settings.max_bundle_frags
cef77c81d60c Uploaded
devteam
parents:
diff changeset
49 #end if
cef77c81d60c Uploaded
devteam
parents:
diff changeset
50 ## Inputs.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
51 $gtf_input
cef77c81d60c Uploaded
devteam
parents:
diff changeset
52 #set samplestring = ','.join( [ str( $sample.sample ) for $sample in $samples ] )
cef77c81d60c Uploaded
devteam
parents:
diff changeset
53 $samplestring
cef77c81d60c Uploaded
devteam
parents:
diff changeset
54 </command>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
55 <inputs>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
56 <param format="gtf,gff3" name="gtf_input" type="data" label="Transcripts"
cef77c81d60c Uploaded
devteam
parents:
diff changeset
57 help="A transcript annotation (GFF3 or GTF) file produced by cufflinks, cuffcompare, or other source."/>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
58
cef77c81d60c Uploaded
devteam
parents:
diff changeset
59 <repeat name="samples" title="Replicate" min="1">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
60 <param name="sample" label="Add replicate" type="data" format="sam,bam"/>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
61 </repeat>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
62
cef77c81d60c Uploaded
devteam
parents:
diff changeset
63 <param name="multiread_correct" type="boolean" label="Use multi-read correct"
cef77c81d60c Uploaded
devteam
parents:
diff changeset
64 help="Tells Cufflinks to do an initial estimation procedure to more accurately weight reads mapping to multiple locations in the genome." />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
65
cef77c81d60c Uploaded
devteam
parents:
diff changeset
66 <conditional name="bias_correction">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
67 <param name="do_bias_correction" type="select" label="Perform Bias Correction"
cef77c81d60c Uploaded
devteam
parents:
diff changeset
68 help="Bias detection and correction can significantly improve accuracy of transcript abundance estimates.">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
69 <option value="No">No</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
70 <option value="Yes">Yes</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
71 </param>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
72 <when value="Yes">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
73 <conditional name="seq_source">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
74 <param name="index_source" type="select" label="Reference sequence data">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
75 <option value="cached">Locally cached</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
76 <option value="history">History</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
77 </param>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
78 <when value="cached">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
79 <param name="index" type="select" label="Using reference genome">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
80 <options from_data_table="fasta_indexes">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
81 <filter type="data_meta" ref="gtf_input" key="dbkey" column="1" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
82 <validator type="no_options" message="No reference genome is available for the build associated with the selected input dataset" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
83 </options>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
84 </param>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
85 </when>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
86 <when value="history">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
87 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
88 </when>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
89 </conditional>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
90 </when>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
91 <when value="No"></when>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
92 </conditional>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
93
cef77c81d60c Uploaded
devteam
parents:
diff changeset
94 <param name="length_correction" type="select" label="apply length correction" help="mode of length normalization to transcript fpkm.">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
95 <option value="" selected="true">cufflinks effective length correction</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
96 <option value="--no-effective-length-correction">standard length correction</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
97 <option value="--no-length-correction">no length correction at all (use raw counts)</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
98 </param>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
99
cef77c81d60c Uploaded
devteam
parents:
diff changeset
100 <conditional name="additional">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
101 <param name="sAdditional" type="select" label="Set Additional Parameters for single end reads? (not recommended for paired-end reads)">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
102 <option value="No" selected="True">No</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
103 <option value="Yes">Yes</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
104 </param>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
105 <when value="No"></when>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
106 <when value="Yes">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
107 <param name="frag_mean_len" type="integer" value="200" label="Average Fragment Length"/>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
108 <param name="frag_len_std_dev" type="integer" value="80" label="Fragment Length Standard Deviation"/>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
109 </when>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
110 </conditional>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
111
cef77c81d60c Uploaded
devteam
parents:
diff changeset
112 <conditional name="advanced_settings">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
113 <param name="sAdvanced" type="select" label="Set Advanced Cuffquant parameters? ">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
114 <option value="No" selected="True">No</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
115 <option value="Yes">Yes</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
116 </param>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
117 <when value="No"></when>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
118 <when value="Yes">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
119 <param type="select" name="library_type" label="Library prep used for input reads" help="">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
120 <option value="auto" selected="True">Auto Detect</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
121 <option value="ff-firststrand">ff-firststrand</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
122 <option value="ff-secondstrand">ff-secondstrand</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
123 <option value="ff-unstranded">ff-unstranded</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
124 <option value="fr-firststrand">fr-firststrand</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
125 <option value="fr-secondstrand">fr-secondstrand</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
126 <option value="fr-unstranded" >fr-unstranded</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
127 <option value="transfrags">transfrags</option>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
128 </param>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
129 <param name="mask_file" type="data" format="gtf,gff3" label="Mask File" help="Ignore all alignment within transcripts in this file" optional="True" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
130 <param name="max_mle_iterations" value="5000" type="integer" label="Max MLE iterations" help="Maximum iterations allowed for Maximal Likelyhood Estimation calculations" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
131 <param name="max_bundle_frags" type="integer" value="500000" label="Maximum number of fragments per locus"
cef77c81d60c Uploaded
devteam
parents:
diff changeset
132 help="Sets the maximum number of fragments a locus may have before being skipped. Default: 500,000" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
133 </when>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
134 </conditional>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
135 </inputs>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
136 <outputs>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
137 <!-- Standard datasets. -->
cef77c81d60c Uploaded
devteam
parents:
diff changeset
138 <data format="cxb" name="out_file" label="${tool.name} on ${on_string}: Abundances.cxb" from_work_dir="abundances.cxb" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
139 </outputs>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
140 <tests>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
141 <test>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
142 <!--
cef77c81d60c Uploaded
devteam
parents:
diff changeset
143 cuffquant cuffcompare_out5.gtf cuffdiff_in1.sam,cuffdiff_in2.sam
cef77c81d60c Uploaded
devteam
parents:
diff changeset
144 -->
cef77c81d60c Uploaded
devteam
parents:
diff changeset
145 <param name="gtf_input" value="cuffquant_in.gtf" ftype="gtf" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
146 <repeat name="samples">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
147 <param name="sample" value="cuffquant_in1.sam" ftype="sam" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
148 </repeat>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
149 <repeat name="samples">
cef77c81d60c Uploaded
devteam
parents:
diff changeset
150 <param name="sample" value="cuffquant_in2.sam" ftype="sam" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
151 </repeat>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
152 <param name="length_correction" value="" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
153 <param name="do_bias_correction" value="No" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
154 <param name="multiread_correct" value="No"/>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
155 <param name="sAdditional" value="No"/>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
156 <param name="sAdvanced" value="No" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
157 <output name="out_file" file="cuffquant_out1.cxb" compare="sim_size" />
cef77c81d60c Uploaded
devteam
parents:
diff changeset
158 </test>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
159 </tests>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
160
cef77c81d60c Uploaded
devteam
parents:
diff changeset
161 <help>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
162 **Cuffquant Overview**
cef77c81d60c Uploaded
devteam
parents:
diff changeset
163
cef77c81d60c Uploaded
devteam
parents:
diff changeset
164 Cuffquant is part of Cufflinks_. Cuffquant provides pre-calculation of gene expression levels. The resulting file can be provided to cuffdiff or cuffnorm for further processing. 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
cef77c81d60c Uploaded
devteam
parents:
diff changeset
165
cef77c81d60c Uploaded
devteam
parents:
diff changeset
166 .. _Cufflinks: http://cufflinks.cbcb.umd.edu/
cef77c81d60c Uploaded
devteam
parents:
diff changeset
167
cef77c81d60c Uploaded
devteam
parents:
diff changeset
168 ------
cef77c81d60c Uploaded
devteam
parents:
diff changeset
169
cef77c81d60c Uploaded
devteam
parents:
diff changeset
170 **Know what you are doing**
cef77c81d60c Uploaded
devteam
parents:
diff changeset
171
cef77c81d60c Uploaded
devteam
parents:
diff changeset
172 .. class:: warningmark
cef77c81d60c Uploaded
devteam
parents:
diff changeset
173
cef77c81d60c Uploaded
devteam
parents:
diff changeset
174 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.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
175
cef77c81d60c Uploaded
devteam
parents:
diff changeset
176 .. __: http://cufflinks.cbcb.umd.edu/manual.html#cuffdiff
cef77c81d60c Uploaded
devteam
parents:
diff changeset
177
cef77c81d60c Uploaded
devteam
parents:
diff changeset
178 ------
cef77c81d60c Uploaded
devteam
parents:
diff changeset
179
cef77c81d60c Uploaded
devteam
parents:
diff changeset
180 **Input format**
cef77c81d60c Uploaded
devteam
parents:
diff changeset
181
cef77c81d60c Uploaded
devteam
parents:
diff changeset
182 Cuffquant takes Cufflinks or Cuffcompare GTF files as input along with two or more SAM files containing the fragment alignments for two or more samples.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
183
cef77c81d60c Uploaded
devteam
parents:
diff changeset
184 ------
cef77c81d60c Uploaded
devteam
parents:
diff changeset
185
cef77c81d60c Uploaded
devteam
parents:
diff changeset
186 **Outputs**
cef77c81d60c Uploaded
devteam
parents:
diff changeset
187
cef77c81d60c Uploaded
devteam
parents:
diff changeset
188 Cuffquant produces one output file:
cef77c81d60c Uploaded
devteam
parents:
diff changeset
189
cef77c81d60c Uploaded
devteam
parents:
diff changeset
190 1. Transcript expression values in binary format.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
191
cef77c81d60c Uploaded
devteam
parents:
diff changeset
192 -------
cef77c81d60c Uploaded
devteam
parents:
diff changeset
193
cef77c81d60c Uploaded
devteam
parents:
diff changeset
194 **Settings**
cef77c81d60c Uploaded
devteam
parents:
diff changeset
195
cef77c81d60c Uploaded
devteam
parents:
diff changeset
196 All of the options have a default value. You can change any of them. Most of the options in Cuffdiff have been implemented here.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
197
cef77c81d60c Uploaded
devteam
parents:
diff changeset
198 ------
cef77c81d60c Uploaded
devteam
parents:
diff changeset
199
cef77c81d60c Uploaded
devteam
parents:
diff changeset
200 **Cuffdiff parameter list**
cef77c81d60c Uploaded
devteam
parents:
diff changeset
201
cef77c81d60c Uploaded
devteam
parents:
diff changeset
202 This is a list of implemented Cuffdiff options::
cef77c81d60c Uploaded
devteam
parents:
diff changeset
203
cef77c81d60c Uploaded
devteam
parents:
diff changeset
204 -m INT Average fragment length (SE reads); default 200
cef77c81d60c Uploaded
devteam
parents:
diff changeset
205 -s INT Fragment legnth standard deviation (SE reads); default 80
cef77c81d60c Uploaded
devteam
parents:
diff changeset
206 --max-mle-iterations INT Sets the number of iterations allowed during maximum likelihood estimation of abundances. Default: 5000
cef77c81d60c Uploaded
devteam
parents:
diff changeset
207 -u Multi read correction tells Cufflinks to do an initial estimation procedure to more accurately weight reads mapping to multiple locations in the genome.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
208 -b ref.fasta bias correction. Bias detection and correction can significantly improve accuracy of transcript abundance estimates.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
209 --no-effective-length-correction Use standard length correction
cef77c81d60c Uploaded
devteam
parents:
diff changeset
210 --no-length-correction Disable all length correction.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
211 --library-type ff-firststrand,ff-secondstrand,ff-unstranded,fr-firstrand,fr-secondstrand,fr-unstranded,transfrags
cef77c81d60c Uploaded
devteam
parents:
diff changeset
212 --mask-file (gff3/gtf) Ignore all alignment within transcripts in this file
cef77c81d60c Uploaded
devteam
parents:
diff changeset
213 --max-bundle-frags Sets the maximum number of fragments a locus may have before being skipped. Skipped loci are listed in skipped.gtf.
cef77c81d60c Uploaded
devteam
parents:
diff changeset
214 </help>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
215 <citations>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
216 <citation type="doi">10.1038/nbt.1621</citation>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
217 </citations>
cef77c81d60c Uploaded
devteam
parents:
diff changeset
218 </tool>