comparison structure-923cc9e6aa30/Structure.xml @ 0:2c0b270dae70 draft default tip

Uploaded
author ylebrascnrs
date Thu, 14 Sep 2017 08:33:05 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:2c0b270dae70
1 <tool id="Structure" name="Structure" version="1.0.1">
2 <description>model-based clustering method for inferring population structure using genotype data</description>
3
4 <command interpreter="python">
5 Structure.py
6 --input $input
7 --param $parameters
8 --extraparam $extraparameters
9 #if str( $options_pops.options_pops_selector ) == "yes":
10 --K $options_pops.k_value
11 #if str( $options_pops.options_popsvar.options_popsvar_selector ) == "yes":
12 #if str( $options_pops.options_popsvar.options_popsnumber.options_popsnumber_selector ) == "2":
13 --k2 $options_pops.options_popsvar.options_popsnumber.k2
14 #end if
15 #if str( $options_pops.options_popsvar.options_popsnumber.options_popsnumber_selector ) == "3":
16 --k2 $options_pops.options_popsvar.options_popsnumber.k2
17 --k3 $options_pops.options_popsvar.options_popsnumber.k3
18 #end if
19 #if str( $options_pops.options_popsvar.options_popsnumber.options_popsnumber_selector ) == "4":
20 --k2 $options_pops.options_popsvar.options_popsnumber.k2
21 --k3 $options_pops.options_popsvar.options_popsnumber.k3
22 --k4 $options_pops.options_popsvar.options_popsnumber.k4
23 #end if
24 #if str( $options_pops.options_popsvar.options_popsnumber.options_popsnumber_selector ) == "5":
25 --k2 $options_pops.options_popsvar.options_popsnumber.k2
26 --k3 $options_pops.options_popsvar.options_popsnumber.k3
27 --k4 $options_pops.options_popsvar.options_popsnumber.k4
28 --k5 $options_pops.options_popsvar.options_popsnumber.k5
29 #end if
30 #if str( $options_pops.options_popsvar.options_popsnumber.options_popsnumber_selector ) == "6":
31 --k2 $options_pops.options_popsvar.options_popsnumber.k2
32 --k3 $options_pops.options_popsvar.options_popsnumber.k3
33 --k4 $options_pops.options_popsvar.options_popsnumber.k4
34 --k5 $options_pops.options_popsvar.options_popsnumber.k5
35 --k6 $options_pops.options_popsvar.options_popsnumber.k6
36 #end if
37 #if str( $options_pops.options_popsvar.options_popsnumber.options_popsnumber_selector ) == "7":
38 --k2 $options_pops.options_popsvar.options_popsnumber.k2
39 --k3 $options_pops.options_popsvar.options_popsnumber.k3
40 --k4 $options_pops.options_popsvar.options_popsnumber.k4
41 --k5 $options_pops.options_popsvar.options_popsnumber.k5
42 --k6 $options_pops.options_popsvar.options_popsnumber.k6
43 --k7 $options_pops.options_popsvar.options_popsnumber.k7
44 #end if
45 #if str( $options_pops.options_popsvar.options_popsnumber.options_popsnumber_selector ) == "8":
46 --k2 $options_pops.options_popsvar.options_popsnumber.k2
47 --k3 $options_pops.options_popsvar.options_popsnumber.k3
48 --k4 $options_pops.options_popsvar.options_popsnumber.k4
49 --k5 $options_pops.options_popsvar.options_popsnumber.k5
50 --k6 $options_pops.options_popsvar.options_popsnumber.k6
51 --k7 $options_pops.options_popsvar.options_popsnumber.k7
52 --k8 $options_pops.options_popsvar.options_popsnumber.k8
53 #end if
54 #if str( $options_pops.options_popsvar.options_popsnumber.options_popsnumber_selector ) == "9":
55 --k2 $options_pops.options_popsvar.options_popsnumber.k2
56 --k3 $options_pops.options_popsvar.options_popsnumber.k3
57 --k4 $options_pops.options_popsvar.options_popsnumber.k4
58 --k5 $options_pops.options_popsvar.options_popsnumber.k5
59 --k6 $options_pops.options_popsvar.options_popsnumber.k6
60 --k7 $options_pops.options_popsvar.options_popsnumber.k7
61 --k8 $options_pops.options_popsvar.options_popsnumber.k8
62 --k9 $options_pops.options_popsvar.options_popsnumber.k9
63 #end if
64 #if str( $options_pops.options_popsvar.options_popsnumber.options_popsnumber_selector ) == "10":
65 --k2 $options_pops.options_popsvar.options_popsnumber.k2
66 --k3 $options_pops.options_popsvar.options_popsnumber.k3
67 --k4 $options_pops.options_popsvar.options_popsnumber.k4
68 --k5 $options_pops.options_popsvar.options_popsnumber.k5
69 --k6 $options_pops.options_popsvar.options_popsnumber.k6
70 --k7 $options_pops.options_popsvar.options_popsnumber.k7
71 --k8 $options_pops.options_popsvar.options_popsnumber.k8
72 --k9 $options_pops.options_popsvar.options_popsnumber.k9
73 --k10 $options_pops.options_popsvar.options_popsnumber.k10
74 #end if
75 #end if
76 #end if
77 --t $sevruns
78 #if str( $options_ind.options_ind_selector ) == "yes":
79 --N $options_ind.N_value
80 #end if
81 #if str( $options_loci.options_loci_selector ) == "yes":
82 --L $options_loci.L_value
83 #end if
84 #if str( $options_seed.options_seed_selector ) == "yes":
85 --D $options_seed.D_value
86 #end if
87 --logfile $output
88 --id $output.id
89 --workdir $__new_file_path__
90 --compress_output $output_compress
91 --total_output $total_output
92 </command>
93
94 <inputs>
95
96 <param name="input" type="data" format="txt" label="Read from file" help="input data file for structure" />
97 <param name="parameters" type="data" format="txt" label="Read from file" help="input mainparameters file for structure" />
98 <param name="extraparameters" type="data" format="txt" label="Read from file" help="input extraparameters file for structure" />
99 <conditional name="options_pops">
100 <param name="options_pops_selector" type="select" label="Did you want modify the K (number of populations) value?">
101 <option value="yes">Yes</option>
102 <option value="no" selected="true">No</option>
103 </param>
104 <when value="yes">
105 <param name="k_value" type="integer" value="2" label="Give the new K value"/>
106 <conditional name="options_popsvar">
107 <param name="options_popsvar_selector" type="select" label="Did you want specify others K values?">
108 <option value="yes">Yes, more that one</option>
109 <option value="no" selected="true">No, only one</option>
110 </param>
111 <when value="yes">
112 <conditional name="options_popsnumber">
113 <param name="options_popsnumber_selector" type="select" label="How many K values?">
114 <option value="2" selected="true">2</option>
115 <option value="3">3</option>
116 <option value="4">4</option>
117 <option value="5">5</option>
118 <option value="6">6</option>
119 <option value="7">7</option>
120 <option value="8">8</option>
121 <option value="9">9</option>
122 <option value="10">10</option>
123 </param>
124 <when value="2">
125 <param name="k2" type="integer" value="2" label="Give the second K value"/>
126 </when>
127 <when value="3">
128 <param name="k2" type="integer" value="2" label="Give the second K value"/>
129 <param name="k3" type="integer" value="3" label="Give the third K value"/>
130 </when>
131 <when value="4">
132 <param name="k2" type="integer" value="2" label="Give the second K value"/>
133 <param name="k3" type="integer" value="3" label="Give the third K value"/>
134 <param name="k4" type="integer" value="4" label="Give the fourth K value"/>
135 </when>
136 <when value="5">
137 <param name="k2" type="integer" value="2" label="Give the second K value"/>
138 <param name="k3" type="integer" value="3" label="Give the third K value"/>
139 <param name="k4" type="integer" value="4" label="Give the fourth K value"/>
140 <param name="k5" type="integer" value="5" label="Give the fifth K value"/>
141 </when>
142 <when value="6">
143 <param name="k2" type="integer" value="2" label="Give the second K value"/>
144 <param name="k3" type="integer" value="3" label="Give the third K value"/>
145 <param name="k4" type="integer" value="4" label="Give the fourth K value"/>
146 <param name="k5" type="integer" value="5" label="Give the fifth K value"/>
147 <param name="k6" type="integer" value="6" label="Give the sixth K value"/>
148 </when>
149 <when value="7">
150 <param name="k2" type="integer" value="2" label="Give the second K value"/>
151 <param name="k3" type="integer" value="3" label="Give the third K value"/>
152 <param name="k4" type="integer" value="4" label="Give the fourth K value"/>
153 <param name="k5" type="integer" value="5" label="Give the fifth K value"/>
154 <param name="k6" type="integer" value="6" label="Give the sixth K value"/>
155 <param name="k7" type="integer" value="7" label="Give the seventh K value"/>
156 </when>
157 <when value="8">
158 <param name="k2" type="integer" value="2" label="Give the second K value"/>
159 <param name="k3" type="integer" value="3" label="Give the third K value"/>
160 <param name="k4" type="integer" value="4" label="Give the fourth K value"/>
161 <param name="k5" type="integer" value="5" label="Give the fifth K value"/>
162 <param name="k6" type="integer" value="6" label="Give the sixth K value"/>
163 <param name="k7" type="integer" value="7" label="Give the seventh K value"/>
164 <param name="k8" type="integer" value="8" label="Give the eighth K value"/>
165 </when>
166 <when value="9">
167 <param name="k2" type="integer" value="2" label="Give the second K value"/>
168 <param name="k3" type="integer" value="3" label="Give the third K value"/>
169 <param name="k4" type="integer" value="4" label="Give the fourth K value"/>
170 <param name="k5" type="integer" value="5" label="Give the fifth K value"/>
171 <param name="k6" type="integer" value="6" label="Give the sixth K value"/>
172 <param name="k7" type="integer" value="7" label="Give the seventh K value"/>
173 <param name="k8" type="integer" value="8" label="Give the eighth K value"/>
174 <param name="k9" type="integer" value="9" label="Give the ninth K value"/>
175 </when>
176 <when value="10">
177 <param name="k2" type="integer" value="2" label="Give the second K value"/>
178 <param name="k3" type="integer" value="3" label="Give the third K value"/>
179 <param name="k4" type="integer" value="4" label="Give the fourth K value"/>
180 <param name="k5" type="integer" value="5" label="Give the fifth K value"/>
181 <param name="k6" type="integer" value="6" label="Give the sixth K value"/>
182 <param name="k7" type="integer" value="7" label="Give the seventh K value"/>
183 <param name="k8" type="integer" value="8" label="Give the eighth K value"/>
184 <param name="k9" type="integer" value="9" label="Give the ninth K value"/>
185 <param name="k10" type="integer" value="10" label="Give the tenth K value"/>
186 </when>
187 </conditional>
188 </when>
189 <when value="no">
190 </when>
191 </conditional>
192 </when>
193 <when value="no">
194 </when>
195 </conditional>
196 <param name="sevruns" type="boolean" checked="false" default="false" label="Did you want to execute 3 Structure runs to give results to Structure Harvester?" />
197 <conditional name="options_ind">
198 <param name="options_ind_selector" type="select" label="Did you want modify the N (Number of individulas) value?">
199 <option value="yes">Yes</option>
200 <option value="no" selected="true">No</option>
201 </param>
202 <when value="yes">
203 <param name="N_value" type="integer" value="100" label="Give the new N value"/>
204 </when>
205 <when value="no">
206 </when>
207 </conditional>
208 <conditional name="options_loci">
209 <param name="options_loci_selector" type="select" label="Did you want modify the L (Number of loci) value?">
210 <option value="yes">Yes</option>
211 <option value="no" selected="true">No</option>
212 </param>
213 <when value="yes">
214 <param name="L_value" type="integer" value="50" label="Give the new N value"/>
215 </when>
216 <when value="no">
217 </when>
218 </conditional>
219 <conditional name="options_seed">
220 <param name="options_seed_selector" type="select" label="Did you want modify the D (Seed size) value?">
221 <option value="yes">Yes</option>
222 <option value="no" selected="true">No</option>
223 </param>
224 <when value="yes">
225 <param name="D_value" type="integer" value="50" label="Give the new N value"/>
226 </when>
227 <when value="no">
228 </when>
229 </conditional>
230 <param name="output_compress" type="select" label="Output type" help="please see below for details">
231 <option value="default" selected="true">No compression</option>
232 <option value="total">Compressed all outputs</option>
233 </param>
234 </inputs>
235 <outputs>
236
237 <data format="txt" name="output" label="${tool.name} : results" />
238 <data format="zip" name="total_output" label="total_output.zip with ${tool.name} on ${on_string}" >
239 <filter>output_compress == "total"</filter>
240 </data>
241
242 </outputs>
243 <help>
244
245 .. class:: infomark
246
247 **What it does**
248
249 The program structure implements a model-based clustering method for inferring population structure using genotype data consisting of unlinked markers. The method was introduced in a paper by Pritchard, Stephens and Donnelly (2000) and extended in sequels by Falush, Stephens and Pritchard (2003, 2007). Applications of our method include demonstrating the presence of population structure, identifying distinct genetic populations, assigning individuals to populations, and identifying migrants and admixed individuals.
250
251
252 Input file need to be in structure data format.
253
254
255 The output files resume standard output (log) and results.
256
257 --------
258
259
260 **References:**
261
262 Pritchard, J. K., Stephens, M., and Donnelly, P. 2000 . Inference of population structure using multilocus genotype data. Genetics, 155 945 959.
263
264 Falush, D., Stephens, M., and Pritchard, J. K. 2003 . Inference of population structure: Extensions to linked loci and correlated allele frequencies. Genetics, 164 1567 1587.
265
266 Falush, D., Stephens, M., and Pritchard, J. K. 2007 . Inference of population structure using multilocus genotype data: dominant markers and null alleles. Molecular Ecology Notes, 7 574 578.
267
268 --------
269
270 **Project links:**
271
272 `Structure &lt;http://pritch.bsd.uchicago.edu/structure.html&gt;`_ .
273
274 --------
275
276 **Integrated by:**
277
278 Yvan Le Bras
279
280 </help>
281 </tool>
282