|
7
|
1 <tool id="cga_listtestvariants" name="listvariants(beta)-testvariants(beta)" version="1.0.1">
|
|
|
2 <!--
|
|
|
3 This tool creates a GUI for cgatools listvariants and testvariants from Complete Genomics, Inc.
|
|
|
4 to be run consecutively with the same input files.
|
|
|
5 written 5-29-2012 by bcrain@completegenomics.com
|
|
|
6 -->
|
|
|
7
|
|
|
8 <description></description> <!--adds description in toolbar-->
|
|
|
9
|
|
|
10 <requirements>
|
|
|
11 <requirement type="binary">cgatools</requirement>
|
|
|
12 </requirements>
|
|
|
13
|
|
|
14 <command> <!--run executable-->
|
|
|
15 cgatools listvariants
|
|
|
16 --beta
|
|
|
17 --reference ${crr.fields.path}
|
|
|
18 --output $output1
|
|
|
19 #if $include_list.listing == "yes" <!--only added when yes-->
|
|
|
20 --variant-listing $include_list.list
|
|
|
21 #end if
|
|
|
22 $longvar
|
|
|
23 --variants
|
|
|
24 #if $file_types.data_sources.data_source == "in"
|
|
|
25 #for $v in $file_types.data_sources.varfiles <!--get each var file-->
|
|
|
26 ${v.input}
|
|
|
27 #end for
|
|
|
28 #else
|
|
|
29 `cat $file_types.data_sources.varlist`
|
|
|
30 #end if
|
|
|
31 ;
|
|
|
32
|
|
|
33 cgatools testvariants
|
|
|
34 --beta
|
|
|
35 --reference ${crr.fields.path}
|
|
|
36 --output $output2
|
|
|
37 --input $output1
|
|
|
38 --variants
|
|
|
39 #if $file_types.data_sources.data_source == "in"
|
|
|
40 #for $v in $file_types.data_sources.varfiles <!--get each var/mastervar file-->
|
|
|
41 ${v.input}
|
|
|
42 #end for
|
|
|
43 #else
|
|
|
44 `cat $file_types.data_sources.varlist`
|
|
|
45 #end if
|
|
|
46 </command>
|
|
|
47
|
|
|
48 <outputs>
|
|
|
49 <data format="tabular" name="output1" label="listvariants output"/>
|
|
|
50 <data format="tabular" name="output2" label="testvariants output"/>
|
|
|
51 </outputs>
|
|
|
52
|
|
|
53 <inputs>
|
|
|
54 <!--form field to select crr file-->
|
|
|
55 <param name="crr" type="select" label="Genome build">
|
|
|
56 <options from_data_table="cg_crr_files" />
|
|
|
57 </param>
|
|
|
58
|
|
|
59 <!--form field to select long variants option-->
|
|
|
60 <param name="longvar" type="select" label="List long variants?">
|
|
|
61 <option value="" selected="true">no</option>
|
|
|
62 <option value="--list-long-variants">yes</option>
|
|
|
63 </param>
|
|
|
64
|
|
|
65 <!--form fields to include existing variant list-->
|
|
|
66 <conditional name="include_list">
|
|
|
67 <param name="listing" type="select" label="Include variant listing?">
|
|
|
68 <option value="no" selected="true">no</option>
|
|
|
69 <option value="yes">yes</option>
|
|
|
70 </param>
|
|
|
71 <when value="yes">
|
|
|
72 <param name="list" type="data" format="tabular" label="Variant listing">
|
|
|
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 </param>
|
|
|
78 </when>
|
|
|
79 </conditional>
|
|
|
80
|
|
|
81 <!--conditional to select input file type-->
|
|
|
82 <conditional name="file_types">
|
|
|
83 <param name="file_type" type="select" label="Select the input file type">
|
|
|
84 <option value="var" selected="true">var files</option>
|
|
|
85 <option value="mastervar">mastervar files</option>
|
|
|
86 </param>
|
|
|
87
|
|
|
88 <when value="var">
|
|
|
89 <!--conditional to select variant file input-->
|
|
|
90 <conditional name="data_sources">
|
|
|
91 <param name="data_source" type="select" label="Where are the input var 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_var" 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 variant files (/path/file)" size="200" help="file with list of var files (/path/varfile), var files can be compressed (gz, bz2)."/>
|
|
|
109 </when>
|
|
|
110 </conditional>
|
|
|
111 </when>
|
|
|
112
|
|
|
113 <when value="mastervar">
|
|
|
114 <!--conditional to select variant file input-->
|
|
|
115 <conditional name="data_sources">
|
|
|
116 <param name="data_source" type="select" label="Where are the input mastervar files?">
|
|
|
117 <option value="in" selected="true">imported into Galaxy</option>
|
|
|
118 <option value="out">located outside Galaxy (available only for local Galaxy instances)</option>
|
|
|
119 </param>
|
|
|
120 <when value="in">
|
|
|
121 <!--form field to select variant files-->
|
|
|
122 <repeat name="varfiles" title="Variant files">
|
|
|
123 <param name="input" type="data" format="cg_mastervar" label="Dataset">
|
|
|
124 <validator type="unspecified_build" />
|
|
|
125 <validator type="dataset_metadata_in_file" filename="cg_crr_files.loc"
|
|
|
126 metadata_name="dbkey" metadata_column="1"
|
|
|
127 message="cgatools is not currently available for this build."/>
|
|
|
128 </param>
|
|
|
129 </repeat>
|
|
|
130 </when>
|
|
|
131 <when value="out">
|
|
|
132 <!--form field to select crr file-->
|
|
|
133 <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)."/>
|
|
|
134 </when>
|
|
|
135 </conditional>
|
|
|
136 </when>
|
|
|
137 </conditional>
|
|
|
138 </inputs>
|
|
|
139
|
|
|
140 <help>
|
|
|
141
|
|
|
142 **What it does**
|
|
|
143
|
|
|
144 This tool uses the cgatools testvariants to test variant or mastervar files for the presence of variants.
|
|
|
145
|
|
|
146 cgatools: http://sourceforge.net/projects/cgatools/files/
|
|
|
147
|
|
|
148 -----
|
|
|
149
|
|
|
150 **cgatools Manual**::
|
|
|
151
|
|
|
152 COMMAND NAME
|
|
|
153 listvariants - Lists the variants present in a variant file.
|
|
|
154
|
|
|
155 DESCRIPTION
|
|
|
156 Lists all called variants present in the specified variant files, in a
|
|
|
157 format suitable for processing by the testvariants command. The output is a
|
|
|
158 tab-delimited file consisting of the following columns:
|
|
|
159
|
|
|
160 variantId Sequential id assigned to each variant.
|
|
|
161 chromosome The chromosome of the variant.
|
|
|
162 begin 0-based reference offset of the beginning of the variant.
|
|
|
163 end 0-based reference offset of the end of the variant.
|
|
|
164 varType The varType as extracted from the variant file.
|
|
|
165 reference The reference sequence.
|
|
|
166 alleleSeq The variant allele sequence as extracted from the variant
|
|
|
167 file.
|
|
|
168 xRef The xRef as extrated from the variant file.
|
|
|
169
|
|
|
170 OPTIONS
|
|
|
171 -h [ --help ]
|
|
|
172 Print this help message.
|
|
|
173
|
|
|
174 --beta
|
|
|
175 This is a beta command. To run this command, you must pass the --beta
|
|
|
176 flag.
|
|
|
177
|
|
|
178 --reference arg
|
|
|
179 The reference crr file.
|
|
|
180
|
|
|
181 --output arg (=STDOUT)
|
|
|
182 The output file (may be omitted for stdout).
|
|
|
183
|
|
|
184 --variants arg
|
|
|
185 The input variant files (may be positional args).
|
|
|
186
|
|
|
187 --variant-listing arg
|
|
|
188 The output of another listvariants run, to be merged in to produce the
|
|
|
189 output of this run.
|
|
|
190
|
|
|
191 --list-long-variants
|
|
|
192 In addition to listing short variants, list longer variants as well
|
|
|
193 (10's of bases) by concatenating nearby calls.
|
|
|
194
|
|
|
195 SUPPORTED FORMAT_VERSION
|
|
|
196 0.3 or later
|
|
|
197
|
|
|
198
|
|
|
199
|
|
|
200 COMMAND NAME
|
|
|
201 testvariants - Tests variant files for presence of variants.
|
|
|
202
|
|
|
203 DESCRIPTION
|
|
|
204 Tests variant files for presence of variants. The output is a tab-delimited
|
|
|
205 file consisting of the columns of the input variants file, plus a column
|
|
|
206 for each assembly results file that contains a character code for each
|
|
|
207 allele. The character codes have meaning as follows:
|
|
|
208
|
|
|
209 0 This allele of this genome is consistent with the reference at this
|
|
|
210 locus but inconsistent with the variant.
|
|
|
211 1 This allele of this genome has the input variant at this locus.
|
|
|
212 N This allele of this genome has no-calls but is consistent with the
|
|
|
213 input variant.
|
|
|
214
|
|
|
215 OPTIONS
|
|
|
216 -h [ --help ]
|
|
|
217 Print this help message.
|
|
|
218
|
|
|
219 --beta
|
|
|
220 This is a beta command. To run this command, you must pass the --beta
|
|
|
221 flag.
|
|
|
222
|
|
|
223 --reference arg
|
|
|
224 The reference crr file.
|
|
|
225
|
|
|
226 --input arg (=STDIN)
|
|
|
227 The input variants to test for.
|
|
|
228
|
|
|
229 --output arg (=STDOUT)
|
|
|
230 The output file (may be omitted for stdout).
|
|
|
231
|
|
|
232 --variants arg
|
|
|
233 The input variant files (may be passed in as arguments at the end of
|
|
|
234 the command).
|
|
|
235
|
|
|
236 SUPPORTED FORMAT_VERSION
|
|
|
237 0.3 or later
|
|
|
238 </help>
|
|
|
239 </tool>
|