xavierdidelot / BactDating

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

How to export BactDating tree to newick? #31

Closed maesaar closed 4 years ago

maesaar commented 4 years ago

I have trouble exporting BactDating tree to newick format for further analysis with treestructure. Could someone share how to export it to newick?

Thank you!

maesaar commented 4 years ago

I think I found solution that works write.tree(res$tree, file = 'outfile.nwk')

xavierdidelot commented 4 years ago

Yes that's right, well done for finding it by yourself!