comparison macros.xml @ 0:f304c108aa1f draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 00684bab4c9e740cfa6a39abc444380e6818fd97"
author iuc
date Wed, 09 Jun 2021 07:03:54 +0000
parents
children 11fc6218365d
comparison
equal deleted inserted replaced
-1:000000000000 0:f304c108aa1f
1 <?xml version="1.0"?>
2 <macros>
3 <xml name="inputs">
4 <param name="input_file" type="data" format="fasta,fasta.gz,nex" label="Input FASTA or NEXUS file" help="If the input file type is NEXUS and it includes a valid newick tree, that tree will override an uploaded newick tree" />
5 <param name="input_nhx" type="data" format="nhx,newick" optional="true" label="Input newick file"/>
6 </xml>
7 <xml name="substitution">
8 <param name="model" type="select" label="Substitution model">
9 <option value="GTR">GTR - General time reversible
10 model</option>
11 <option value="LG">LG - Generalist empirical model from
12 Le and Gascuel (2008)</option>
13 <option value="HIVBm">HIVBm - Specialist empirical model
14 for between-host HIV sequences</option>
15 <option value="HIVWm">HIVWm - Specialist empirical model
16 for within-host HIV sequences</option>
17 <option value="WAG">WAG - Generalist empirical model from
18 Whelan and Goldman (2001)</option>
19 <option value="JTT">JTT - Generalist empirical model from
20 Jones, Taylor, and Thornton (1996)</option>
21 <option value="JC69">JC69 - Generalist empirical model
22 from with equal exchangeability rates</option>
23 <option value="mtMet">mtMet - Specialist empirical model
24 for metazoan mitochondrial genomes</option>
25 <option value="mtVer">mtVer - Specialist empirical model
26 for vertebrate mitochondrial genomes</option>
27 <option value="mtInv">mtInv - Specialist empirical model
28 for invertebrate mitochondrial genomes</option>
29 <option value="gcpREV">gcpREV - Specialist empirical
30 model for green plant chloroplast genomes</option>
31 </param>
32 </xml>
33
34 <xml name="conditional_posteriorEstimationMethod">
35 <conditional name="posteriorEstimationMethod">
36 <param argument="--method" type="select" label="Posterior estimation method">
37 <option value="Variational-Bayes">0-th order Variational Bayes approximation</option>
38 <option value="Metropolis-Hastings">Full Metropolis-Hastings MCMC algorithm</option>
39 <option value="Collapsed-Gibbs">Collapsed Gibbs sampler</option>
40 </param>
41 <when value="Variational-Bayes">
42 </when>
43 <when value="Metropolis-Hastings">
44 <expand macro="mcmc_options" />
45 </when>
46 <when value="Collapsed-Gibbs">
47 <expand macro="mcmc_options" />
48 </when>
49 </conditional>
50 </xml>
51
52 <token name="@posteriorEstimationMethod_cmd@">
53 #if $posteriorEstimationMethod.method != "Variational-Bayes"
54 --chains '$posteriorEstimationMethod.chains'
55 --chain-length '$posteriorEstimationMethod.chain_length'
56 --burn-in '$posteriorEstimationMethod.samples'
57 --samples '$posteriorEstimationMethod.samples_per_chain'
58 #end if
59 </token>
60
61 <xml name="mcmc_options">
62 <param argument="--chains" type="integer" value="5" min="2" max="20" label="Number of MCMC chains" />
63 <param argument="--chain-length" name="chain_length" type="integer" value="2000000" min="500000" max="50000000" label="Length of each chain" />
64 <param argument="--burn-in" name="samples" type="integer" value="1000000" min="100000" max="1900000" label="Samples to use for burn-in" />
65 <param argument="--samples" name="samples_per_chain" type="integer" value="100" min="50" max="1000000" label="Samples to draw from each chain" />
66 </xml>
67
68 <xml name="gencode">
69 <param name="gencodeid" type="select" label="Genetic code">
70 <option value="Universal">Universal code</option>
71 <option value="Vertebrate-mtDNA">Vertebrate mitochondrial DNA
72 code</option>
73 <option value="Yeast-mtDNA">Yeast mitochondrial DNA
74 code</option>
75 <option value="Mold-Protozoan-mtDNA">Mold, Protozoan and
76 Coelenterate mt; Mycloplasma/Spiroplasma</option>
77 <option value="Invertebrate-mtDNA">Invertebrate mitochondrial
78 DNA code</option>
79 <option value="Ciliate-Nuclear">Ciliate, Dasycladacean and
80 Hexamita Nuclear code</option>
81 <option value="Echinoderm-mtDNA">Echinoderm mitochondrial DNA
82 code</option>
83 <option value="Euplotid-Nuclear">Euplotid Nuclear
84 code</option>
85 <option value="Alt-Yeast-Nuclear">Alternative Yeast Nuclear
86 code</option>
87 <option value="Ascidian-mtDNA">Ascidian mitochondrial DNA
88 code</option>
89 <option value="Flatworm-mtDNA">Flatworm mitochondrial DNA
90 code</option>
91 <option value="Blepharisma-Nuclear">Blepharisma Nuclear
92 code</option>
93 </param>
94 </xml>
95
96 <xml name="srv">
97 <conditional name="advanced" label="Advanced options">
98 <param name="srv_options" type="select" label="Set advanced parameters" help="If these parameters are not set, RELAX will calculate appropriate values at runtime">
99 <option value="defaults">Calculate</option>
100 <option value="specify">Specify values</option>
101 </param>
102 <when value="defaults" />
103 <when value="specify">
104 <param argument="--grid-size" type="integer" value="250" label="Points in the initial distributional guess for likelihood fitting" />
105 <param argument="--starting-points" type="integer" value="1" label="Initial random guesses to seed rate values optimization" />
106 <param argument="--syn-rates" type="integer" min="1" max="10" value="3" label="Alpha rate classes to include in the model" />
107 <param argument="--rates" type="integer" min="2" max="10" value="3" label="Omega rate classes to include in the model" />
108 <param argument="--srv" type="boolean" truevalue="Yes" falsevalue="No" label="Include synonymous rate variation" />
109 <param name="save_alternative_model" type="boolean" label="Save alternative model fit" />
110 </when>
111 </conditional>
112 </xml>
113
114 <xml name="branches">
115 <conditional name="branch_cond">
116 <param name="branch_sel" type="select" label="Set of branches to test">
117 <option value="All">All branches</option>
118 <option value="Internal">Internal branches</option>
119 <option value="Leaves">Leaf branches</option>
120 <option value="'Unlabeled-branches'">Unlabeled branches</option>
121 <option value="specify">Enter a branch label</option>
122 </param>
123 <when value="specify">
124 <param name="branch_label" type="text" value="Test" optional="false" label="Branch label">
125 <sanitizer invalid_char="">
126 <valid initial="default" />
127 </sanitizer>
128 </param>
129 </when>
130 <when value="All" />
131 <when value="Internal" />
132 <when value="Leaves" />
133 <when value="'Unlabeled-branches'" />
134 </conditional>
135 </xml>
136 <xml name="citations">
137 <citations>
138 <citation type="doi">10.1093/molbev/msz197</citation>
139 <yield/>
140 </citations>
141 </xml>
142 <token name="@VERSION@">2.5.31</token>
143 <xml name="requirements">
144 <requirements>
145 <requirement type="package" version="@VERSION@">hyphy</requirement>
146 <yield/>
147 </requirements>
148 </xml>
149 <xml name="alternative_model_output">
150 <data name="alternative_model" format="hyphy_results.json" from_work_dir="alternative_model.json">
151 <filter>advanced['save_alternative_model']</filter>
152 </data>
153 </xml>
154 <token name="@INPUT_TREE@"><![CDATA[
155 #if $input_nhx:
156 --tree input.nhx
157 #end if
158 ]]>
159 </token>
160 <token name="@branch_options@"><![CDATA[
161 #if $branch_cond.branch_sel == 'specify':
162 --branches '$branch_cond.branch_label'
163 #else:
164 --branches $branch_cond.branch_sel
165 #end if
166 ]]>
167 </token>
168 <token name="@advanced_options@"><![CDATA[
169 #if $advanced.srv_options == 'specify':
170 --grid-size $advanced.grid_size
171 --starting-points $advanced.starting_points
172 --syn-rates $advanced.syn_rates
173 --rates $advanced.rates
174 --srv $advanced.srv
175 #if $advanced.save_alternative_model:
176 --save-fit alternative_model.json
177 #end if
178 #end if
179 ]]></token>
180 <token name="@HYPHYMPI@">\${GALAXY_MPIRUN:-mpirun -mca orte_tmpdir_base "\${TMPDIR:-.}" -np \${GALAXY_SLOTS:-1}} HYPHYMPI</token>
181 <token name="@ERRORS@"><![CDATA[
182 ; EC=\$? ; [[ -f errors.* ]] && cat errors.* >&2 ; exit \$EC
183 ]]></token>
184 <token name="@HYPHY_ENVIRONMENT@"><![CDATA[
185 export HYPHY=`which hyphy` &&
186 export HYPHY_PATH=`dirname \$HYPHY` &&
187 export HYPHY_LIB=`readlink -f \$HYPHY_PATH/../share/hyphy` &&]]></token>
188 <token name="@HYPHY_INVOCATION@"><![CDATA[
189 @HYPHY_ENVIRONMENT@ hyphy LIBPATH=\$HYPHY_LIB
190 ]]></token>
191 <token name="@SYMLINK_FILES@"><![CDATA[
192 #if $input_nhx is not None:
193 ln -s '$input_nhx' input.nhx &&
194 #end if
195 ln -s '$input_file' input.$input_file.extension &&
196 #set $input_file = 'input.%s' % $input_file.extension
197 ]]></token>
198 </macros>