| 1 |
<?xml version="1.0" standalone="yes"?> |
| 2 |
|
| 3 |
<beast> |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
<taxa id="taxa1"> |
| 8 |
<taxon id="human"> |
| 9 |
<attr name="latent"> 1 2</attr></taxon> |
| 10 |
<taxon id="chimp"> |
| 11 |
<attr name="latent"> 3 4</attr></taxon> |
| 12 |
<taxon id="bonobo"> |
| 13 |
<attr name="latent">-1 6</attr></taxon> |
| 14 |
<taxon id="gorilla"> |
| 15 |
<attr name="latent">-1 -2</attr></taxon> |
| 16 |
<taxon id="orangutan"> |
| 17 |
<attr name="latent">-1 -2</attr></taxon> |
| 18 |
<taxon id="siamang"> |
| 19 |
<attr name="latent">-1 -2</attr></taxon> |
| 20 |
</taxa> |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
<alignment id="alignment" dataType="binary"> |
| 25 |
<sequence> |
| 26 |
<taxon idref="human"/> |
| 27 |
11 |
| 28 |
</sequence> |
| 29 |
<sequence> |
| 30 |
<taxon idref="chimp"/> |
| 31 |
11 |
| 32 |
</sequence> |
| 33 |
<sequence> |
| 34 |
<taxon idref="bonobo"/> |
| 35 |
01 |
| 36 |
</sequence> |
| 37 |
<sequence> |
| 38 |
<taxon idref="gorilla"/> |
| 39 |
00 |
| 40 |
</sequence> |
| 41 |
<sequence> |
| 42 |
<taxon idref="orangutan"/> |
| 43 |
00 |
| 44 |
</sequence> |
| 45 |
<sequence> |
| 46 |
<taxon idref="siamang"/> |
| 47 |
00 |
| 48 |
</sequence> |
| 49 |
</alignment> |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
<patterns id="patterns" from="1" unique="false"> |
| 54 |
<alignment idref="alignment"/> |
| 55 |
</patterns> |
| 56 |
|
| 57 |
<tree id="treeML" units="years"> |
| 58 |
<node height="0.099582"> |
| 59 |
<node height="0.069125"> |
| 60 |
<node height="0.036038"> |
| 61 |
<node height="0.024003"> |
| 62 |
<node height="0.000000"> |
| 63 |
<taxon idref="human"/> |
| 64 |
</node> |
| 65 |
<node height="0.010772"> |
| 66 |
<node height="0.000000"> |
| 67 |
<taxon idref="chimp"/> |
| 68 |
</node> |
| 69 |
<node height="0.000000"> |
| 70 |
<taxon idref="bonobo"/> |
| 71 |
</node> |
| 72 |
</node> |
| 73 |
</node> |
| 74 |
<node height="0.000000"> |
| 75 |
<taxon idref="gorilla"/> |
| 76 |
</node> |
| 77 |
</node> |
| 78 |
<node height="0.000000"> |
| 79 |
<taxon idref="orangutan"/> |
| 80 |
</node> |
| 81 |
</node> |
| 82 |
<node height="0.000000"> |
| 83 |
<taxon idref="siamang"/> |
| 84 |
</node> |
| 85 |
</node> |
| 86 |
</tree> |
| 87 |
|
| 88 |
<treeModel id="treeModel"> |
| 89 |
<tree idref="treeML"/> |
| 90 |
<rootHeight> |
| 91 |
<parameter id="treeModel.rootHeight"/> |
| 92 |
</rootHeight> |
| 93 |
<nodeHeights internalNodes="true"> |
| 94 |
<parameter id="treeModel.internalNodeHeights"/> |
| 95 |
</nodeHeights> |
| 96 |
<nodeHeights internalNodes="true" rootNode="true"> |
| 97 |
<parameter id="treeModel.allInternalNodeHeights"/> |
| 98 |
</nodeHeights> |
| 99 |
|
| 100 |
<nodeTraits rootNode="false" internalNodes="false" leafNodes="true" traitDimension="2" name="latent"> |
| 101 |
<parameter id="leafTraits"/> |
| 102 |
</nodeTraits> |
| 103 |
|
| 104 |
</treeModel> |
| 105 |
|
| 106 |
<report> |
| 107 |
Newick Tree: |
| 108 |
<tree idref="treeML"/> |
| 109 |
</report> |
| 110 |
|
| 111 |
<multivariateDiffusionModel id="diffusionModel"> |
| 112 |
<precisionMatrix> |
| 113 |
<matrixParameter id="precisionMatrix"> |
| 114 |
<parameter id="col1" value="+2.00 -1.25"/> |
| 115 |
<parameter id="col2" value="-1.25 +2.00"/> |
| 116 |
</matrixParameter> |
| 117 |
</precisionMatrix> |
| 118 |
</multivariateDiffusionModel> |
| 119 |
|
| 120 |
<multivariateWishartPrior id="precisionPrior" df="2"> |
| 121 |
<scaleMatrix> |
| 122 |
<matrixParameter> |
| 123 |
<parameter value="1.0 0.0"/> |
| 124 |
<parameter value="0.0 1.0"/> |
| 125 |
</matrixParameter> |
| 126 |
</scaleMatrix> |
| 127 |
<data> |
| 128 |
<matrixParameter idref="precisionMatrix"/> |
| 129 |
</data> |
| 130 |
</multivariateWishartPrior> |
| 131 |
|
| 132 |
<multivariateNormalPrior id="rootPrior"> |
| 133 |
<meanParameter> |
| 134 |
<parameter value="0.0 0.0"/> |
| 135 |
</meanParameter> |
| 136 |
<precisionParameter> |
| 137 |
<matrixParameter> |
| 138 |
<parameter value="+2.00 -1.25"/> |
| 139 |
<parameter value="-1.25 +2.00"/> |
| 140 |
</matrixParameter> |
| 141 |
</precisionParameter> |
| 142 |
</multivariateNormalPrior> |
| 143 |
|
| 144 |
<multivariateTraitLikelihood id="traitLikelihood" traitName="latent" |
| 145 |
useTreeLength="true" scaleByTime="true" |
| 146 |
cacheBranches="true" |
| 147 |
reportAsMultivariate="true" reciprocalRates="true" integrateInternalTraits="true"> |
| 148 |
<multivariateDiffusionModel idref="diffusionModel"/> |
| 149 |
<treeModel idref="treeModel"/> |
| 150 |
<traitParameter> |
| 151 |
<parameter idref="leafTraits"/> |
| 152 |
</traitParameter> |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
<multivariateNormalPrior idref="rootPrior"/> |
| 162 |
</multivariateTraitLikelihood> |
| 163 |
|
| 164 |
<latentLiabilityLikelihood id="liabilityLikelihood"> |
| 165 |
<patterns idref="patterns"/> |
| 166 |
<treeModel idref="treeModel"/> |
| 167 |
<multivariateTraitLikelihood idref="traitLikelihood"/> |
| 168 |
<tipTrait> |
| 169 |
<parameter idref="leafTraits"/> |
| 170 |
</tipTrait> |
| 171 |
</latentLiabilityLikelihood> |
| 172 |
|
| 173 |
<operators id="operators" optimizationSchedule="log"> |
| 174 |
|
| 175 |
<randomWalkOperator windowSize="1.0" weight="10"> |
| 176 |
<parameter idref="leafTraits"/> |
| 177 |
</randomWalkOperator> |
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
</operators> |
| 186 |
|
| 187 |
<mcmc id="mcmc" chainLength="20000000" autoOptimize="true" autoOptimizeDelay="10000"> |
| 188 |
<posterior id="posterior"> |
| 189 |
<prior id="prior"> |
| 190 |
<multivariateWishartPrior idref="precisionPrior"/> |
| 191 |
</prior> |
| 192 |
<likelihood id="likelihood"> |
| 193 |
<multivariateTraitLikelihood idref="traitLikelihood"/> |
| 194 |
<latentLiabilityLikelihood idref="liabilityLikelihood"/> |
| 195 |
</likelihood> |
| 196 |
</posterior> |
| 197 |
|
| 198 |
<operators idref="operators"/> |
| 199 |
|
| 200 |
<log id="screenLog" logEvery="100000"> |
| 201 |
<column label="Posterior" dp="4" width="12"> |
| 202 |
<posterior idref="posterior"/> |
| 203 |
</column> |
| 204 |
<column label="Prior" dp="4" width="12"> |
| 205 |
<prior idref="prior"/> |
| 206 |
</column> |
| 207 |
<column label="Likelihood" dp="4" width="12"> |
| 208 |
<likelihood idref="likelihood"/> |
| 209 |
</column> |
| 210 |
|
| 211 |
<column label="leafTraits" sf="6" width="12"> |
| 212 |
<parameter idref="leafTraits"/> |
| 213 |
</column> |
| 214 |
</log> |
| 215 |
|
| 216 |
<log id="fileLog1" logEvery="10000" fileName="testLatentLiability.log"> |
| 217 |
<posterior idref="posterior"/> |
| 218 |
<prior idref="prior"/> |
| 219 |
<likelihood idref="likelihood"/> |
| 220 |
|
| 221 |
<matrixParameter idref="precisionMatrix"/> |
| 222 |
<parameter idref="leafTraits"/> |
| 223 |
</log> |
| 224 |
|
| 225 |
<logTree id="treeFileLog" logEvery="10000" nexusFormat="true" fileName="testLatentLiability.trees" sortTranslationTable="true"> |
| 226 |
<treeModel idref="treeModel"/> |
| 227 |
<posterior idref="posterior"/> |
| 228 |
<multivariateDiffusionModel idref="diffusionModel"/> |
| 229 |
<multivariateTraitLikelihood idref="traitLikelihood"/> |
| 230 |
</logTree> |
| 231 |
</mcmc> |
| 232 |
|
| 233 |
<traceAnalysis fileName="testLatentLiability.log"/> |
| 234 |
|
| 235 |
|
| 236 |
</beast> |
| 237 |
|
| 238 |
|
| 239 |
|