Wiki

Clone wiki

enterobase-web / GrapeTree-api

Go Back to Wiki Homepage

Go Back to GrapeTree Homepage

GrapeTree offers a choice to publish your interactive GrapeTree analysis online. This can be done by using two URL parameters.

Parameters:

tree=<online file for newick tree or json saved GrapeTree>

metadata=<tab-delimited or comma-delimited table>


Due to the CORS restriction in jscript codes, currently (2017-08-21, ZZ) only three sources have been tested:

  • Files from the same domain as the GrapeTree server.

  • Files in a GitHub public repository.

  • DropBox files that have been publicly shared via links.


There are different ways of publishing data:

1/ For normal users without a website.

You can publish your analysis online via GitHub preview version.

For example:

https://zheminzhou.github.io/GrapeTree/MSTree_holder.html?tree=https://raw.githubusercontent.com/martinSergeant/EnteroMSTree/master/examples/ebola.date.json

Or:

https://zheminzhou.github.io/GrapeTree/MSTree_holder.html?tree=https://www.dropbox.com/s/sct66gahoh67e80/simulated_data.global.nwk&metadata=https://www.dropbox.com/s/opycvvip0uykbtr/simulated_data.metadata.txt

You can shorten these links by google URL shortener or tinyURL. i.e.:

https://goo.gl/iKJRny

And

https://tinyurl.com/y79v97zu

2/ Owners of websites.

Please run the standalone version of GrapeTree and serve the URL under the same domain as your main website. GrapeTree can read links from your website, as long as they were under the same domain.

You can either host the tree files in a different local link, or fetch them from external link at the backend and re-distribute them via a proxy link.

Updated