| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<beast> |
| 4 |
|
| 5 |
<taxa id="taxa1"> |
| 6 |
<taxon id="A"/> |
| 7 |
<taxon id="B"/> |
| 8 |
<taxon id="C"/> |
| 9 |
</taxa> |
| 10 |
|
| 11 |
<taxa id="AB"> |
| 12 |
<taxon idref="A"/> |
| 13 |
<taxon idref="B"/> |
| 14 |
</taxa> |
| 15 |
|
| 16 |
|
| 17 |
<constantSize id="demo1" units="years"> |
| 18 |
<populationSize> |
| 19 |
<parameter id="demo1.pop1" value="10.0"/> |
| 20 |
</populationSize> |
| 21 |
</constantSize> |
| 22 |
|
| 23 |
|
| 24 |
<newick id="startingTree"> |
| 25 |
((A:1,B:1):1,C:2); |
| 26 |
</newick> |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
<yuleModel id="yule" units="substitutions"> |
| 32 |
<birthRate> |
| 33 |
|
| 34 |
<parameter id="yule.birthRate" value="1.0" lower="0.0" |
| 35 |
upper="100.0"/> |
| 36 |
</birthRate> |
| 37 |
</yuleModel> |
| 38 |
|
| 39 |
<treeModel id="treeModel"> |
| 40 |
<coalescentTree idref="startingTree"/> |
| 41 |
<rootHeight> |
| 42 |
<parameter id="treeModel1.rootHeight"/> |
| 43 |
</rootHeight> |
| 44 |
<nodeHeights rootNode="false" internalNodes="true"> |
| 45 |
<parameter id="treeModel1.internalNodeHeights"/> |
| 46 |
</nodeHeights> |
| 47 |
<nodeHeights rootNode="true" internalNodes="true"> |
| 48 |
<parameter id="treeModel1.allNodeHeights"/> |
| 49 |
</nodeHeights> |
| 50 |
</treeModel> |
| 51 |
|
| 52 |
<tmrcaStatistic id="tmrca(AB)"> |
| 53 |
<mrca> |
| 54 |
<taxa idref="AB"/> |
| 55 |
</mrca> |
| 56 |
<treeModel idref="treeModel"/> |
| 57 |
</tmrcaStatistic> |
| 58 |
|
| 59 |
<monophylyStatistic id="mono(AB)"> |
| 60 |
<mrca> |
| 61 |
<taxa idref="AB"/> |
| 62 |
</mrca> |
| 63 |
<treeModel idref="treeModel"/> |
| 64 |
</monophylyStatistic> |
| 65 |
|
| 66 |
<speciationLikelihood id="speciation"> |
| 67 |
<model> |
| 68 |
<yuleModel idref="yule"/> |
| 69 |
</model> |
| 70 |
<speciesTree> |
| 71 |
<treeModel idref="treeModel"/> |
| 72 |
</speciesTree> |
| 73 |
</speciationLikelihood> |
| 74 |
|
| 75 |
<treeLengthStatistic name="TL" id="TL"> |
| 76 |
<treeModel idref="treeModel"/> |
| 77 |
</treeLengthStatistic> |
| 78 |
|
| 79 |
<mcmc id="mcmc1" chainLength="1000000"> |
| 80 |
<posterior> |
| 81 |
<speciationLikelihood idref="speciation"/> |
| 82 |
|
| 83 |
<gammaPrior shape="2" scale="1"> |
| 84 |
<tmrcaStatistic idref="tmrca(AB)"/> |
| 85 |
</gammaPrior> |
| 86 |
<booleanLikelihood> |
| 87 |
<monophylyStatistic idref="mono(AB)"/> |
| 88 |
</booleanLikelihood> |
| 89 |
</posterior> |
| 90 |
<log id="logScreen2" logEvery="100000"> |
| 91 |
<column dp="4"> |
| 92 |
<speciationLikelihood idref="speciation"/> |
| 93 |
<parameter idref="treeModel1.rootHeight"/> |
| 94 |
<treeLengthStatistic idref="TL"/> |
| 95 |
<tmrcaStatistic idref="tmrca(AB)"/> |
| 96 |
</column> |
| 97 |
</log> |
| 98 |
<log id="log1" logEvery="10" fileName="yuleCase3.log"> |
| 99 |
<speciationLikelihood idref="speciation"/> |
| 100 |
<parameter idref="treeModel1.rootHeight"/> |
| 101 |
<treeLengthStatistic idref="TL"/> |
| 102 |
<tmrcaStatistic idref="tmrca(AB)"/> |
| 103 |
</log> |
| 104 |
<logTree id="logTree1" logEvery="100" nexusFormat="true" |
| 105 |
fileName="yuleCase3.trees"> |
| 106 |
<treeModel idref="treeModel"/> |
| 107 |
</logTree> |
| 108 |
<operators> |
| 109 |
<subtreeSlide weight="1" gaussian="true" size="1"> |
| 110 |
<treeModel idref="treeModel"/> |
| 111 |
</subtreeSlide> |
| 112 |
</operators> |
| 113 |
</mcmc> |
| 114 |
|
| 115 |
<report> |
| 116 |
Time taken: |
| 117 |
<property name="timer"> |
| 118 |
<mcmc idref="mcmc1"/> |
| 119 |
</property> |
| 120 |
</report> |
| 121 |
|
| 122 |
<traceAnalysis fileName="yuleCase3.log" burnIn="1000"> |
| 123 |
|
| 124 |
<expectation name="tmrca(AB)" value="0.5"/> |
| 125 |
</traceAnalysis> |
| 126 |
|
| 127 |
<treeTraceAnalysis fileName="yulePrior.trees"/> |
| 128 |
|
| 129 |
</beast> |
| 130 |
|
| 131 |
|