joey711 / phyloseq

phyloseq is a set of classes, wrappers, and tools (in R) to make it easier to import, store, and analyze phylogenetic sequencing data; and to reproducibly share that data and analysis with others. See the phyloseq front page:
http://joey711.github.io/phyloseq/
577 stars 187 forks source link

export for ITOL #730

Open dridk opened 7 years ago

dridk commented 7 years ago

http://itol.embl.de/help.cgi is an awesome website to plot tree with metadata. I m trying to export phyloseq object to a file which can be read by ITOL.

What's the best way ? Is there any way to export phyloseq object ?

spholmes commented 7 years ago

That interface supports newick format, all you need to do is use the ape function and write.newick of the tree component from your phyloseq object:

from https://github.com/joey711/phyloseq/issues/599

tree1 = phy_tree(physeq1)

ape::write.tree(tree1, "~/path/to/new/tree1.tree")

On Fri, Mar 17, 2017 at 8:48 AM, sacha schutz notifications@github.com wrote:

http://itol.embl.de/help.cgi is an awesome website to plot tree with metadata. I m trying to export phyloseq object to a file which can be read by ITOL.

What's the best way ? Is there any way to export phyloseq object ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joey711/phyloseq/issues/730, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJcveJIr0aDwBc1vKF8HDpaT1iyFI81ks5rmqtkgaJpZM4Mgws7 .

-- Susan Holmes Professor, Statistics and BioX John Henry Samter Fellow in Undergraduate Education Sequoia Hall, 390 Serra Mall Stanford, CA 94305 http://www-stat.stanford.edu/~susan/

dridk commented 7 years ago

Ok. It seems there are other format where metadata can be embeded. Any idea ?