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