Fix tree topology and branch lengths to initial tree.

674 views
Skip to first unread message

Nicola de maio

unread,
Mar 24, 2014, 1:15:30 PM3/24/14
to beast...@googlegroups.com
Hi all,

I want to run BEAST on simulated data using the simulated tree as fixed, and estimating only the rates.
Now, I specify the initial tree with:

    <rescaledTree id="startingTree">
        <newick usingDates="false">
            ((4:0.143716199312,3:0.143716199312):906.962270176,(2:1.33042015929,1:1.33042015929):905.775566216);
        </newick>
    </rescaledTree>


As created by Beauti, and I remove all operators on branch lengths and topology.
This successfully results in the topology being fixed to the one of the initial tree.
Branch lengths are also fixed, but not to the right values, in fact I get in the tree log file:

tree STATE_0 [&lnP=-19.028510823779968,posterior=-19.028510823779968] = [&R] ((4:2.0,3:2.0):1.0,(2:2.0,1:2.0):1.0);

etc..
Changing the sequence alignment does not alter the branch lengths.
How can I rather fix branch lengths to the ones in the input tree?

Thanks,
Nicola

Andrew Rambaut

unread,
Mar 24, 2014, 8:35:03 PM3/24/14
to beast...@googlegroups.com
Dear Nicola,

Try changing this:

<rescaledTree id="startingTree">
<newick usingDates="false">
((4:0.143716199312,3:0.143716199312):906.962270176,(2:1.33042015929,1:1.33042015929):905.775566216);
</newick>
</rescaledTree>

to this:

<newick id="startingTree" usingDates="false">
((4:0.143716199312,3:0.143716199312):906.962270176,(2:1.33042015929,1:1.33042015929):905.775566216);
</newick>

Best,
Andrew
> --
> You received this message because you are subscribed to the Google Groups "beast-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to beast-users...@googlegroups.com.
> To post to this group, send email to beast...@googlegroups.com.
> Visit this group at http://groups.google.com/group/beast-users.
> For more options, visit https://groups.google.com/d/optout.

signature.asc

Nicola de maio

unread,
Mar 25, 2014, 8:26:53 AM3/25/14
to beast...@googlegroups.com
Many thanks, it works perfectly!

Nicola

Luis

unread,
Mar 30, 2014, 3:06:22 PM3/30/14
to beast...@googlegroups.com
Hi there,

I have one question about adding a starting tree. I already assigned node ages and prior densities of certain clades of a tree using beauti. I want to add a starting (and fix) tree in the xml file; do I need to incorporate the node ages to this starting tree before running beast?


Cheers


L
Reply all
Reply to author
Forward
0 new messages