xavierdidelot / BactDating

Bayesian inference of ancestral dates on bacterial phylogenetic trees
https://xavierdidelot.github.io/BactDating
MIT License
80 stars 15 forks source link

95%CI association with tip and node labels? #29

Closed maesaar closed 4 years ago

maesaar commented 4 years ago

Hello,

regarding issues #11 and #17 what is the correct order of CIs in res$CI - it seems that first there are tips (res$tree$tip.label) and then nodes (res$tree$node.label)?

Is this correct way to associate CIs with tip and node labels:

1) Combining tree tip and node labels from res object: combined <- c(res$tree$tip.label,res$tree$node.label)

2) Combining previous object (combined) with CIs: combinedCIs <- cbind(combined,res$CI)

Thank you!

xavierdidelot commented 4 years ago

Yes that's exactly it!

maesaar commented 4 years ago

Thank you