annotate cgatools/tools/cgatools_1.5/listvariants.xml @ 0:182426b32995 draft default tip

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