-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Import MCMCTree Result Tree (PAML) #13
Comments
Hello, you can use read.beast( ) function, Just make two changes.
and when you use the following code, your 95%_CI bar center would be the mean value of the range.
You can manually add a parameter reltime (the estimated value, i.e. the node time) in the square brackets, this would help you anchor the right 0.95_CI. Then use the following code.
You can compare the Beast format (instance files that come with the treeio packages) with the MCMCtree format.
and you will understand what I'm saying. Good luck. The following is my code.
|
@xiangpin we need to implement a |
ok |
Thanks for the new read.mcmctree feature. McMcTree does not provide the reltime parameter in square brackets, thus the confidence interval cannot be anchored to the node using the estimated node time directly (with the center=reltime in geom_range( ) ). Node time is obtained by adding the branch times together. Manual editing the tree file is time consuming and error prone for a big tree. Could you please help to deal with this? |
Thank you for the excellent packages!
I was wondering if it would be possible to implement functionality that would enable the importing of MCMCTree 'nexus' result trees, and their subsequent use in ggtree with geom_range and other functions to visualize ranges on divergence time estimates. I have attached one such tree that comes from the examples provided with MCMCTree:
The text was updated successfully, but these errors were encountered: