EnteroBase
latest
  • About EnteroBase
  • Frequently Asked Questions
  • Enterobase Terms and Conditions
  • How EnteroBase uses your personal data (GDPR)
  • Getting Started - Registering and logging in
  • EnteroBase tutorials and worked examples
    • Case study - Agama
    • Deeper concepts underpinning EnteroBase
    • Best practice for managing your data
    • Visualisation tools
    • Inner mechanics of EnteroBase
    • All the tutorials
      • Searching strains (Agama example)
      • UserSpace OS
      • Adding updated Serovar Information
      • About schemes within EnteroBase (cg/wg/r/MLST)
      • GrapeTree Documentation
        • Installing stand-alone GrapeTree
        • Tutorial 1A: Basic Usage of GrapeTree (EnteroBase version)
        • Tutorial 1B: Basic Usage of GrapeTree (Stand-alone)
        • Tutorial: Making your own GrapeTree Links
        • GrapeTree Reference Manual
        • About GrapeTree
        • About MSTreeV2
        • Citation
      • Creating a SNP Tree
      • Searching EnteroBase
      • HierCC (Hierarchical Clustering of CgMLST)
  • Presentations and Lectures about EnteroBase
  • About schemes within EnteroBase (cg/wg/r/MLST)
  • HierCC (Hierarchical Clustering of CgMLST)
  • GrapeTree Documentation
    • Installing stand-alone GrapeTree
    • Tutorial 1A: Basic Usage of GrapeTree (EnteroBase version)
    • Tutorial 1B: Basic Usage of GrapeTree (Stand-alone)
    • Tutorial: Making your own GrapeTree Links
      • 1. For normal users without a website.
      • 2. Owners of websites.
    • GrapeTree Reference Manual
    • About GrapeTree
    • About MSTreeV2
    • Citation
  • Key features in Enterobase
  • Enterobase API Usage (NO LONGER SUPPORTED IN ANY FORM)
  • The internal structure of EnteroBase
  • HierCC equivalents
  • Precomputed species trees
  • Documentation previously on mlst.warwick.ac.uk
  • Developing EnteroBase (Developers only)
  • Local EnteroBase’s documentation
EnteroBase
  • Docs »
  • EnteroBase tutorials and worked examples »
  • GrapeTree Documentation »
  • Tutorial: Making your own GrapeTree Links
  • Edit on Bitbucket

Tutorial: Making your own GrapeTree Links¶

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 restrictions in jscript codes, only three sources have been tested as working:

  • 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://achtman-lab.github.io/GrapeTree/MSTree_holder.html?tree=https://raw.githubusercontent.com/achtman-lab/EnteroMSTree/master/examples/ebola.date.json

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

  • http://bit.ly/2H8py8F

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.

Next Previous

© Copyright 2018, EnteroBase team Revision 20e6ba2b.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.