GrapeTree icon indicating copy to clipboard operation
GrapeTree copied to clipboard

Uploading metadata

Open peflanag opened this issue 3 years ago • 2 comments

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

peflanag avatar Oct 05 '20 14:10 peflanag

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

zheminzhou avatar Oct 06 '20 08:10 zheminzhou

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

peflanag avatar Oct 06 '20 09:10 peflanag