|
8
|
1 <tool id="cga_listvariant" name="listvariants(beta)" version="0.0.1">
|
|
|
2 <!--
|
|
|
3 This tool creates a GUI for cgatools listvariants from Complete Genomics, Inc.
|
|
|
4 written 5-29-2012 by bcrain@completegenomics.com
|
|
|
5 -->
|
|
|
6
|
|
|
7 <description>lists all called variants</description> <!--adds description in toolbar-->
|
|
|
8
|
|
|
9 <requirements>
|
|
|
10 <requirement type="binary">cgatools</requirement>
|
|
|
11 </requirements>
|
|
|
12
|
|
|
13 <command> <!--run executable-->
|
|
|
14 cgatools listvariants
|
|
|
15 --beta
|
|
|
16 --reference ${crr.fields.path}
|
|
|
17 --output $output
|
|
|
18 #if $include_list.listing == "yes" <!--only added when yes-->
|
|
|
19 --variant-listing $include_list.list
|
|
|
20 #end if
|
|
|
21 $longvar
|
|
|
22 --variants
|
|
|
23 #if $file_types.data_sources.data_source == "in"
|
|
|
24 #for $v in $file_types.data_sources.varfiles <!--get each var/mastervar file-->
|
|
|
25 ${v.input}
|
|
|
26 #end for
|
|
|
27 #else
|
|
|
28 `cat $file_types.data_sources.varlist`
|
|
|
29 #end if
|
|
|
30 </command>
|
|
|
31
|
|
|
32 <inputs>
|
|
|
33 <!--form field to select crr file-->
|
|
|
34 <param name="crr" type="select" label="Genome build">
|
|
|
35 <options from_data_table="cg_crr_files" />
|
|
|
36 </param>
|
|
|
37
|
|
|
38 <!--form field to select long variants option-->
|
|
|
39 <param name="longvar" type="select" label="List long variants?">
|
|
|
40 <option value="" selected="true">no</option>
|
|
|
41 <option value="--list-long-variants">yes</option>
|
|
|
42 </param>
|
|
|
43
|
|
|
44 <!--form fields to include existing variant list-->
|
|
|
45 <conditional name="include_list">
|
|
|
46 <param name="listing" type="select" label="Include variant listing?">
|
|
|
47 <option value="no" selected="true">no</option>
|
|
|
48 <option value="yes">yes</option>
|
|
|
49 </param>
|
|
|
50 <when value="yes">
|
|
|
51 <param name="list" type="data" format="tabular" label="Variant listing"/>
|
|
|
52 </when>
|
|
|
53 </conditional>
|
|
|
54
|
|
|
55 <!--conditional to select input file type-->
|
|
|
56 <conditional name="file_types">
|
|
|
57 <param name="file_type" type="select" label="Select the input file type">
|
|
|
58 <option value="var" selected="true">var files</option>
|
|
|
59 <option value="mastervar">mastervar files</option>
|
|
|
60 </param>
|
|
|
61
|
|
|
62 <when value="var">
|
|
|
63 <!--conditional to select variant file input-->
|
|
|
64 <conditional name="data_sources">
|
|
|
65 <param name="data_source" type="select" label="Where are the input var files?">
|
|
|
66 <option value="in" selected="true">imported into Galaxy</option>
|
|
|
67 <option value="out">located outside Galaxy (available only for local Galaxy instances)</option>
|
|
|
68 </param>
|
|
|
69 <when value="in">
|
|
|
70 <!--form field to select variant files-->
|
|
|
71 <repeat name="varfiles" title="Variant files">
|
|
|
72 <param name="input" type="data" format="cg_var" label="Dataset">
|
|
|
73 <validator type="unspecified_build" />
|
|
|
74 <validator type="dataset_metadata_in_file" filename="cg_crr_files.loc"
|
|
|
75 metadata_name="dbkey" metadata_column="1"
|
|
|
76 message="cgatools is not currently available for this build."/>
|
|
|
77 <!--<validator type="expression" message="Dataset does not match selected build.">$dbkey == $crr.fields.dbkey</validator>-->
|
|
|
78 </param>
|
|
|
79 </repeat>
|
|
|
80 </when>
|
|
|
81 <when value="out">
|
|
|
82 <!--form field to select crr file-->
|
|
|
83 <param name="varlist" type="text" label="List of variant files (/path/file)" size="200" help="file with list of var files (/path/varfile), var files can be compressed (gz, bz2)."/>
|
|
|
84 </when>
|
|
|
85 </conditional>
|
|
|
86 </when>
|
|
|
87
|
|
|
88 <when value="mastervar">
|
|
|
89 <!--conditional to select variant file input-->
|
|
|
90 <conditional name="data_sources">
|
|
|
91 <param name="data_source" type="select" label="Where are the input mastervar files?">
|
|
|
92 <option value="in" selected="true">imported into Galaxy</option>
|
|
|
93 <option value="out">located outside Galaxy (available only for local Galaxy instances)</option>
|
|
|
94 </param>
|
|
|
95 <when value="in">
|
|
|
96 <!--form field to select variant files-->
|
|
|
97 <repeat name="varfiles" title="Variant files">
|
|
|
98 <param name="input" type="data" format="cg_mastervar" label="Dataset">
|
|
|
99 <validator type="unspecified_build" />
|
|
|
100 <validator type="dataset_metadata_in_file" filename="cg_crr_files.loc"
|
|
|
101 metadata_name="dbkey" metadata_column="1"
|
|
|
102 message="cgatools is not currently available for this build."/>
|
|
|
103 </param>
|
|
|
104 </repeat>
|
|
|
105 </when>
|
|
|
106 <when value="out">
|
|
|
107 <!--form field to select crr file-->
|
|
|
108 <param name="varlist" type="text" label="List of mastervar files (/path/file)" size="200" help="file with list of mastervar files (/path/varfile), mastervar files can be compressed (gz, bz2)."/>
|
|
|
109 </when>
|
|
|
110 </conditional>
|
|
|
111 </when>
|
|
|
112 </conditional>
|
|
|
113 </inputs>
|
|
|
114
|
|
|
115 <outputs>
|
|
|
116 <data format="tabular" name="output"/>
|
|
|
117 </outputs>
|
|
|
118
|
|
|
119 <!-- <tests>
|
|
|
120 <test>
|
|
|
121 <param name="reference" value="hg19.crr"/>
|
|
|
122 <param name="file_type" value="var"/>
|
|
|
123 <param name="data_source" value="in"/>
|
|
|
124 <param name="varfiles?input" value="??"/>
|
|
|
125 <param name="varfiles?input" value="??"/>
|
|
|
126 <output name="output" file="??"/>
|
|
|
127 </test>
|
|
|
128 </tests>-->
|
|
|
129
|
|
|
130 <help>
|
|
|
131
|
|
|
132 **What it does**
|
|
|
133
|
|
|
134 This tool uses the cgatools listvariants to list all called variants present in the var or mastervar files.
|
|
|
135
|
|
|
136 cgatools: http://sourceforge.net/projects/cgatools/files/
|
|
|
137
|
|
|
138 -----
|
|
|
139
|
|
|
140 **cgatools Manual**::
|
|
|
141
|
|
|
142 COMMAND NAME
|
|
|
143 listvariants - Lists the variants present in a variant file.
|
|
|
144
|
|
|
145 DESCRIPTION
|
|
|
146 Lists all called variants present in the specified variant files, in a
|
|
|
147 format suitable for processing by the testvariants command. The output is a
|
|
|
148 tab-delimited file consisting of the following columns:
|
|
|
149
|
|
|
150 variantId Sequential id assigned to each variant.
|
|
|
151 chromosome The chromosome of the variant.
|
|
|
152 begin 0-based reference offset of the beginning of the variant.
|
|
|
153 end 0-based reference offset of the end of the variant.
|
|
|
154 varType The varType as extracted from the variant file.
|
|
|
155 reference The reference sequence.
|
|
|
156 alleleSeq The variant allele sequence as extracted from the variant
|
|
|
157 file.
|
|
|
158 xRef The xRef as extrated from the variant file.
|
|
|
159
|
|
|
160 OPTIONS
|
|
|
161 -h [ --help ]
|
|
|
162 Print this help message.
|
|
|
163
|
|
|
164 --beta
|
|
|
165 This is a beta command. To run this command, you must pass the --beta
|
|
|
166 flag.
|
|
|
167
|
|
|
168 --reference arg
|
|
|
169 The reference crr file.
|
|
|
170
|
|
|
171 --output arg (=STDOUT)
|
|
|
172 The output file (may be omitted for stdout).
|
|
|
173
|
|
|
174 --variants arg
|
|
|
175 The input variant files (may be positional args).
|
|
|
176
|
|
|
177 --variant-listing arg
|
|
|
178 The output of another listvariants run, to be merged in to produce the
|
|
|
179 output of this run.
|
|
|
180
|
|
|
181 --list-long-variants
|
|
|
182 In addition to listing short variants, list longer variants as well
|
|
|
183 (10's of bases) by concatenating nearby calls.
|
|
|
184
|
|
|
185 SUPPORTED FORMAT_VERSION
|
|
|
186 0.3 or later
|
|
|
187 </help>
|
|
|
188 </tool>
|