annotate vt_normalize.xml @ 1:16f7587ab084 draft

Uploaded
author iuc
date Thu, 14 Aug 2014 09:58:02 -0400
parents 106dc0bf83c6
children e76f203fc135
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@
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
12 -o "${ outfile }"
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
13 ##-q do not print options and summary []
1
16f7587ab084 Uploaded
iuc
parents: 0
diff changeset
14 -w $window
0
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
15
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
16 #if str( $intervals_file ) != 'None':
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
17 -I "${intervals_file}"
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
18 #end if
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
19
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
20 ##-i intervals []
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
21
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
22 #if $reference_source.reference_source_selector != "history":
1
16f7587ab084 Uploaded
iuc
parents: 0
diff changeset
23 -r "${reference_source.reference_genome.fields.path}"
0
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
24 #else:
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
25 -r "${reference_source.reference_genome}"
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
26 #end if
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
27
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
28 "${ infile }"
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
29 ]]>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
30 </command>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
31 <expand macro="stdio" />
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
32 <inputs>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
33 <param name="infile" type="data" format="vcf" label="VCF file to be normalised" />
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
34
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
35
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
36 <conditional name="reference_source">
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
37 <param name="reference_source_selector" type="select" label="Choose the source for the reference list">
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
38 <option value="cached" selected="True">Locally cached</option>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
39 <option value="history">History</option>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
40 </param>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
41 <when value="cached">
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
42 <param name="reference_genome" type="select" label="Using reference genome">
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
43 <options from_data_table="fasta_indexes">
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
44 <filter type="data_meta" ref="infile" key="dbkey" column="1" />
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
45 <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
46 </options>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
47 </param>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
48 </when>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
49 <when value="history">
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
50 <param name="reference_genome" type="data" format="fasta" label="Using reference file" />
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
51 </when>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
52 </conditional>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
53
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
54 <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
55 <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
56 help="(-w)">
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
57 <validator type="in_range" min="0"/>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
58 </param>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
59
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
60 </inputs>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
61 <outputs>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
62 <data name="outfile" format="vcf" label="${tool.name} on ${on_string}" />
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
63 </outputs>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
64 <tests>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
65 <test>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
66 </test>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
67 </tests>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
68 <help>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
69 **What it does**
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
70
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
71 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
72 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
73
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
74 @CITATION@
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
75 </help>
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
76 <!--expand macro="citations"/-->
106dc0bf83c6 Imported from capsule None
bgruening
parents:
diff changeset
77 </tool>