Mercurial > repos > bcrain-completegenomics > testing1
comparison cgatools_suite/tools/cgatools/listvariants.xml @ 7:96829b1b73ea draft
Uploaded
author | bcrain-completegenomics |
---|---|
date | Wed, 06 Jun 2012 16:58:26 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:e4eff539a999 | 7:96829b1b73ea |
---|---|
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 <help> | |
120 | |
121 **What it does** | |
122 | |
123 This tool uses the cgatools listvariants to list all called variants present in the var or mastervar files. | |
124 | |
125 cgatools: http://sourceforge.net/projects/cgatools/files/ | |
126 | |
127 ----- | |
128 | |
129 **cgatools Manual**:: | |
130 | |
131 COMMAND NAME | |
132 listvariants - Lists the variants present in a variant file. | |
133 | |
134 DESCRIPTION | |
135 Lists all called variants present in the specified variant files, in a | |
136 format suitable for processing by the testvariants command. The output is a | |
137 tab-delimited file consisting of the following columns: | |
138 | |
139 variantId Sequential id assigned to each variant. | |
140 chromosome The chromosome of the variant. | |
141 begin 0-based reference offset of the beginning of the variant. | |
142 end 0-based reference offset of the end of the variant. | |
143 varType The varType as extracted from the variant file. | |
144 reference The reference sequence. | |
145 alleleSeq The variant allele sequence as extracted from the variant | |
146 file. | |
147 xRef The xRef as extrated from the variant file. | |
148 | |
149 OPTIONS | |
150 -h [ --help ] | |
151 Print this help message. | |
152 | |
153 --beta | |
154 This is a beta command. To run this command, you must pass the --beta | |
155 flag. | |
156 | |
157 --reference arg | |
158 The reference crr file. | |
159 | |
160 --output arg (=STDOUT) | |
161 The output file (may be omitted for stdout). | |
162 | |
163 --variants arg | |
164 The input variant files (may be positional args). | |
165 | |
166 --variant-listing arg | |
167 The output of another listvariants run, to be merged in to produce the | |
168 output of this run. | |
169 | |
170 --list-long-variants | |
171 In addition to listing short variants, list longer variants as well | |
172 (10's of bases) by concatenating nearby calls. | |
173 | |
174 SUPPORTED FORMAT_VERSION | |
175 0.3 or later | |
176 </help> | |
177 </tool> |