Hi BEAST users,
I came across this thread while trying to fix the species tree topology in a StarBEAST2 analysis and hoped someone could provide some clarification around the preparation of the XML.
I have a large dataset comprising 919 target-capture alignments for >200 species and have inferred a species tree topology using WASTRAL-hybrid. I want to infer a time-proportional species tree and use the WASTRAL tree as a fixed tree to render the StarBEAST2 analysis more computationally tractable. I have prepared a "test" XML with all species but just 10 alignments with the following changes:
<init id="SBI" spec="starbeast2.StarBeastInitializer" estimate="false" speciesTree="@Tree.t:Species" newick="my_newick_species_tree_here">
<geneTree idref="Tree.t:Alignment_7"/>
<geneTree idref="Tree.t:Alignment_4"/>
<geneTree idref="Tree.t:Alignment_8"/>
<geneTree idref="Tree.t:Alignment_3"/>
<geneTree idref="Tree.t:Alignment_10"/>
<geneTree idref="Tree.t:Alignment_1"/>
<geneTree idref="Tree.t:Alignment_2"/>
<geneTree idref="Tree.t:Alignment_6"/>
<geneTree idref="Tree.t:Alignment_5"/>
<geneTree idref="Tree.t:Alignment_9"/>
<populationModel id="popModelBridge.Species" spec="starbeast2.PassthroughModel">
<childModel id="constantPopIOModel.Species" spec="starbeast2.DummyModel"/>
</populationModel>
</init>
and then added the initial gene trees immediately under that following Remco Bouckaert's blog post "all about starting trees":
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree1' initial='@Tree.t:Alignment_1'
speciesTree='@Tree.t:Species' taxa='@Alignment_1'>
<populationModel id='popmodel' spec='ConstantPopulation' popSize="1.0"/>
</init>
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree2' initial='@Tree.t:Alignment_2'
speciesTree='@Tree.t:Species' taxa='@Alignment_2'
populationModel='@popmodel'/>
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree3' initial='@Tree.t:Alignment_3'
speciesTree='@Tree.t:Species' taxa='@Alignment_3'
populationModel='@popmodel'/>
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree4' initial='@Tree.t:Alignment_4'
speciesTree='@Tree.t:Species' taxa='@Alignment_4'
populationModel='@popmodel'/>
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree5' initial='@Tree.t:Alignment_5'
speciesTree='@Tree.t:Species' taxa='@Alignment_5'
populationModel='@popmodel'/>
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree6' initial='@Tree.t:Alignment_6'
speciesTree='@Tree.t:Species' taxa='@Alignment_6'
populationModel='@popmodel'/>
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree7' initial='@Tree.t:Alignment_7'
speciesTree='@Tree.t:Species' taxa='@Alignment_7'
populationModel='@popmodel'/>
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree8' initial='@Tree.t:Alignment_8'
speciesTree='@Tree.t:Species' taxa='@Alignment_8'
populationModel='@popmodel'/>
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree9' initial='@Tree.t:Alignment_9'
speciesTree='@Tree.t:Species' taxa='@Alignment_9'
populationModel='@popmodel'/>
<init spec='beast.evolution.speciation.RandomGeneTree'
id='randomGeneTree10' initial='@Tree.t:Alignment_10'
speciesTree='@Tree.t:Species' taxa='@Alignment_10'
populationModel='@popmodel'/>
The XML runs fine, but when I open the output species.tree file in FigTree, the topology is clearly changing as the MCMC is progressing.
Apologies if this is a no-brainer, I am rather new to StarBEAST2 and would appreciate any help!
Best regards,
Zaynab
P.S. I also followed Remco Bouckaert's "all about starting trees" tutorial for fixing the species tree for StarBEAST2 by removing the SBI element etc., but the topology also changed during the MCMC.