Mercurial > repos > devteam > cuffdiff
annotate cuffdiff_wrapper.xml @ 4:05d4e123f9f7 draft
Uploaded correct tool data table configuration.
author | devteam |
---|---|
date | Wed, 04 Dec 2013 16:21:13 -0500 |
parents | beab768feb92 |
children | 604fa75232a2 |
rev | line source |
---|---|
3
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
1 <tool id="cuffdiff" name="Cuffdiff" version="0.0.7"> |
0 | 2 <!-- Wrapper supports Cuffdiff versions 2.1.0-2.1.1 --> |
3 <description>find significant changes in transcript expression, splicing, and promoter use</description> | |
4 <requirements> | |
5 <requirement type="package" version="2.1.1">cufflinks</requirement> | |
6 </requirements> | |
7 <version_command>cuffdiff 2>&1 | head -n 1</version_command> | |
8 <command> | |
9 cuffdiff | |
2
2d6a90609943
Fix wrapper bugs: (a) do not try update check and (b) allow spaces in labels.
jeremy goecks <jeremy.goecks@emory.edu>
parents:
1
diff
changeset
|
10 --no-update-check |
0 | 11 --FDR=$fdr |
12 --num-threads="4" | |
13 --min-alignment-count=$min_alignment_count | |
14 --library-norm-method=$library_norm_method | |
15 --dispersion-method=$dispersion_method | |
16 | |
17 ## Set advanced data parameters? | |
18 #if $additional.sAdditional == "Yes": | |
19 -m $additional.frag_mean_len | |
20 -s $additional.frag_len_std_dev | |
21 #end if | |
22 | |
23 ## Multi-read correct? | |
24 #if str($multiread_correct) == "Yes": | |
25 -u | |
26 #end if | |
27 | |
28 ## Bias correction? | |
29 #if $bias_correction.do_bias_correction == "Yes": | |
1 | 30 -b |
0 | 31 #if $bias_correction.seq_source.index_source == "history": |
1 | 32 ## Custom genome from history. |
33 $bias_correction.seq_source.ref_file | |
0 | 34 #else: |
1 | 35 ## Built-in genome. |
3
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
36 ${__get_data_table_entry__('fasta_indexes', 'value', $gtf_input.dbkey, 'path')} |
0 | 37 #end if |
38 #end if | |
39 | |
2
2d6a90609943
Fix wrapper bugs: (a) do not try update check and (b) allow spaces in labels.
jeremy goecks <jeremy.goecks@emory.edu>
parents:
1
diff
changeset
|
40 #set labels = '\'' + '\',\''.join( [ str( $condition.name ) for $condition in $conditions ] ) + '\'' |
0 | 41 --labels $labels |
42 | |
43 ## Inputs. | |
44 $gtf_input | |
45 #for $condition in $conditions: | |
46 #set samples = ','.join( [ str( $sample.sample ) for $sample in $condition.samples ] ) | |
47 $samples | |
48 #end for | |
49 </command> | |
50 <inputs> | |
51 <param format="gtf,gff3" name="gtf_input" type="data" label="Transcripts" help="A transcript GFF3 or GTF file produced by cufflinks, cuffcompare, or other source."/> | |
52 | |
53 <repeat name="conditions" title="Condition" min="2"> | |
54 <param name="name" title="Condition name" type="text" label="Name"/> | |
55 <repeat name="samples" title="Replicate" min="1"> | |
56 <param name="sample" label="Add replicate" type="data" format="sam,bam"/> | |
57 </repeat> | |
58 </repeat> | |
59 | |
60 <param name="library_norm_method" type="select" label="Library normalization method"> | |
61 <option value="geometric" selected="True">geometric</option> | |
62 <option value="classic-fpkm">classic-fpkm</option> | |
63 <option value="quartile">quartile</option> | |
64 </param> | |
65 | |
66 <param name="dispersion_method" type="select" label="Dispersion estimation method" help="If using only one sample per condition, you must use 'blind.'"> | |
67 <option value="pooled" selected="True">pooled</option> | |
68 <option value="per-condition">per-condition</option> | |
69 <option value="blind">blind</option> | |
70 </param> | |
71 | |
72 <param name="fdr" type="float" value="0.05" label="False Discovery Rate" help="The allowed false discovery rate."/> | |
73 | |
74 <param name="min_alignment_count" type="integer" value="10" label="Min Alignment Count" help="The minimum number of alignments in a locus for needed to conduct significance testing on changes in that locus observed between samples."/> | |
75 | |
76 <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."> | |
77 <option value="No" selected="true">No</option> | |
78 <option value="Yes">Yes</option> | |
79 </param> | |
80 | |
81 <conditional name="bias_correction"> | |
82 <param name="do_bias_correction" type="select" label="Perform Bias Correction" help="Bias detection and correction can significantly improve accuracy of transcript abundance estimates."> | |
83 <option value="No">No</option> | |
84 <option value="Yes">Yes</option> | |
85 </param> | |
86 <when value="Yes"> | |
87 <conditional name="seq_source"> | |
88 <param name="index_source" type="select" label="Reference sequence data"> | |
89 <option value="cached">Locally cached</option> | |
90 <option value="history">History</option> | |
91 </param> | |
3
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
92 <when value="cached"> |
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
93 <param name="index" type="select" label="Using reference genome"> |
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
94 <options from_data_table="fasta_indexes"> |
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
95 <filter type="data_meta" ref="gtf_input" key="dbkey" column="1" /> |
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
96 <validator type="no_options" message="No reference genome is available for the build associated with the selected input dataset" /> |
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
97 </options> |
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
98 </param> |
beab768feb92
Update to the new data table specification.
Dave Bouvier <dave@bx.psu.edu>
parents:
2
diff
changeset
|
99 </when> |
0 | 100 <when value="history"> |
101 <param name="ref_file" type="data" format="fasta" label="Using reference file" /> | |
102 </when> | |
103 </conditional> | |
104 </when> | |
105 <when value="No"></when> | |
106 </conditional> | |
107 | |
108 <param name="include_read_group_files" type="select" label="Include Read Group Datasets" help="Read group datasets provide information on replicates."> | |
109 <option value="No" selected="true">No</option> | |
110 <option value="Yes">Yes</option> | |
111 </param> | |
112 | |
113 <conditional name="additional"> | |
114 <param name="sAdditional" type="select" label="Set Additional Parameters? (not recommended for paired-end reads)"> | |
115 <option value="No">No</option> | |
116 <option value="Yes">Yes</option> | |
117 </param> | |
118 <when value="No"></when> | |
119 <when value="Yes"> | |
120 <param name="frag_mean_len" type="integer" value="200" label="Average Fragment Length"/> | |
121 <param name="frag_len_std_dev" type="integer" value="80" label="Fragment Length Standard Deviation"/> | |
122 </when> | |
123 </conditional> | |
124 </inputs> | |
125 | |
126 <stdio> | |
1 | 127 <regex match="Error" source="both" level="fatal" description="Error"/> |
0 | 128 <regex match=".*" source="both" level="log" description="tool progress"/> |
129 </stdio> | |
130 | |
131 <outputs> | |
132 <!-- Optional read group datasets. --> | |
133 <data format="tabular" name="isoforms_read_group" label="${tool.name} on ${on_string}: isoforms read group tracking" from_work_dir="isoforms.read_group_tracking" > | |
134 <filter>(params['include_read_group_files'] == 'Yes'</filter> | |
135 </data> | |
136 <data format="tabular" name="genes_read_group" label="${tool.name} on ${on_string}: genes read group tracking" from_work_dir="genes.read_group_tracking" > | |
137 <filter>(params['include_read_group_files'] == 'Yes'</filter> | |
138 </data> | |
139 <data format="tabular" name="cds_read_group" label="${tool.name} on ${on_string}: CDs read group tracking" from_work_dir="cds.read_group_tracking" > | |
140 <filter>(params['include_read_group_files'] == 'Yes'</filter> | |
141 </data> | |
142 <data format="tabular" name="tss_groups_read_group" label="${tool.name} on ${on_string}: TSS groups read group tracking" from_work_dir="tss_groups.read_group_tracking" > | |
143 <filter>(params['include_read_group_files'] == 'Yes'</filter> | |
144 </data> | |
145 | |
146 <!-- Standard datasets. --> | |
147 <data format="tabular" name="splicing_diff" label="${tool.name} on ${on_string}: splicing differential expression testing" from_work_dir="splicing.diff" /> | |
148 <data format="tabular" name="promoters_diff" label="${tool.name} on ${on_string}: promoters differential expression testing" from_work_dir="promoters.diff" /> | |
149 <data format="tabular" name="cds_diff" label="${tool.name} on ${on_string}: CDS overloading diffential expression testing" from_work_dir="cds.diff" /> | |
150 <data format="tabular" name="cds_exp_fpkm_tracking" label="${tool.name} on ${on_string}: CDS FPKM differential expression testing" from_work_dir="cds_exp.diff" /> | |
151 <data format="tabular" name="cds_fpkm_tracking" label="${tool.name} on ${on_string}: CDS FPKM tracking" from_work_dir="cds.fpkm_tracking" /> | |
152 <data format="tabular" name="tss_groups_exp" label="${tool.name} on ${on_string}: TSS groups differential expression testing" from_work_dir="tss_group_exp.diff" /> | |
153 <data format="tabular" name="tss_groups_fpkm_tracking" label="${tool.name} on ${on_string}: TSS groups FPKM tracking" from_work_dir="tss_groups.fpkm_tracking" /> | |
154 <data format="tabular" name="genes_exp" label="${tool.name} on ${on_string}: gene differential expression testing" from_work_dir="gene_exp.diff" /> | |
155 <data format="tabular" name="genes_fpkm_tracking" label="${tool.name} on ${on_string}: gene FPKM tracking" from_work_dir="genes.fpkm_tracking" /> | |
156 <data format="tabular" name="isoforms_exp" label="${tool.name} on ${on_string}: transcript differential expression testing" from_work_dir="isoform_exp.diff" /> | |
157 <data format="tabular" name="isoforms_fpkm_tracking" label="${tool.name} on ${on_string}: transcript FPKM tracking" from_work_dir="isoforms.fpkm_tracking" /> | |
158 </outputs> | |
159 | |
160 <tests> | |
161 <test> | |
162 <!-- | |
163 cuffdiff cuffcompare_out5.gtf cuffdiff_in1.sam cuffdiff_in2.sam | |
164 --> | |
165 <!-- | |
166 NOTE: as of version 0.0.6 of the wrapper, tests cannot be run because multiple inputs to a repeat | |
167 element are not supported. | |
168 <param name="gtf_input" value="cuffcompare_out5.gtf" ftype="gtf" /> | |
169 <param name="do_groups" value="No" /> | |
170 <param name="aligned_reads1" value="cuffdiff_in1.sam" ftype="sam" /> | |
171 <param name="aligned_reads2" value="cuffdiff_in2.sam" ftype="sam" /> | |
172 <param name="fdr" value="0.05" /> | |
173 <param name="min_alignment_count" value="0" /> | |
174 <param name="do_bias_correction" value="No" /> | |
175 <param name="do_normalization" value="No" /> | |
176 <param name="multiread_correct" value="No"/> | |
177 <param name="sAdditional" value="No"/> | |
178 <output name="splicing_diff" file="cuffdiff_out9.txt"/> | |
179 <output name="promoters_diff" file="cuffdiff_out10.txt"/> | |
180 <output name="cds_diff" file="cuffdiff_out11.txt"/> | |
181 <output name="cds_exp_fpkm_tracking" file="cuffdiff_out4.txt"/> | |
182 <output name="cds_fpkm_tracking" file="cuffdiff_out8.txt"/> | |
183 <output name="tss_groups_exp" file="cuffdiff_out3.txt" lines_diff="200"/> | |
184 <output name="tss_groups_fpkm_tracking" file="cuffdiff_out7.txt"/> | |
185 <output name="genes_exp" file="cuffdiff_out2.txt" lines_diff="200"/> | |
186 <output name="genes_fpkm_tracking" file="cuffdiff_out6.txt" lines_diff="200"/> | |
187 <output name="isoforms_exp" file="cuffdiff_out1.txt" lines_diff="200"/> | |
188 <output name="isoforms_fpkm_tracking" file="cuffdiff_out5.txt" lines_diff="200"/> | |
189 --> | |
190 </test> | |
191 </tests> | |
192 | |
193 <help> | |
194 **Cuffdiff Overview** | |
195 | |
196 Cuffdiff is part of Cufflinks_. Cuffdiff find significant changes in transcript expression, splicing, and promoter use. 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 | |
197 | |
198 .. _Cufflinks: http://cufflinks.cbcb.umd.edu/ | |
199 | |
200 ------ | |
201 | |
202 **Know what you are doing** | |
203 | |
204 .. class:: warningmark | |
205 | |
206 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. | |
207 | |
208 .. __: http://cufflinks.cbcb.umd.edu/manual.html#cuffdiff | |
209 | |
210 ------ | |
211 | |
212 **Input format** | |
213 | |
214 Cuffdiff takes Cufflinks or Cuffcompare GTF files as input along with two SAM files containing the fragment alignments for two or more samples. | |
215 | |
216 ------ | |
217 | |
218 **Outputs** | |
219 | |
220 Cuffdiff produces many output files: | |
221 | |
222 1. Transcript FPKM expression tracking. | |
223 2. Gene FPKM expression tracking; tracks the summed FPKM of transcripts sharing each gene_id | |
224 3. Primary transcript FPKM tracking; tracks the summed FPKM of transcripts sharing each tss_id | |
225 4. Coding sequence FPKM tracking; tracks the summed FPKM of transcripts sharing each p_id, independent of tss_id | |
226 5. Transcript differential FPKM. | |
227 6. Gene differential FPKM. Tests difference sin the summed FPKM of transcripts sharing each gene_id | |
228 7. Primary transcript differential FPKM. Tests difference sin the summed FPKM of transcripts sharing each tss_id | |
229 8. Coding sequence differential FPKM. Tests difference sin the summed FPKM of transcripts sharing each p_id independent of tss_id | |
230 9. Differential splicing tests: this tab delimited file lists, for each primary transcript, the amount of overloading detected among its isoforms, i.e. how much differential splicing exists between isoforms processed from a single primary transcript. Only primary transcripts from which two or more isoforms are spliced are listed in this file. | |
231 10. Differential promoter tests: this tab delimited file lists, for each gene, the amount of overloading detected among its primary transcripts, i.e. how much differential promoter use exists between samples. Only genes producing two or more distinct primary transcripts (i.e. multi-promoter genes) are listed here. | |
232 11. Differential CDS tests: this tab delimited file lists, for each gene, the amount of overloading detected among its coding sequences, i.e. how much differential CDS output exists between samples. Only genes producing two or more distinct CDS (i.e. multi-protein genes) are listed here. | |
233 | |
234 ------- | |
235 | |
236 **Settings** | |
237 | |
238 All of the options have a default value. You can change any of them. Most of the options in Cuffdiff have been implemented here. | |
239 | |
240 ------ | |
241 | |
242 **Cuffdiff parameter list** | |
243 | |
244 This is a list of implemented Cuffdiff options:: | |
245 | |
246 -m INT Average fragement length; default 200 | |
247 -s INT Fragment legnth standard deviation; default 80 | |
248 -c INT The minimum number of alignments in a locus for needed to conduct significance testing on changes in that locus observed between samples. If no testing is performed, changes in the locus are deemed not significant, and the locus' observed changes don't contribute to correction for multiple testing. The default is 1,000 fragment alignments (up to 2,000 paired reads). | |
249 --FDR FLOAT The allowed false discovery rate. The default is 0.05. | |
250 --num-importance-samples INT Sets the number of importance samples generated for each locus during abundance estimation. Default: 1000 | |
251 --max-mle-iterations INT Sets the number of iterations allowed during maximum likelihood estimation of abundances. Default: 5000 | |
252 -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. | |
253 | |
254 </help> | |
255 </tool> |