comparison macros.xml @ 0:725ef5f6d749 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 751182d5067ac8378199058d9152ebfcaeb4c4b5"
author iuc
date Fri, 27 Mar 2020 13:15:01 -0400
parents
children 8f66e659530b
comparison
equal deleted inserted replaced
-1:000000000000 0:725ef5f6d749
1 <?xml version="1.0"?>
2 <macros>
3 <xml name="inputs">
4 <param name="input_file" type="data" format="fasta" label="Input FASTA file"/>
5 <param name="input_nhx" type="data" format="nhx" 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 <xml name="branches">
96 <param name="branches" type="select" label="Set of branches to test">
97 <option value="All">All branches</option>
98 <option value="Internal">Internal branches</option>
99 <option value="Leaves">Leaf branches</option>
100 <option value="'Unlabeled-branches'">Unlabeled branches</option>
101 </param>
102 </xml>
103 <xml name="citations">
104 <citations>
105 <citation type="doi">10.1093/molbev/msz197</citation>
106 <yield/>
107 </citations>
108 </xml>
109 <token name="@VERSION@">2.5.8</token>
110 <xml name="requirements">
111 <requirements>
112 <requirement type="package" version="@VERSION@">hyphy</requirement>
113 <yield/>
114 </requirements>
115 </xml>
116 <token name="@HYPHYMPI@">\${GALAXY_MPIRUN:-mpirun -np \${GALAXY_SLOTS:-1}} HYPHYMPI</token>
117 <token name="@CATCH_MPIERR@"><![CDATA[
118 EC=\$? ;
119 if [ \$EC -ne 0 ] ; then
120 cat errors.log.mpinode0 >&2 ;
121 fi ;
122 exit \$EC
123 ]]></token>
124 <token name="@HYPHY_ENVIRONMENT@"><![CDATA[
125 export HYPHY=`which hyphy` &&
126 export HYPHY_PATH=`dirname \$HYPHY` &&
127 export HYPHY_LIB=`readlink -f \$HYPHY_PATH/../lib/hyphy` &&]]></token>
128 <token name="@HYPHY_INVOCATION@"><![CDATA[
129 @HYPHY_ENVIRONMENT@ hyphy LIBPATH=\$HYPHY_LIB
130 ]]></token>
131 </macros>