comparison vt_normalize.xml @ 0:106dc0bf83c6 draft

Imported from capsule None
author bgruening
date Thu, 14 Aug 2014 07:41:51 -0400
parents
children 16f7587ab084
comparison
equal deleted inserted replaced
-1:000000000000 0:106dc0bf83c6
1 <tool id="vt_@BINARY@" name="VT @BINARY@" version="@VERSION@.0">
2 <description>normalizes variants in a VCF file</description>
3 <expand macro="requirements" />
4 <expand macro="version_command" />
5 <macros>
6 <import>vt_macros.xml</import>
7 <token name="@BINARY@">normalize</token>
8 </macros>
9 <command>
10 <![CDATA[
11 vt @BINARY@
12 -o "${ outfile }"
13 ##-q do not print options and summary []
14 -w window size for local sorting of variants [10000]
15
16 #if str( $intervals_file ) != 'None':
17 -I "${intervals_file}"
18 #end if
19
20 ##-i intervals []
21
22 #if $reference_source.reference_source_selector != "history":
23 -r "${reference_source.reference_genome.fields.path}"'
24 #else:
25 -r "${reference_source.reference_genome}"
26 #end if
27
28 "${ infile }"
29 ]]>
30 </command>
31 <expand macro="stdio" />
32 <inputs>
33 <param name="infile" type="data" format="vcf" label="VCF file to be normalised" />
34
35
36 <conditional name="reference_source">
37 <param name="reference_source_selector" type="select" label="Choose the source for the reference list">
38 <option value="cached" selected="True">Locally cached</option>
39 <option value="history">History</option>
40 </param>
41 <when value="cached">
42 <param name="reference_genome" type="select" label="Using reference genome">
43 <options from_data_table="fasta_indexes">
44 <filter type="data_meta" ref="infile" key="dbkey" column="1" />
45 <validator type="no_options" message="No reference genome is available for the build associated with the selected input dataset" />
46 </options>
47 </param>
48 </when>
49 <when value="history">
50 <param name="reference_genome" type="data" format="fasta" label="Using reference file" />
51 </when>
52 </conditional>
53
54 <param name="intervals_file" type="data" format="bed" optional="True" label="File containing list of intervals" />
55 <param name="window" type="integer" value="10000" size="10" label="Window size for local sorting of variants"
56 help="(-w)">
57 <validator type="in_range" min="0"/>
58 </param>
59
60 </inputs>
61 <outputs>
62 <data name="outfile" format="vcf" label="${tool.name} on ${on_string}" />
63 </outputs>
64 <tests>
65 <test>
66 </test>
67 </tests>
68 <help>
69 **What it does**
70
71 Normalize variants in a VCF file. Normalized variants may have their positions changed; in such cases,
72 the normalized variants are reordered and output in an ordered fashion. The local reordering takes place over a window of 10000 base pairs.
73
74 @CITATION@
75 </help>
76 <!--expand macro="citations"/-->
77 </tool>