Hi,
IQ-TREE added least square dating (LSD2) method to build a time tree (http://www.iqtree.org/doc/Dating). The produced dated tree (.timetree.nex file) looks a lot a BEAST timetree.
Using treeio::read.beast() does not throw any error during the import, but the object is not processed properly, as trying to immediately export the tree results in error. Additionally, most node information (CI_date, CI_height,..) is lost during the initial import.
R version 4.0.2 (2020-06-22) -- "Taking Off Again"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)
...
> library(treeio)
treeio v1.15.7 For help: https://yulab-smu.top/treedata-book/
If you use treeio in published research, please cite:
LG Wang, TTY Lam, S Xu, Z Dai, L Zhou, T Feng, P Guo, CW Dunn, BR Jones, T Bradley, H Zhu, Y Guan, Y Jiang, G Yu. treeio: an R package for phylogenetic tree input and output with richly annotated and associated data. Molecular Biology and Evolution 2020, 37(2):599-603. doi: 10.1093/molbev/msz240
> tree <- read.beast("input.tree")
> write.beast(tree, file="output.tree")
Error in cp(nl) : object 'nl' not found
Could you please add support for LSD2 timetree import?
Bests
Hi,
IQ-TREE added least square dating (LSD2) method to build a time tree (http://www.iqtree.org/doc/Dating). The produced dated tree (.timetree.nex file) looks a lot a BEAST timetree.
Using treeio::read.beast() does not throw any error during the import, but the object is not processed properly, as trying to immediately export the tree results in error. Additionally, most node information (CI_date, CI_height,..) is lost during the initial import.
Could you please add support for LSD2 timetree import?
Bests