Mercurial > repos > iuc > allegro
comparison allegro.xml @ 1:ef4a081bc97b draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/allegro/ commit bb83e01055cde8c766c630bec27afd3402ad6c88
author | iuc |
---|---|
date | Fri, 21 Feb 2025 21:22:41 +0000 |
parents | 8c29e3621475 |
children |
comparison
equal
deleted
inserted
replaced
0:8c29e3621475 | 1:ef4a081bc97b |
---|---|
1 <tool id="allegro" name="Allegro" version="@VER@.0" > | 1 <tool id="allegro" name="Allegro" version="@TOOL_VERSION@.1" profile="21.05"> |
2 <description>Linkage and Haplotype analysis</description> | 2 <description>Linkage and Haplotype analysis</description> |
3 <macros> | 3 <macros> |
4 <token name="@VER@">2</token> | 4 <token name="@TOOL_VERSION@">2</token> |
5 <xml name="macro_inputs" > | 5 <xml name="macro_inputs" > |
6 <param name="inp_ped" value="pedin.21" /> | 6 <param name="inp_ped" value="pedin.21" /> |
7 <param name="inp_dat" value="datain.21" /> | 7 <param name="inp_dat" value="datain.21" /> |
8 <param name="inp_map" value="map.21" /> | 8 <param name="inp_map" value="map.21" /> |
9 </xml> | 9 </xml> |
10 </macros> | 10 </macros> |
11 <xrefs> | |
12 <xref type="bio.tools">allegro</xref> | |
13 </xrefs> | |
11 <requirements> | 14 <requirements> |
12 <requirement type="package" version="@VER@">allegro</requirement> | 15 <requirement type="package" version="@TOOL_VERSION@">allegro</requirement> |
13 </requirements> | 16 </requirements> |
14 <version_command><![CDATA[ | 17 <version_command><![CDATA[ |
15 allegro 2>&1 | head -1 | awk -F' ' '{print $2}' | 18 allegro 2>&1 | head -1 | awk -F' ' '{print $2}' |
16 ]]> | 19 ]]> |
17 </version_command> | 20 </version_command> |
30 #if $cond_haplotypes.opt_crossover | 33 #if $cond_haplotypes.opt_crossover |
31 CROSSOVERRATE combined.out ${out_combined_cross} | 34 CROSSOVERRATE combined.out ${out_combined_cross} |
32 #end if | 35 #end if |
33 #elif $cond_haplotypes.opt_haplotypes.value == 'no' | 36 #elif $cond_haplotypes.opt_haplotypes.value == 'no' |
34 #if $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_type.value == 'defaults' | 37 #if $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_type.value == 'defaults' |
35 MODEL $cond_haplotypes.section_linkage.extra_linkage_mptspt.value par ${opt_xlinked} het param.mpt ${out_fparam} | 38 MODEL $cond_haplotypes.section_linkage.extra_linkage_mptspt.value par $opt_xlinked het param.mpt ${out_fparam} |
36 | 39 |
37 #elif $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_type.value == 'allele_sharing' | 40 #elif $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_type.value == 'allele_sharing' |
38 MODEL $cond_haplotypes.section_linkage.extra_linkage_mptspt.value $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_linexp.value $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_scoring.value $cond_haplotypes.section_linkage.cond_linktype.extra_weighting.value param.mpt ${out_linexp} | 41 MODEL $cond_haplotypes.section_linkage.extra_linkage_mptspt.value $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_linexp.value $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_scoring.value $cond_haplotypes.section_linkage.cond_linktype.extra_weighting.value param.mpt ${out_linexp} |
39 | 42 |
40 #elif $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_type.value == 'classical' | 43 #elif $cond_haplotypes.section_linkage.cond_linktype.extra_linkage_type.value == 'classical' |
50 #elif $cond_haplotypes.section_linkage.cond_steps.extra_steps_type.value == 'MAXSTEPLENGTH' | 53 #elif $cond_haplotypes.section_linkage.cond_steps.extra_steps_type.value == 'MAXSTEPLENGTH' |
51 MAXSTEPLENGTH $cond_haplotypes.section_linkage.cond_steps.extra_maxstep | 54 MAXSTEPLENGTH $cond_haplotypes.section_linkage.cond_steps.extra_maxstep |
52 #end if | 55 #end if |
53 #end if | 56 #end if |
54 | 57 |
55 #if $opt_xlinked.value == 'X' | 58 #if $opt_sexspecific |
56 SEXSPECIFIC on | 59 SEXSPECIFIC on |
57 #end if | 60 #end if |
58 | 61 |
59 ENTROPY ${opt_entropy} | 62 ENTROPY ${opt_entropy} |
60 NPLEXACTP ${opt_nplexactp} | 63 NPLEXACTP ${opt_nplexactp} |
63 PAIRWISEIBD $cond_haplotypes.section_linkage.extra_linkage_mptspt.value $cond_pairwise.extra_pairwise_type.value | 66 PAIRWISEIBD $cond_haplotypes.section_linkage.extra_linkage_mptspt.value $cond_pairwise.extra_pairwise_type.value |
64 #end if | 67 #end if |
65 | 68 |
66 | 69 |
67 #if $cond_sim.opt_sim.value == 'yes' | 70 #if $cond_sim.opt_sim.value == 'yes' |
68 SIMULATE $cond_sim.extra_sim_dloc $cond_sim.extra_sim_npre $cond_sim.extra_sim_rep $cond_sim.extra_sim_err $cond_sim.extra_sim_yield $cond_sim.extra_sim_het | 71 SIMULATE #slurp |
72 #if $cond_sim.extra_sim_dloc != "" | |
73 dloc:$cond_sim.extra_sim_dloc #slurp | |
74 #end if | |
75 npre:$cond_sim.extra_sim_npre rep:$cond_sim.extra_sim_rep err:$cond_sim.extra_sim_err yield:$cond_sim.extra_sim_yield het:$cond_sim.extra_sim_het | |
69 #end if | 76 #end if |
70 | 77 |
71 MAXMEMORY 102400 | 78 MAXMEMORY 102400 |
72 UNIT $opt_unit | 79 UNIT $opt_unit |
73 | 80 |
138 <when value="yes" > | 145 <when value="yes" > |
139 <param name="extra_linkage_par_freq" type="float" value="0" min="0" max="1" label="Frequency" /> | 146 <param name="extra_linkage_par_freq" type="float" value="0" min="0" max="1" label="Frequency" /> |
140 <param name="extra_linkage_par_pen" type="text" value="p0/p1/p2" label="Penetrance" /> | 147 <param name="extra_linkage_par_pen" type="text" value="p0/p1/p2" label="Penetrance" /> |
141 </when> | 148 </when> |
142 </conditional> | 149 </conditional> |
143 <param name="extra_linkage_par_het" type="float" value="" label="HET Frequency (leave blank for dynamic)" /> | 150 <param name="extra_linkage_par_het" type="float" value="" optional="true" label="HET Frequency (leave blank for dynamic)" /> |
144 </when> | 151 </when> |
145 </conditional> | 152 </conditional> |
146 | 153 |
147 <conditional name="cond_steps" > | 154 <conditional name="cond_steps" > |
148 <param name="extra_steps_type" type="select" label="Step Type" > | 155 <param name="extra_steps_type" type="select" label="Step Type" > |
194 <option value="yes" >Yes</option> | 201 <option value="yes" >Yes</option> |
195 <option value="no" selected="true" >No</option> | 202 <option value="no" selected="true" >No</option> |
196 </param> | 203 </param> |
197 <when value="no" /> | 204 <when value="no" /> |
198 <when value="yes" > | 205 <when value="yes" > |
199 <param name="extra_sim_dloc" type="float" value="" min="0" label="Disease Locus (cM). Leave blank for unlinked disease locus." /> | 206 <param name="extra_sim_dloc" type="float" value="" optional="true" min="0" label="Disease Locus (cM). Leave blank for unlinked disease locus." /> |
200 <param name="extra_sim_npre" type="integer" value="1" label="Number of prefiles to generate" /> | 207 <param name="extra_sim_npre" type="integer" value="1" label="Number of prefiles to generate" /> |
201 <param name="extra_sim_rep" type="integer" value="1" label="How many times to repeat family pattern" /> | 208 <param name="extra_sim_rep" type="integer" value="1" label="How many times to repeat family pattern" /> |
202 <param name="extra_sim_err" type="float" value="0" min="0" label="Error Rate" /> | 209 <param name="extra_sim_err" type="float" value="0" min="0" label="Error Rate" /> |
203 <param name="extra_sim_yield" type="float" value="1" label="Genotype Yield" /> | 210 <param name="extra_sim_yield" type="float" value="1" label="Genotype Yield" /> |
204 <param name="extra_sim_het" type="float" value="0" label="HET probability" /> | 211 <param name="extra_sim_het" type="float" value="0" label="HET probability" /> |
207 <param name="opt_sexspecific" type="boolean" truevalue="on" falsevalue="off" value="false" label="Use Sex-Specific Penetrances (specified in data file)" help="Note that you will need to include sex-specific penetrances in your data input file for this to work." /> | 214 <param name="opt_sexspecific" type="boolean" truevalue="on" falsevalue="off" value="false" label="Use Sex-Specific Penetrances (specified in data file)" help="Note that you will need to include sex-specific penetrances in your data input file for this to work." /> |
208 <param name="opt_unit" type="boolean" truevalue="centimorgan" falsevalue="recombination" value="false" label="Datafile uses centimorgan distances instead of recombination frequencies" /> | 215 <param name="opt_unit" type="boolean" truevalue="centimorgan" falsevalue="recombination" value="false" label="Datafile uses centimorgan distances instead of recombination frequencies" /> |
209 </inputs> | 216 </inputs> |
210 | 217 |
211 <outputs> | 218 <outputs> |
212 <data name="out_ihaplo" format="allegro_haplo" label="${tool.name} on ${on_string}: Haplotypes" /> | 219 <data name="out_ihaplo" format="allegro_ihaplo" label="${tool.name} on ${on_string}: Haplotypes" /> |
213 <data name="out_fparam" format="allegro_linkage" label="${tool.name} on ${on_string}: Linkage" /> | 220 <data name="out_fparam" format="allegro_fparam" label="${tool.name} on ${on_string}: Linkage" /> |
214 <data name="out_founder" format="allegro_descent" label="${tool.name} on ${on_string}: Descent" /> | 221 <data name="out_founder" format="allegro_descent" label="${tool.name} on ${on_string}: Descent" /> |
215 <data name="out_linexp" format="txt" label="${tool.name} on ${on_string}: Linear Expression" /> | 222 <data name="out_linexp" format="txt" label="${tool.name} on ${on_string}: Linear Expression" /> |
216 <data name="out_combined_cross" format="txt" label="${tool.name} on ${on_string}: Combined Crossovers" /> | 223 <data name="out_combined_cross" format="txt" label="${tool.name} on ${on_string}: Combined Crossovers" /> |
217 </outputs> | 224 </outputs> |
218 | 225 |
219 <tests> | 226 <tests> |
220 <test><!-- Default Haplotypes --> | 227 <!-- Default Haplotypes --> |
228 <test> | |
221 <expand macro="macro_inputs" /> | 229 <expand macro="macro_inputs" /> |
222 | 230 <conditional name="cond_haplotypes"> |
223 <param name="extra_linkage_type" value="classical" /> | 231 <param name="opt_haplotypes" value="yes" /> |
224 <param name="extra_linkage_mptspt" value="mpt" /> | 232 </conditional> |
225 <param name="opt_haplotypes" value="yes" /> | |
226 | |
227 <output name="out_ihaplo" > | 233 <output name="out_ihaplo" > |
228 <assert_contents> | 234 <assert_contents> |
229 <has_text_matching expression="1\s+206003\s+111\s+112(\s+[012])+" /> | 235 <has_text_matching expression="1\s+206003\s+111\s+112(\s+[012])+" /> |
230 </assert_contents> | 236 </assert_contents> |
231 </output> | 237 </output> |
232 </test> | 238 </test> |
233 <test><!-- Linkage with custom steps--> | 239 <!-- Linkage with custom steps--> |
240 <test> | |
234 <expand macro="macro_inputs" /> | 241 <expand macro="macro_inputs" /> |
235 | 242 <conditional name="cond_haplotypes"> |
236 <param name="extra_linkage_type" value="classical" /> | 243 <section name="section_linkage"> |
237 <param name="extra_linkage_mptspt" value="mpt" /> | 244 <param name="extra_linkage_mptspt" value="mpt" /> |
238 <param name="extra_linkage_mptspt" value="mpt" /> | 245 <conditional name="cond_linktype" > |
239 <param name="extra_steps" value="3" /> | 246 <param name="extra_linkage_type" value="classical" /> |
240 <param name="extra_maxstep" value="30" /> | 247 </conditional> |
241 | 248 <conditional name="cond_steps" > |
242 | 249 <param name="extra_steps" value="3" /> |
250 </conditional> | |
251 </section> | |
252 </conditional> | |
243 <output name="out_fparam" > | 253 <output name="out_fparam" > |
244 <assert_contents> | 254 <assert_contents> |
245 <has_text_matching expression="1(\s+[-0-9.]+){2}\s+rs2822572" /> | 255 <has_text_matching expression="1(\s+[-0-9.]+){2}\s+rs2822572" /> |
246 </assert_contents> | 256 </assert_contents> |
247 </output> | 257 </output> |
248 </test> | 258 </test> |
249 <test><!-- Single-point linear expression test with power weights --> | 259 <!-- Single-point linear expression test with power weights --> |
260 <test> | |
250 <expand macro="macro_inputs" /> | 261 <expand macro="macro_inputs" /> |
251 | 262 <conditional name="cond_haplotypes"> |
252 <param name="extra_linkage_type" value="allele_sharing" /> | 263 <section name="section_linkage"> |
253 <param name="extra_linkage_mptspt" value="spt" /> | 264 <param name="extra_linkage_mptspt" value="spt" /> |
254 <param name="extra_linkage_linexp" value="lin" /> | 265 <conditional name="cond_linktype" > |
255 <param name="extra_linkage_scoring" value="homoz" /> | 266 <param name="extra_linkage_type" value="allele_sharing" /> |
256 <param name="extra_weighting" value="power:50" /> | 267 <param name="extra_linkage_linexp" value="lin" /> |
257 | 268 <param name="extra_linkage_scoring" value="homoz" /> |
269 <param name="extra_weighting" value="power:0.5" /> | |
270 </conditional> | |
271 </section> | |
272 </conditional> | |
258 <output name="out_fparam" > | 273 <output name="out_fparam" > |
259 <assert_contents> | 274 <assert_contents> |
260 <has_text_matching expression='(\-\d+\.\d+\s+)+rs2822696' /> | 275 <has_text_matching expression='(\-\d+\.\d+\s+)+rs2822696' /> |
261 </assert_contents> | 276 </assert_contents> |
262 </output> | 277 </output> |