annotate vt_normalize.xml @ 3:6e073fc99d9c draft default tip

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