Skip to content
VR-DanielPublic

About

A fast and interactive browser-based tool for visualizing and editing phylogenetic trees and networks

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

113 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

tree2go

A fast and interactive browser-based tool for visualizing and editing phylogenetic trees and networks

Status: beta JavaScript HTML5 No installation Works offline
License: AGPL-3.0 Docs: CC BY-NC-SA 4.0 Last commit Stars

Open tree2go · Reference guide · Tutorial · How to cite


What it is

tree2go is a tool for viewing and editing phylogenetic trees and networks, and turning them into publication-ready figures. It brings together, in one place, many of the customization options that are otherwise spread across different programs or that require writing code.

It runs directly in your web browser, with or without an internet connection, and uses your computer's own resources: your trees and data never leave it. It is a single, self-contained HTML file. There is nothing to install, no registration and no subscription, and every feature is available to everyone.

Highlights

  • Trees and networks. Reads Newick, NEXUS and extended Newick (phylogenetic networks), with single trees or whole posterior samples from BEAST or MrBayes.
  • Summary trees. Majority-rule, strict and maximum compatible consensus, maximum clade credibility (MCC) and maximum a posteriori (MAP) trees, with burn-in and node ages summarized from the sample.
  • Uncertainty. Support values, node-age bars and violins, and tree clouds in the style of DensiTree.
  • Time trees and fossils. Time axis with the geologic time scale, extinct tips and fossil lineages, and sampled ancestors from fossilized birth-death analyses.
  • Data on the tree. Branches and nodes colored or sized by any annotation of the tree or column of an attached table, plus side plots: bars, categories, heatmaps and sequence alignments.
  • Ancestral reconstructions. Pie charts and colored branches from stochastic character maps (SIMMAP).
  • Maps, images and legends. Maps with records linked to the tips, images, density plots and free text, all movable with alignment guides.
  • Large figures. Split a long tree into pages, each with a miniature of the whole tree.
  • Fine control. The left panel changes the whole tree at once, and a right-click on any element changes only that element. Every change can be undone.
  • Accessible colors. Color-blind-safe palettes and a preview of the figure as seen with color vision deficiencies.
  • Export. PNG, PDF and SVG at any size and resolution, plus the edited tree as Newick or NEXUS. Projects can be saved and reopened with every change.

Getting started

There are two ways to use tree2go:

  1. Online: open vr-daniel.github.io/tree2go in any modern browser (Chrome, Edge, Firefox or Safari).
  2. Offline: download the app to your computer and open index.html like any web page. It works without an internet connection, except for a few functions that download data, such as world maps.

Then click Open tree in the Tree section of the left panel, or drop a tree file on the window.

Download the latest version

Copy the block for your system, paste it into a terminal and press Enter. It downloads the latest version of tree2go into a tree2go folder inside your Downloads folder. Running it again later updates it.

Windows (open cmd):

cd /d "%USERPROFILE%\Downloads"
if not exist tree2go mkdir tree2go
cd tree2go
curl -L -o tree2go.zip https://github.com/VR-Daniel/tree2go/archive/refs/heads/main.zip
tar -xf tree2go.zip --strip-components=1 tree2go-main/index.html tree2go-main/content
del tree2go.zip

macOS (open Terminal):

cd ~/Downloads
mkdir -p tree2go && cd tree2go
curl -L -o tree2go.zip https://github.com/VR-Daniel/tree2go/archive/refs/heads/main.zip
tar -xf tree2go.zip --strip-components=1 tree2go-main/index.html tree2go-main/content
rm tree2go.zip

Then open index.html from the tree2go folder. The content folder next to it holds the reference guide, the tutorials and the example files, so they also work offline. The download is about 30 MB.

Documentation

  • Options reference guide: every option of tree2go, grouped as in the app, with what it does, its values and when it appears.
  • Tutorial on the basic options: a step-by-step walk from opening a set of trees to exporting the final figure, available in three languages:

How to cite

If you use tree2go in a publication, please cite it as:

Vásquez-Restrepo, J. D. & Simões, T. R. (2026). tree2go: An interactive browser-based phylogenetic tree viewer and editor [Software]. GitHub. https://github.com/VR-Daniel/tree2go

Feedback

tree2go is in beta. Given the number of options and how they combine, some combinations may still hide bugs. If you find one, or have a suggestion, please open an issue, ideally with the file and the steps that reproduce it.

License

The source code of tree2go is licensed under the GNU AGPL-3.0. All related documentation, assets and materials are shared under a Creative Commons BY-NC-SA 4.0 international license: they can be shared and modified with credit to the authors, for non-commercial purposes only, and any modified version must be shared under the same license.

About

A fast and interactive browser-based tool for visualizing and editing phylogenetic trees and networks

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages