comparison cloudmap.xml @ 23:5db0545b9004 draft

update to v0.1.7.3
author wolma
date Thu, 21 Jul 2016 03:55:49 -0400
parents c46406466625
children
comparison
equal deleted inserted replaced
22:24154c580718 23:5db0545b9004
1 <tool id="nacreousmap" name="NacreousMap" version="0.1.7.2"> 1 <tool id="nacreousmap" name="NacreousMap" version="0.1.7.3">
2 <description>Map causative mutations by multi-variant linkage analysis.</description> 2 <description>Map causative mutations by multi-variant linkage analysis.</description>
3 <expand macro="requirements_rplot"/> 3 <expand macro="requirements_rplot" /> <version_command>python3 -m MiModD version -q</version_command>
4 <version_command>python3 -m MiModD version -q</version_command>
5 <command> 4 <command>
6 python3 -m MiModD map ${opt.mode} "${opt.source.ifile}" 5 python3 -m MiModD map ${opt.mode} "${opt.source.ifile}"
7 #if $str($opt.source.sample): 6 #if $str($opt.source.sample):
8 -m "${opt.source.sample}" 7 -m "${opt.source.sample}"
9 #end if 8 #end if
60 <import>toolshed_macros.xml</import> 59 <import>toolshed_macros.xml</import>
61 <macro name="svd_unconditional"> 60 <macro name="svd_unconditional">
62 <expand macro="hidden_vaf_algo_params" /> 61 <expand macro="hidden_vaf_algo_params" />
63 <expand macro="seqdict_param" /> 62 <expand macro="seqdict_param" />
64 <expand macro="bins" /> 63 <expand macro="bins" />
65 <param name="norm" type="boolean" label="normalize variant counts to bin-width" truevalue="" falsevalue="--no-normalize" checked="true" help="without normalization the tool will just report the number of nucleotides per bin; with normalization the results for different bin-widths will be comparable." /> 64 <param checked="true" falsevalue="--no-normalize" help="without normalization the tool will just report the number of nucleotides per bin; with normalization the results for different bin-widths will be comparable." label="normalize variant counts to bin-width" name="norm" truevalue="" type="boolean" />
66 <conditional name="plotopts"> 65 <conditional name="plotopts">
67 <param name="plots" type="select" label="graphical output settings"> 66 <param label="graphical output settings" name="plots" type="select">
68 <option value="">Do not generate graphs.</option> 67 <option value="">Do not generate graphs.</option>
69 <option value="-p">Give me graphics.</option> 68 <option value="-p">Give me graphics.</option>
70 </param> 69 </param>
71 <when value="-p"> 70 <when value="-p">
72 <expand macro="scatter_default" /> 71 <expand macro="scatter_default" />
73 <param name="hylim" type="text" label="upper limit for the histogram y-axis (leave blank for automatic scaling)" /> 72 <param label="upper limit for the histogram y-axis (leave blank for automatic scaling)" name="hylim" type="text" />
74 <param name="xlim" type="select" label="x-axis scaling"> 73 <param label="x-axis scaling" name="xlim" type="select">
75 <option value="">preserve relative contig sizes</option> 74 <option value="">preserve relative contig sizes</option>
76 <option value="--fit-width">scale each contig to fit the plot width</option> 75 <option value="--fit-width">scale each contig to fit the plot width</option>
77 </param> 76 </param>
78 <expand macro="hist_colors" /> 77 <expand macro="hist_colors" />
79 </when> 78 </when>
80 </conditional> 79 </conditional>
81 </macro> 80 </macro>
82 <macro name="vaf_unconditional"> 81 <macro name="vaf_unconditional">
83 <expand macro="bins" /> 82 <expand macro="bins" />
84 <param name="norm" type="boolean" label="normalize variant counts to bin-width" truevalue="" falsevalue="--no-normalize" checked="true" /> 83 <param checked="true" falsevalue="--no-normalize" label="normalize variant counts to bin-width" name="norm" truevalue="" type="boolean" />
85 <conditional name="plotopts"> 84 <conditional name="plotopts">
86 <param name="plots" type="select" label="graphical output settings"> 85 <param label="graphical output settings" name="plots" type="select">
87 <option value="">Do not generate graphs.</option> 86 <option value="">Do not generate graphs.</option>
88 <option value="--no-scatter -p">Generate only histograms</option> 87 <option value="--no-scatter -p">Generate only histograms</option>
89 <option value="--no-hist -p">Generate only scatter plots</option> 88 <option value="--no-hist -p">Generate only scatter plots</option>
90 <option value="-p">Give me everything (scatter plots and histograms)</option> 89 <option value="-p">Give me everything (scatter plots and histograms)</option>
91 </param> 90 </param>
92 <when value="--no-scatter -p"> 91 <when value="--no-scatter -p">
93 <expand macro="scatter_default" /> 92 <expand macro="scatter_default" />
94 <param name="hylim" type="text" label="upper limit for the histogram y-axis (leave blank for automatic scaling)" /> 93 <param label="upper limit for the histogram y-axis (leave blank for automatic scaling)" name="hylim" type="text" />
95 <param name="xlim" type="select" label="x-axis scaling"> 94 <param label="x-axis scaling" name="xlim" type="select">
96 <option value="">preserve relative contig sizes</option> 95 <option value="">preserve relative contig sizes</option>
97 <option value="--fit-width">scale each contig to fit the plot width</option> 96 <option value="--fit-width">scale each contig to fit the plot width</option>
98 </param> 97 </param>
99 <expand macro="hist_colors" /> 98 <expand macro="hist_colors" />
100 </when> 99 </when>
101 <when value="--no-hist -p"> 100 <when value="--no-hist -p">
102 <expand macro="hist_default" /> 101 <expand macro="hist_default" />
103 <param name="sylim" type="text" label="upper limit for the scatter plot y-axis (default: 1)" /> 102 <param label="upper limit for the scatter plot y-axis (default: 1)" name="sylim" type="text" />
104 <param name="xlim" type="select" label="x-axis scaling"> 103 <param label="x-axis scaling" name="xlim" type="select">
105 <option value="">preserve relative contig sizes</option> 104 <option value="">preserve relative contig sizes</option>
106 <option value="--fit-width">scale each contig to fit the plot width</option> 105 <option value="--fit-width">scale each contig to fit the plot width</option>
107 </param> 106 </param>
108 <param name="span" type="text" label="span value to be used in calculating the Loess regression line through the scatter data (default=0.1, specify 0 to prevent calculation)" help="smaller values give a more responsive curve that often picks up local evidence for tight linkage better, but too small values lead to plotting failures (in that case just rerun the tool with a larger value)." /> 107 <param help="smaller values give a more responsive curve that often picks up local evidence for tight linkage better, but too small values lead to plotting failures (in that case just rerun the tool with a larger value)." label="span value to be used in calculating the Loess regression line through the scatter data (default=0.1, specify 0 to prevent calculation)" name="span" type="text" />
109 <expand macro="scatter_colors" /> 108 <expand macro="scatter_colors" />
110 </when> 109 </when>
111 <when value="-p"> 110 <when value="-p">
112 <expand macro="plot_all" /> 111 <expand macro="plot_all" />
113 </when> 112 </when>
118 <param name="related_parent_sample" type="hidden" value="" /> 117 <param name="related_parent_sample" type="hidden" value="" />
119 <param name="unrelated_parent_sample" type="hidden" value="" /> 118 <param name="unrelated_parent_sample" type="hidden" value="" />
120 <param name="infer_missing" type="hidden" value="" /> 119 <param name="infer_missing" type="hidden" value="" />
121 </macro> 120 </macro>
122 <macro name="bins"> 121 <macro name="bins">
123 <repeat name="bin_sizes" title="bin sizes to analyze variants in (defaults to: 1Mb and 500Kb)" default="0" min="0" help="Values can be entered in bases (e.g., 1000000), kilobases (e.g., 500Kb) or megabases (e.g., 1Mb), but must be integral, i.e. no decimal numbers are allowed."> 122 <repeat default="0" help="Values can be entered in bases (e.g., 1000000), kilobases (e.g., 500Kb) or megabases (e.g., 1Mb), but must be integral, i.e. no decimal numbers are allowed." min="0" name="bin_sizes" title="bin sizes to analyze variants in (defaults to: 1Mb and 500Kb)">
124 <param name="bin_size" type="text" /> 123 <param name="bin_size" type="text" />
125 </repeat> 124 </repeat>
126 </macro> 125 </macro>
127 <macro name="scatter_default"> 126 <macro name="scatter_default">
128 <param name="sylim" type="hidden" value="" /> 127 <param name="sylim" type="hidden" value="" />
133 <macro name="hist_default"> 132 <macro name="hist_default">
134 <param name="hylim" type="hidden" value="" /> 133 <param name="hylim" type="hidden" value="" />
135 <param name="hcols" type="hidden" value="" /> 134 <param name="hcols" type="hidden" value="" />
136 </macro> 135 </macro>
137 <macro name="hist_colors"> 136 <macro name="hist_colors">
138 <repeat name="hcols" title="histogram colors" default="0" min="0" help="For each bin size chosen above a histogram will be generated with its color selected from the list provided here (defaults to alternating darkgrey, red)."> 137 <repeat default="0" help="For each bin size chosen above a histogram will be generated with its color selected from the list provided here (defaults to alternating darkgrey, red)." min="0" name="hcols" title="histogram colors">
139 <param name="hcolor" type="color" value="darkgrey"> 138 <param name="hcolor" type="color" value="darkgrey">
140 <sanitizer><valid><add value="#" /></valid></sanitizer> 139 <sanitizer><valid><add value="#" /></valid></sanitizer>
141 </param> 140 </param>
142 </repeat> 141 </repeat>
143 </macro> 142 </macro>
144 <macro name="scatter_colors"> 143 <macro name="scatter_colors">
145 <param name="pcol" type="color" value="#454545" label="color to be used for the scatter plot data points (default: gray27)"> 144 <param label="color to be used for the scatter plot data points (default: gray27)" name="pcol" type="color" value="#454545">
146 <sanitizer><valid><add value="#" /></valid></sanitizer> 145 <sanitizer><valid><add value="#" /></valid></sanitizer>
147 </param> 146 </param>
148 <param name="lcol" type="color" value="red" label="color to be used for the regression line (default: red)"> 147 <param label="color to be used for the regression line (default: red)" name="lcol" type="color" value="red">
149 <sanitizer><valid><add value="#" /></valid></sanitizer> 148 <sanitizer><valid><add value="#" /></valid></sanitizer>
150 </param> 149 </param>
151 </macro> 150 </macro>
152 <macro name="plot_all"> 151 <macro name="plot_all">
153 <param name="hylim" type="text" label="upper limit for the histogram y-axis (leave blank for automatic scaling)" /> 152 <param label="upper limit for the histogram y-axis (leave blank for automatic scaling)" name="hylim" type="text" />
154 <param name="sylim" type="text" label="upper limit for the scatter plot y-axis (default: 1)" /> 153 <param label="upper limit for the scatter plot y-axis (default: 1)" name="sylim" type="text" />
155 <param name="xlim" type="select" label="x-axis scaling"> 154 <param label="x-axis scaling" name="xlim" type="select">
156 <option value="">preserve relative contig sizes</option> 155 <option value="">preserve relative contig sizes</option>
157 <option value="--fit-width">scale each contig to fit the plot width</option> 156 <option value="--fit-width">scale each contig to fit the plot width</option>
158 </param> 157 </param>
159 <param name="span" type="text" label="span value to be used in calculating the Loess regression line through the scatter data (default=0.1, specify 0 to prevent calculation)" help="smaller values give a more responsive curve that often picks up local evidence for tight linkage better, but too small values lead to plotting failures (in that case just rerun the tool with a larger value)." /> 158 <param help="smaller values give a more responsive curve that often picks up local evidence for tight linkage better, but too small values lead to plotting failures (in that case just rerun the tool with a larger value)." label="span value to be used in calculating the Loess regression line through the scatter data (default=0.1, specify 0 to prevent calculation)" name="span" type="text" />
160 <expand macro="hist_colors" /> 159 <expand macro="hist_colors" />
161 <expand macro="scatter_colors" /> 160 <expand macro="scatter_colors" />
162 </macro> 161 </macro>
163 <macro name="seqdict_param"> 162 <macro name="seqdict_param">
164 <conditional name="seqdict_required"> 163 <conditional name="seqdict_required">
165 <param name="required" type="select" label="does this input file require a CloudMap-style sequence dictionary?" help="A sequence dictionary file is required ONLY if the input file does not provide information about the sizes of the chromosomes defined in it. It is NEVER needed for MiModD-generated input files."> 164 <param help="A sequence dictionary file is required ONLY if the input file does not provide information about the sizes of the chromosomes defined in it. It is NEVER needed for MiModD-generated input files." label="does this input file require a CloudMap-style sequence dictionary?" name="required" type="select">
166 <option value="no">No</option> 165 <option value="no">No</option>
167 <option value="yes">Yes</option> 166 <option value="yes">Yes</option>
168 </param> 167 </param>
169 <when value="yes"> 168 <when value="yes">
170 <param name="seqdict" type="data" format="tabular" label="CloudMap-style sequence dictionary file" /> 169 <param format="tabular" label="CloudMap-style sequence dictionary file" name="seqdict" type="data" />
171 </when> 170 </when>
172 </conditional> 171 </conditional>
173 </macro> 172 </macro>
174 </macros> 173 </macros>
175 174
176 <inputs> 175 <inputs>
177 <conditional name="opt"> 176 <conditional name="opt">
178 <param name="mode" type="select" label="type of mapping analysis to perform" help="Select Simple Variant Density (SVD) Mapping to map mutations based on linked inheritance in near isogenic populations, Variant Allele Frequency (VAF) Mapping for bulk segregant analysis. Select Reprocess for rapidly replotting the result of a previous VAF analysis."> 177 <param help="Select Simple Variant Density (SVD) Mapping to map mutations based on linked inheritance in near isogenic populations, Variant Allele Frequency (VAF) Mapping for bulk segregant analysis. Select Reprocess for rapidly replotting the result of a previous VAF analysis." label="type of mapping analysis to perform" name="mode" type="select">
179 <option value="SVD">Simple Variant Density Mapping</option> 178 <option value="SVD">Simple Variant Density Mapping</option>
180 <option value="VAF">Variant Allele Frequency Mapping</option> 179 <option value="VAF">Variant Allele Frequency Mapping</option>
181 </param> 180 </param>
182 <when value="SVD"> 181 <when value="SVD">
183 <conditional name="source"> 182 <conditional name="source">
184 <param name="inputtype" type="select" label="data source to use"> 183 <param label="data source to use" name="inputtype" type="select">
185 <option value="vcf">VCF file of variants (for de-novo mapping)</option> 184 <option value="vcf">VCF file of variants (for de-novo mapping)</option>
186 <option value="rep">per-variant report file (for remapping a previous analysis)</option> 185 <option value="rep">per-variant report file (for remapping a previous analysis)</option>
187 </param> 186 </param>
188 <when value="vcf"> 187 <when value="vcf">
189 <param name="ifile" type="data" format="vcf" label="input file with variants to analyze" /> 188 <param format="vcf" label="input file with variants to analyze" name="ifile" type="data" />
190 <expand macro="svd_unconditional" /> 189 <expand macro="svd_unconditional" />
191 <param name="tabfile" type="select" label="additional per-variant output file" help="You can either choose to produce a tabular per-variant report, which is useful for fast replotting with different plot settings or a vcf-like CloudMap-compatibility file that can be used as input for the CloudMap EMS Variant Density Mapping tool as an alternative plotting tool."> 190 <param help="You can either choose to produce a tabular per-variant report, which is useful for fast replotting with different plot settings or a vcf-like CloudMap-compatibility file that can be used as input for the CloudMap EMS Variant Density Mapping tool as an alternative plotting tool." label="additional per-variant output file" name="tabfile" type="select">
192 <option value="">Do not generate per-variant output</option> 191 <option value="">Do not generate per-variant output</option>
193 <option value="-t">Tabular per-variant report</option> 192 <option value="-t">Tabular per-variant report</option>
194 <option value="--cloudmap -t">CloudMap compatibility file</option> 193 <option value="--cloudmap -t">CloudMap compatibility file</option>
195 </param> 194 </param>
196 </when> 195 </when>
197 <when value="rep"> 196 <when value="rep">
198 <param name="ifile" type="data" format="tabular" label="input file with variants to analyze" /> 197 <param format="tabular" label="input file with variants to analyze" name="ifile" type="data" />
199 <param name="tabfile" type="hidden" value="" /> 198 <param name="tabfile" type="hidden" value="" />
200 <expand macro="svd_unconditional" /> 199 <expand macro="svd_unconditional" />
201 </when> 200 </when>
202 </conditional> 201 </conditional>
203 </when> 202 </when>
204 <when value="VAF"> 203 <when value="VAF">
205 <conditional name="source"> 204 <conditional name="source">
206 <param name="inputtype" type="select" label="data source to use"> 205 <param label="data source to use" name="inputtype" type="select">
207 <option value="vcf">VCF file of variants (for de-novo mapping)</option> 206 <option value="vcf">VCF file of variants (for de-novo mapping)</option>
208 <option value="rep">per-variant report file (for remapping a previous analysis)</option> 207 <option value="rep">per-variant report file (for remapping a previous analysis)</option>
209 </param> 208 </param>
210 <when value="vcf"> 209 <when value="vcf">
211 <param name="ifile" type="data" format="vcf" label="input file with variants to analyze" /> 210 <param format="vcf" label="input file with variants to analyze" name="ifile" type="data" />
212 <expand macro="seqdict_param" /> 211 <expand macro="seqdict_param" />
213 <param name="sample" type="text" label="mapping sample name" help="the sample to perform mutation mapping for" /> 212 <param help="the sample to perform mutation mapping for" label="mapping sample name" name="sample" type="text" />
214 <param name="related_parent_sample" type="text" label="name of the related parent sample" help="the sample that provides variants present in your original mutant strain or in an ancestor (like the pre-mutagenesis strain); leave blank if not available" /> 213 <param help="the sample that provides variants present in your original mutant strain or in an ancestor (like the pre-mutagenesis strain); leave blank if not available" label="name of the related parent sample" name="related_parent_sample" type="text" />
215 <param name="unrelated_parent_sample" type="text" label="name of the unrelated parent sample" help="the sample that provides variants present in the unrelated mapping strain (or in an ancestor of it) used in the mapping cross; leave blank if not available" /> 214 <param help="the sample that provides variants present in the unrelated mapping strain (or in an ancestor of it) used in the mapping cross; leave blank if not available" label="name of the unrelated parent sample" name="unrelated_parent_sample" type="text" />
216 <param name="infer_missing" type="boolean" checked="false" truevalue="--infer-missing" falsevalue="" label="Infer alleles for missing parent" help="if variant data for either the related or the unrelated parent strain is not available, the tool can try to infer the alleles present in that parent from the allele spectrum found in the mapping sample. Use with caution on carefully filtered variant lists only!" /> 215 <param checked="false" falsevalue="" help="if variant data for either the related or the unrelated parent strain is not available, the tool can try to infer the alleles present in that parent from the allele spectrum found in the mapping sample. Use with caution on carefully filtered variant lists only!" label="Infer alleles for missing parent" name="infer_missing" truevalue="--infer-missing" type="boolean" />
217 <expand macro="vaf_unconditional" /> 216 <expand macro="vaf_unconditional" />
218 <param name="tabfile" type="select" label="additional per-variant output file" help="You can either choose to produce a tabular per-variant report, which is useful for fast replotting with different plot settings or a vcf-like CloudMap-compatibility file that can be used as input for the CloudMap Hawaiian Variant Mapping tool as an alternative plotting tool."> 217 <param help="You can either choose to produce a tabular per-variant report, which is useful for fast replotting with different plot settings or a vcf-like CloudMap-compatibility file that can be used as input for the CloudMap Hawaiian Variant Mapping tool as an alternative plotting tool." label="additional per-variant output file" name="tabfile" type="select">
219 <option value="">Do not generate per-variant output</option> 218 <option value="">Do not generate per-variant output</option>
220 <option value="-t">Tabular per-variant report</option> 219 <option value="-t">Tabular per-variant report</option>
221 <option value="--cloudmap -t">CloudMap compatibility file</option> 220 <option value="--cloudmap -t">CloudMap compatibility file</option>
222 </param> 221 </param>
223 </when> 222 </when>
224 <when value="rep"> 223 <when value="rep">
225 <param name="ifile" type="data" format="tabular" label="input file with variants to analyze" /> 224 <param format="tabular" label="input file with variants to analyze" name="ifile" type="data" />
226 <expand macro="seqdict_param" /> 225 <expand macro="seqdict_param" />
227 <param name="tabfile" type="hidden" value="" /> 226 <param name="tabfile" type="hidden" value="" />
228 <expand macro="hidden_vaf_algo_params" /> 227 <expand macro="hidden_vaf_algo_params" />
229 <expand macro="vaf_unconditional" /> 228 <expand macro="vaf_unconditional" />
230 </when> 229 </when>
232 </when> 231 </when>
233 </conditional> 232 </conditional>
234 </inputs> 233 </inputs>
235 234
236 <outputs> 235 <outputs>
237 <data name="ofile" format="tabular" label="MiModD ${opt.mode} Mapping - binned variant counts for ${on_string}" /> 236 <data format="tabular" label="MiModD ${opt.mode} Mapping - binned variant counts for ${on_string}" name="ofile" />
238 <data name="tfile" format="tabular" label="MiModD ${opt.mode} Mapping - per-variant report for ${on_string}"> 237 <data format="tabular" label="MiModD ${opt.mode} Mapping - per-variant report for ${on_string}" name="tfile">
239 <filter>(opt['source']['tabfile'])</filter> 238 <filter>(opt['source']['tabfile'])</filter>
240 </data> 239 </data>
241 <data name="pfile" format="pdf" label="MiModD ${opt.mode} Mapping - linkage plots for ${on_string}"> 240 <data format="pdf" label="MiModD ${opt.mode} Mapping - linkage plots for ${on_string}" name="pfile">
242 <filter>(opt['source']['plotopts']['plots'])</filter> 241 <filter>(opt['source']['plotopts']['plots'])</filter>
243 </data> 242 </data>
244 </outputs> 243 </outputs>
245 244
246 <help> 245 <help>