0
|
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@
|
2
|
12 #if $output_format == 'bcf':
|
|
13 -o normalised.bcf
|
|
14 #else:
|
|
15 -o normalised.vcf
|
|
16 #end if
|
0
|
17 ##-q do not print options and summary []
|
1
|
18 -w $window
|
0
|
19
|
|
20 #if str( $intervals_file ) != 'None':
|
|
21 -I "${intervals_file}"
|
|
22 #end if
|
|
23
|
|
24 ##-i intervals []
|
|
25
|
|
26 #if $reference_source.reference_source_selector != "history":
|
1
|
27 -r "${reference_source.reference_genome.fields.path}"
|
0
|
28 #else:
|
|
29 -r "${reference_source.reference_genome}"
|
|
30 #end if
|
|
31
|
2
|
32 "${ infile }";
|
|
33
|
|
34 #if $output_format == 'bcf':
|
|
35 mv normalised.bcf "${ outfile }";
|
|
36 #else:
|
|
37 mv normalised.vcf "${ outfile }";
|
|
38 #end if
|
|
39
|
0
|
40 ]]>
|
|
41 </command>
|
|
42 <expand macro="stdio" />
|
|
43 <inputs>
|
|
44 <param name="infile" type="data" format="vcf" label="VCF file to be normalised" />
|
|
45
|
|
46
|
|
47 <conditional name="reference_source">
|
|
48 <param name="reference_source_selector" type="select" label="Choose the source for the reference list">
|
|
49 <option value="cached" selected="True">Locally cached</option>
|
|
50 <option value="history">History</option>
|
|
51 </param>
|
|
52 <when value="cached">
|
|
53 <param name="reference_genome" type="select" label="Using reference genome">
|
|
54 <options from_data_table="fasta_indexes">
|
|
55 <filter type="data_meta" ref="infile" key="dbkey" column="1" />
|
|
56 <validator type="no_options" message="No reference genome is available for the build associated with the selected input dataset" />
|
|
57 </options>
|
|
58 </param>
|
|
59 </when>
|
|
60 <when value="history">
|
|
61 <param name="reference_genome" type="data" format="fasta" label="Using reference file" />
|
|
62 </when>
|
|
63 </conditional>
|
|
64
|
|
65 <param name="intervals_file" type="data" format="bed" optional="True" label="File containing list of intervals" />
|
|
66 <param name="window" type="integer" value="10000" size="10" label="Window size for local sorting of variants"
|
|
67 help="(-w)">
|
|
68 <validator type="in_range" min="0"/>
|
|
69 </param>
|
|
70
|
2
|
71 <param name="output_format" type="select" label="Choose the output format" help="">
|
|
72 <option value="bcf">BCF</option>
|
|
73 <option value="vcf" selected="true">VCF</option>
|
|
74 </param>
|
|
75
|
0
|
76 </inputs>
|
|
77 <outputs>
|
2
|
78 <data name="outfile" format="vcf" label="${tool.name} on ${on_string}">
|
|
79 <change_format>
|
|
80 <when input="output_format" value="bcf" format="bcf" />
|
|
81 </change_format>
|
|
82 </data>
|
0
|
83 </outputs>
|
|
84 <tests>
|
|
85 <test>
|
|
86 </test>
|
|
87 </tests>
|
|
88 <help>
|
|
89 **What it does**
|
|
90
|
|
91 Normalize variants in a VCF file. Normalized variants may have their positions changed; in such cases,
|
|
92 the normalized variants are reordered and output in an ordered fashion. The local reordering takes place over a window of 10000 base pairs.
|
|
93
|
|
94 @CITATION@
|
|
95 </help>
|
|
96 <!--expand macro="citations"/-->
|
|
97 </tool>
|