0
|
1 <tool id="cga_listvariant" name="listvariants" version="0.0.1">
|
|
2
|
|
3 <description>lists all called variants</description> <!--adds description in toolbar-->
|
|
4
|
|
5 <command> <!--run executable-->
|
|
6 cgatools listvariants
|
|
7 --beta
|
|
8 --reference ${crr.fields.path}
|
|
9 --output $output
|
|
10 --variants
|
|
11 #for $v in $varfiles <!--get each var file-->
|
|
12 ${v.input}
|
|
13 #end for
|
|
14 #if $include_list.listing == "yes" <!--only added when yes-->
|
|
15 --variant-listing $include_list.list
|
|
16 #end if
|
|
17 $longvar
|
|
18 </command>
|
|
19
|
|
20 <inputs>
|
|
21 <!--form field to select crr file-->
|
|
22 <param name="crr" type="select" label="Genome build">
|
|
23 <options from_data_table="cgatools" />
|
|
24 </param>
|
|
25
|
|
26 <!--form field to select long variants option-->
|
|
27 <param name="longvar" type="select" label="List long variants?">
|
|
28 <option value="" selected="true">no</option>
|
|
29 <option value="--list-long-variants">yes</option>
|
|
30 </param>
|
|
31
|
|
32 <!--form fields to include existing variant list-->
|
|
33 <conditional name="include_list">
|
|
34 <param name="listing" type="select" label="Include variant listing?">
|
|
35 <option value="no" selected="true">no</option>
|
|
36 <option value="yes">yes</option>
|
|
37 </param>
|
|
38 <when value="yes">
|
|
39 <param name="list" type="data" format="tabular" label="Variant listing"/>
|
|
40 </when>
|
|
41 </conditional>
|
|
42
|
|
43 <!--form field to select all variant files-->
|
|
44 <repeat name="varfiles" title="Var file">
|
|
45 <param name="input" type="data" format="tabular" label="Dataset">
|
|
46 <validator type="unspecified_build" />
|
|
47 <validator type="dataset_metadata_in_file" filename="cgatools.loc"
|
|
48 metadata_name="dbkey" metadata_column="0"
|
|
49 message="cgatools is not currently available for this build."/>
|
|
50 </param>
|
|
51 </repeat>
|
|
52 </inputs>
|
|
53
|
|
54 <outputs>
|
|
55 <data format="tabular" name="output" />
|
|
56 </outputs>
|
|
57
|
|
58 <help>
|
|
59
|
|
60 **What it does**
|
|
61
|
|
62 This tool uses the cgatools listvariants to list all called variants present in the var or mastervar files.
|
|
63
|
|
64 cgatools: http://sourceforge.net/projects/cgatools/files/
|
|
65
|
|
66 -----
|
|
67
|
|
68 **cgatools Manual**::
|
|
69
|
|
70 COMMAND NAME
|
|
71 listvariants - Lists the variants present in a variant file.
|
|
72
|
|
73 DESCRIPTION
|
|
74 Lists all called variants present in the specified variant files, in a
|
|
75 format suitable for processing by the testvariants command. The output is a
|
|
76 tab-delimited file consisting of the following columns:
|
|
77
|
|
78 variantId Sequential id assigned to each variant.
|
|
79 chromosome The chromosome of the variant.
|
|
80 begin 0-based reference offset of the beginning of the variant.
|
|
81 end 0-based reference offset of the end of the variant.
|
|
82 varType The varType as extracted from the variant file.
|
|
83 reference The reference sequence.
|
|
84 alleleSeq The variant allele sequence as extracted from the variant
|
|
85 file.
|
|
86 xRef The xRef as extrated from the variant file.
|
|
87
|
|
88 OPTIONS
|
|
89 -h [ --help ]
|
|
90 Print this help message.
|
|
91
|
|
92 --beta
|
|
93 This is a beta command. To run this command, you must pass the --beta
|
|
94 flag.
|
|
95
|
|
96 --reference arg
|
|
97 The reference crr file.
|
|
98
|
|
99 --output arg (=STDOUT)
|
|
100 The output file (may be omitted for stdout).
|
|
101
|
|
102 --variants arg
|
|
103 The input variant files (may be positional args).
|
|
104
|
|
105 --variant-listing arg
|
|
106 The output of another listvariants run, to be merged in to produce the
|
|
107 output of this run.
|
|
108
|
|
109 --list-long-variants
|
|
110 In addition to listing short variants, list longer variants as well
|
|
111 (10's of bases) by concatenating nearby calls.
|
|
112
|
|
113
|
|
114
|
|
115 SUPPORTED FORMAT_VERSION
|
|
116 0.3 or later
|
|
117 </help>
|
|
118 </tool>
|