Extracting, in tabular format, posterior locations from a discrete phylogeographic analysis

83 views
Skip to first unread message

carlo pacioni

unread,
Oct 30, 2018, 11:19:48 PM10/30/18
to beast-users
Hi everyone,?
I have conducted a discrete phylogeographic analysis in BEAST 2.5.1 and would like to extract in a tabular format the posterior probability of the locations of a bunch of tips. I'm sure there must be a R package or some other utilities to extract this info available. Could you please point me to a solution? I know that this statistics is collected by TreeAnnotator and I can visualize it in the MCC tree (or by manually searching the MCC tree file) under the location.set and location.set.prob, but I'm looking for a faster, more automated way to do this.

thanks,
carlo

Santiago Sánchez

unread,
Oct 31, 2018, 1:22:17 AM10/31/18
to beast...@googlegroups.com
Hi Carlo,

Check out my R package, rBt, to extract metadata from BEAST annotated trees. I’ve tested it with Beast2 and Beast1 trees, and it also works with MCC and posterior trees.

https://github.com/santiagosnchez/rBt

Example:

library(devtools)
install_github(“santiagosnchez/rBt”)
tre = read.annot.beast(‘mytree.mcc.tre’)
head(tre$metadata)

Let me know if you have questions.

Cheers,
Santiago




--
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 https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.

Carlo Pacioni

unread,
Oct 31, 2018, 1:43:36 AM10/31/18
to beast...@googlegroups.com, santiag...@gmail.com
Thanks Santiago,
Exactly what I needed!

Carlo

Reply all
Reply to author
Forward
0 new messages