|
7
|
1 <tool id="cga_testvariants" name="testvariants(beta)" version="0.0.1">
|
|
|
2 <!--
|
|
|
3 This tool creates a GUI for cgatools testvariants from Complete Genomics, Inc.
|
|
|
4 written 5-29-2012 by bcrain@completegenomics.com
|
|
|
5 -->
|
|
|
6
|
|
|
7 <description>test for the presence of variants</description> <!--adds description in toolbar-->
|
|
|
8
|
|
|
9 <requirements>
|
|
|
10 <requirement type="binary">cgatools</requirement>
|
|
|
11 </requirements>
|
|
|
12
|
|
|
13 <command> <!--run executable-->
|
|
|
14 cgatools testvariants
|
|
|
15 --beta
|
|
|
16 --reference ${crr.fields.path}
|
|
|
17 --output $output
|
|
|
18 --input $listing
|
|
|
19 --variants
|
|
|
20 #if $file_types.data_sources.data_source == "in"
|
|
|
21 #for $v in $file_types.data_sources.varfiles <!--get each var/mastervar file-->
|
|
|
22 ${v.input}
|
|
|
23 #end for
|
|
|
24 #else
|
|
|
25 `cat $file_types.data_sources.varlist`
|
|
|
26 #end if
|
|
|
27 </command>
|
|
|
28
|
|
|
29 <outputs>
|
|
|
30 <data format="tabular" name="output" />
|
|
|
31 </outputs>
|
|
|
32
|
|
|
33 <inputs>
|
|
|
34 <!--form field to select crr file-->
|
|
|
35 <param name="crr" type="select" label="Genome build">
|
|
|
36 <options from_data_table="cg_crr_files" />
|
|
|
37 </param>
|
|
|
38
|
|
|
39 <!--form fields to select variant list-->
|
|
|
40 <param name="listing" type="data" format="tabular" label="Select variant list">
|
|
|
41 <validator type="unspecified_build" />
|
|
|
42 <validator type="dataset_metadata_in_file" filename="cg_crr_files.loc"
|
|
|
43 metadata_name="dbkey" metadata_column="1"
|
|
|
44 message="cgatools is not currently available for this build."/>
|
|
|
45 </param>
|
|
|
46
|
|
|
47 <!--conditional to select input file type-->
|
|
|
48 <conditional name="file_types">
|
|
|
49 <param name="file_type" type="select" label="Select the input file type">
|
|
|
50 <option value="var" selected="true">var files</option>
|
|
|
51 <option value="mastervar">mastervar files</option>
|
|
|
52 </param>
|
|
|
53
|
|
|
54 <when value="var">
|
|
|
55 <!--conditional to select variant file input-->
|
|
|
56 <conditional name="data_sources">
|
|
|
57 <param name="data_source" type="select" label="Where are the input var files?">
|
|
|
58 <option value="in" selected="true">imported into Galaxy</option>
|
|
|
59 <option value="out">located outside Galaxy (available only for local Galaxy instances)</option>
|
|
|
60 </param>
|
|
|
61 <when value="in">
|
|
|
62 <!--form field to select variant files-->
|
|
|
63 <repeat name="varfiles" title="Variant files">
|
|
|
64 <param name="input" type="data" format="cg_var" label="Dataset">
|
|
|
65 <validator type="unspecified_build" />
|
|
|
66 <validator type="dataset_metadata_in_file" filename="cg_crr_files.loc"
|
|
|
67 metadata_name="dbkey" metadata_column="1"
|
|
|
68 message="cgatools is not currently available for this build."/>
|
|
|
69 </param>
|
|
|
70 </repeat>
|
|
|
71 </when>
|
|
|
72 <when value="out">
|
|
|
73 <!--form field to select crr file-->
|
|
|
74 <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)."/>
|
|
|
75 </when>
|
|
|
76 </conditional>
|
|
|
77 </when>
|
|
|
78
|
|
|
79 <when value="mastervar">
|
|
|
80 <!--conditional to select variant file input-->
|
|
|
81 <conditional name="data_sources">
|
|
|
82 <param name="data_source" type="select" label="Where are the input mastervar files?">
|
|
|
83 <option value="in" selected="true">imported into Galaxy</option>
|
|
|
84 <option value="out">located outside Galaxy (available only for local Galaxy instances)</option>
|
|
|
85 </param>
|
|
|
86 <when value="in">
|
|
|
87 <!--form field to select variant files-->
|
|
|
88 <repeat name="varfiles" title="Variant files">
|
|
|
89 <param name="input" type="data" format="cg_mastervar" label="Dataset">
|
|
|
90 <validator type="unspecified_build" />
|
|
|
91 <validator type="dataset_metadata_in_file" filename="cg_crr_files.loc"
|
|
|
92 metadata_name="dbkey" metadata_column="1"
|
|
|
93 message="cgatools is not currently available for this build."/>
|
|
|
94 </param>
|
|
|
95 </repeat>
|
|
|
96 </when>
|
|
|
97 <when value="out">
|
|
|
98 <!--form field to select crr file-->
|
|
|
99 <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)."/>
|
|
|
100 </when>
|
|
|
101 </conditional>
|
|
|
102 </when>
|
|
|
103 </conditional>
|
|
|
104 </inputs>
|
|
|
105
|
|
|
106 <help>
|
|
|
107
|
|
|
108 **What it does**
|
|
|
109
|
|
|
110 This tool uses the cgatools testvariants to test variant or mastervar files for the presence of variants.
|
|
|
111
|
|
|
112 cgatools: http://sourceforge.net/projects/cgatools/files/
|
|
|
113
|
|
|
114 -----
|
|
|
115
|
|
|
116 **cgatools Manual**::
|
|
|
117
|
|
|
118 COMMAND NAME
|
|
|
119 testvariants - Tests variant files for presence of variants.
|
|
|
120
|
|
|
121 DESCRIPTION
|
|
|
122 Tests variant files for presence of variants. The output is a tab-delimited
|
|
|
123 file consisting of the columns of the input variants file, plus a column
|
|
|
124 for each assembly results file that contains a character code for each
|
|
|
125 allele. The character codes have meaning as follows:
|
|
|
126
|
|
|
127 0 This allele of this genome is consistent with the reference at this
|
|
|
128 locus but inconsistent with the variant.
|
|
|
129 1 This allele of this genome has the input variant at this locus.
|
|
|
130 N This allele of this genome has no-calls but is consistent with the
|
|
|
131 input variant.
|
|
|
132
|
|
|
133 OPTIONS
|
|
|
134 -h [ --help ]
|
|
|
135 Print this help message.
|
|
|
136
|
|
|
137 --beta
|
|
|
138 This is a beta command. To run this command, you must pass the --beta
|
|
|
139 flag.
|
|
|
140
|
|
|
141 --reference arg
|
|
|
142 The reference crr file.
|
|
|
143
|
|
|
144 --input arg (=STDIN)
|
|
|
145 The input variants to test for.
|
|
|
146
|
|
|
147 --output arg (=STDOUT)
|
|
|
148 The output file (may be omitted for stdout).
|
|
|
149
|
|
|
150 --variants arg
|
|
|
151 The input variant files (may be passed in as arguments at the end of
|
|
|
152 the command).
|
|
|
153
|
|
|
154 SUPPORTED FORMAT_VERSION
|
|
|
155 0.3 or later
|
|
|
156 </help>
|
|
|
157 </tool>
|