achtman-lab / GrapeTree

GrapeTree is a fully interactive, tree visualization program, which supports facile manipulations of both tree layout and metadata. Click the first link to launch: https://achtman-lab.github.io/GrapeTree/MSTree_holder.html
https://genome.cshlp.org/content/28/9/1395
GNU General Public License v3.0
79 stars 27 forks source link

Uploading metadata #92

Open peflanag opened 4 years ago

peflanag commented 4 years ago

Hi,

I use the website https://achtman-lab.github.io/GrapeTree/MSTree_holder.html to visualise trees and for the time being have been entering metadata manually. Is there a way to upload the metadata from an excel file or to copy and past it in? I have vast amounts.

Cheers,

Peter

zheminzhou commented 4 years ago

Yes, you can upload a tab-delimited file describing metadata into the GrapeTree (via "load files"). The first row of the file needs to be the name of metadata fields, and the other rows describe the metadata content of every genome. The only requirement is that a column named "ID" needs to be consistent with the tip names in the tree.

You can find examples of the metadata files under https://github.com/achtman-lab/GrapeTree/blob/master/examples/simulated_data.metadata.txt

This file is used to annotate the tree: https://github.com/achtman-lab/GrapeTree/blob/master/examples/simulated_data.global.nwk

peflanag commented 4 years ago

Hey @zheminzhou thats great thanks so much for the info!