comparison annotate_variants.xml @ 0:995e258cc46c draft

Uploaded
author wolma
date Wed, 13 Aug 2014 07:11:40 -0400
parents
children 840362af3e74
comparison
equal deleted inserted replaced
-1:000000000000 0:995e258cc46c
1 <tool id="annotate_variants" name="Variant Annotation">
2 <description>Predict the effects of SNPs and indels on known genes in the reference genome using SnpEff</description>
3 <requirements>
4 <requirement type="package" version="0.1.3">mimodd</requirement>
5 </requirements>
6 <command>
7 mimodd annotate
8
9 $inputfile
10
11 #if $str($annotool.name)=='snpeff':
12 --genome ${annotool.genomeVersion}
13 #if $annotool.ori_output:
14 --snpeff_out $snpeff_file
15 #end if
16 #if $annotool.stats:
17 --stats $summary_file
18 #end if
19 ${annotool.snpeff_settings.chr} ${annotool.snpeff_settings.no_us} ${annotool.snpeff_settings.no_ds} ${annotool.snpeff_settings.no_intron} ${annotool.snpeff_settings.no_intergenic} ${annotool.snpeff_settings.no_utr}
20 #if $annotool.snpeff_settings.min_cov:
21 --minC ${annotool.snpeff_settings.min_cov}
22 #end if
23 #if $annotool.snpeff_settings.min_qual:
24 --minQ ${annotool.snpeff_settings.min_qual}
25 #end if
26 #if $annotool.snpeff_settings.ud:
27 --ud ${annotool.snpeff_settings.ud}
28 #end if
29 #end if
30
31 --ofile $outputfile
32 #if $str($formatting.oformat) == "text":
33 --oformat text
34 #end if
35 #if $str($formatting.oformat) == "html":
36 #if $formatting.formatter_file:
37 --link ${formatting.formatter_file}
38 #end if
39 #if $formatting.species
40 --species ${formatting.species}
41 #end if
42 #end if
43
44 #if $str($grouping):
45 --grouping $grouping
46 #end if
47 --verbose
48 </command>
49
50 <inputs>
51 <param name="inputfile" type="data" format="vcf" label="vcf inputfile to be annotated" />
52 <param name="grouping" type="select" label="Group variants by">
53 <option value="">order in the input file</option>
54 <option value="by_sample">sample</option>
55 <option value="by_genes">most affected genes</option>
56 </param>
57 <conditional name="formatting">
58 <param name="oformat" type="select" label="Format of the annotation output file">
59 <option value="html">HTML</option>
60 <option value="text">Tab-separated plain text</option>
61 </param>
62 <when value="html">
63 <param name="formatter_file" type="data" format="txt" optional="true" label="Optional file with hyperlink formatting instructions" />
64 <param name="species" type="text" label="Species" help="Overwrite the species guess from the SnpEff genome, often not necessary" />
65 </when>
66 </conditional>
67 <conditional name="annotool">
68 <param name="name" type="select" label="Use this tool to annotate the input file" help = "Select SnpEff here, if you want to have the vcf input annotated with genomic feature information. Select None if you do not want additional annotation, if you do not have SnpEff installed, or if you have no appropriate SnpEff annotation file for the input.">
69 <option value="snpeff">SnpEff</option>
70 <option value="None">None</option>
71 </param>
72 <when value="snpeff">
73 <param name="genome_list" type="data" format="tabular" label="genome list" />
74 <param name="genomeVersion" type="select" label="Genome">
75 <options from_dataset="genome_list">
76 <column name="name" index="0"/>
77 <column name="value" index="1"/>
78 </options>
79 </param>
80 <param name="ori_output" type="boolean" checked="true" label="Keep the original SnpEff output" />
81 <param name="stats" type="boolean" checked="true" label="Produce a summary file of results" />
82
83 <conditional name="snpeff_settings">
84 <param name="detail_level" type="select" label="SnpEff-specific parameter settings" help="This section lets you specify the detailed parameter settings for the SnpEff tool.">
85 <option value="default">default settings</option>
86 <option value="change">change settings</option>
87 </param>
88 <when value="default">
89 ## default settings for SnpEff
90 <param name="chr" type="hidden" value=""/>
91 <param name="min_cov" type="hidden" value=""/>
92 <param name="min_qual" type="hidden" value=""/>
93 <param name="no_ds" type="hidden" value=""/>
94 <param name="no_us" type="hidden" value=""/>
95 <param name="no_intron" type="hidden" value=""/>
96 <param name="no_intergenic" type="hidden" value=""/>
97 <param name="no_utr" type="hidden" value=""/>
98 <param name="ud" type="hidden" value=""/>
99 </when>
100 <when value="change">
101 <param name="chr" type="boolean" truevalue="-chr" falsevalue="" checked="false" label="prepend 'chr' to chromosome names, e.g., 'chr7' instead of '7'" />
102 <param name="min_cov" type="integer" optional="true" label="minimum coverage (default = not used)" help="do not include variants with a coverage lower than this value"/>
103 <param name="min_qual" type="integer" optional="true" label="minimum quality (default = not used)" help="do not include variants with a quality lower than this value"/>
104 <param name="no_ds" type="boolean" label="do not show downstream changes" truevalue="--no_downstream" falsevalue="" checked="false" help="annotation of effects on the downstream region of genes can be suppressed"/>
105 <param name="no_us" type="boolean" label="do not show upstream changes" truevalue="--no_upstream" falsevalue="" checked="false" help="annotation of effects on the upstream region of genes can be suppressed"/>
106 <param name="no_intron" type="boolean" label="do not show intron changes" truevalue="--no_intron" falsevalue="" checked="false" help="annotation of effects on introns of genes can be suppressed"/>
107 <param name="no_intergenic" type="boolean" label="do not show intergenic changes" truevalue="--no_intergenic" falsevalue="" checked="false" help="annotation of effects on intergenic regions can be suppressed"/>
108 <param name="no_utr" type="boolean" label="do not show UTR changes" truevalue="--no_utr" falsevalue="" checked="false" help="annotation of effects on the untranslated regions of genes can be suppressed"/>
109 <param name="ud" type="integer" optional="true" label="upstream downstream interval length (default = 5000 bases)" help="specify the upstream/downstream interval length, i.e., variants more than INTERVAL nts from the next annotated gene are considered to be intergenic"/>
110 </when>
111 </conditional>
112 </when>
113 </conditional>
114 </inputs>
115
116 <outputs>
117 <data name="outputfile" format="html" >
118 <change_format>
119 <when input="formatting.oformat" value="text" format="tabular"/>
120 </change_format>
121 </data>
122 <data name="snpeff_file" format="vcf" >
123 <filter>(annotool['name']=="snpeff" and annotool['ori_output'])</filter>
124 </data>
125 <data name="summary_file" format="html">
126 <filter>(annotool['name']=="snpeff" and annotool['stats'])</filter>
127 </data>
128 </outputs>
129
130 <help>
131 .. class:: infomark
132
133 **What it does**
134
135 The tool turns a variant list in VCF format into a more readable summary table listing variant sites and effects.
136
137 If installed, the variant annotation tool SnpEff can be used transparently to determine the genomic features, e.g., genes or transcripts, affected by the variants.
138
139 Use of this feature requires that you have an appropriate SnpEff genome file installed on the host machine. You can use the *List installed SnpEff genomes* tool to generate a list of all available SnpEff genomes.
140 This list can then be used (by selecting the dataset as the *genome list*) to populate the *genome* dropdown menu, from which you can select the SnpEff genome file to be used for the annotation.
141
142 As output file formats HTML or plain text are supported.
143 In HTML mode, variant positions and/or affected genomic features can be turned into hyperlinks to corresponding views in web-based genome browsers.
144
145 The behavior of this feature depends on:
146
147 1) Recognition of the species that is analyzed
148
149 You can declare the species you are working with using the *Species* text field.
150 If you are not declaring the species explicitly, but are choosing SnpEff for effect annotation, the tool will usually be able to auto-detect the species from the SnpEff genome you are using.
151 If no species gets assigned in either way, no hyperlinks will be generated and the html output will look essentially like plain text.
152
153 2) Available hyperlink formatting rules for this species
154
155 When the species has been recognized, the tool checks if you have selected an *optional file with hyperlink formatting instructions*.
156 If you did and that file contains an entry matching the recognized species, that entry will be used as a template to construct the hyperlinks.
157 If no matching entry is found in the file, an error will be raised.
158
159 If you did not supply a hyperlink formatting instruction file, the tool will consult an internal lookup table to see if it finds default rules for the construction of the hyperlinks for the species.
160 If not, no hyperlinks will be generated and the html output will look essentially like plain text.
161
162 </help>
163 </tool>
164