YuLab-SMU / treeio

:seedling: Base Classes and Functions for Phylogenetic Tree Input and Output
https://yulab-smu.top/treedata-book/
94 stars 24 forks source link

No write.jplace function? #112

Closed adriaaula closed 9 months ago

adriaaula commented 11 months ago

Hi!

I was interested into reading a jplace file, perform some modifications and then saving it again. But I have found that the write.jplace function is not there.

In the chapter it appears as It should be present:

To facilitate storing the merged data into a single file, treeio implemented write.jplace function to export tree object to a jplace file that has a robust format for storing complex data associated with the phylogenetic tree. The jplace file can be parsed and imported into R by our read.jplace function for future use.

https://guangchuangyu.github.io/ggtree-book/chapter-treeio.html

I have checked the code in the github project and it doesn't seem to be a function for that. There is write.jtree but I want to preserve all the initial information contained in the tree, and jtree doesn't do that.

I am using treeio_1.18.1.

Thanks a ton!

GuangchuangYu commented 9 months ago

pls use the github version of treeio.