Code Monkey home page Code Monkey logo

phylotree.js's Introduction

phylotree.js

A JavaScript interactive viewer of phylogenetic trees, written as an extension of the D3 hierarchy layout. It generates high quality SVG vector graphics, allows a great degree of customizability (CSS or JavaScript callbacks), and comes with a lot of built-in convenicence features.

Key features

  • Runs entirely in the browser, including Newick parsing.
  • Can easily handle trees with thousands of tips.
  • Supports linear, radial, scaled branch, tip-aligned, and scaled tip size views.
  • The viewer can be constrained to fit in a given SVG box, or scale based on the size of the tree.
  • Numerous interactive features, including
    • Scaling
    • Animated rerooting
    • Clade collapse and hiding to explore large trees
    • Node, clade, and subtree selection
    • Tools to automatically select subsets of tree branches based on conditions.
  • Style customizations based on CSS and JavaScript callbacks
    • Color branches and tips, including gradient shading for continuous traits.
    • Customize the way tip names are displayed
    • Transform branch lengths based on branch attributes (e.g. a non-linear scale).
    • Redefine the way a tree is displayed by writing custom CSS

Examples

  1. A gallery of examples is a good place to learn different ways that phylotree.js can be used to display and annotate the trees.
  2. A full-featured web application based on phylotree.js, implemented in index.html.
  3. phylotree.js is also used by the 2017 revision of the datamonkey.org server for molecular sequence analysis.

Dependencies

See package.json for dependencies.

Tests

Run tests using mocha.

Documentation

Documentation for phylotree.js can be found here.

Documentation was created using sphinx-js. Install with

pip install -r requirements.txt

and build with

npm run docs

phylotree.js's People

Contributors

spond avatar stevenweaver avatar stephenshank avatar kemaleren avatar sshank avatar amezhenin avatar sjspielman avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.