Skip to content
forked from lh3/jstreeview

This repo is for backup only. Please check the parent repo for details.

Notifications You must be signed in to change notification settings

hlilab/jstreeview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

# open https://lh3.sourceforge.io/jstree/ in your browser for a live example, or
git clone https://github.com/lh3/jstreeview
# then open index.html in a web browser

Introduction

This repo provides an interactive web application for viewing or editing phylogenetic trees in the New Hampshire (aka Newick) format or the NHX format. It supports subtree collapsing, subtree highlighting, leaf searching and reording for viewing, and supports branch swapping, multifurcation, reroot and arbitrary topology altering for editing.

Jstreeview is written in HTML and JavaScript. You may clone this repo and open index.html to use it without installation. A running example can be found here.

You can also use jstreeview as a library. File example.html shows a minimal example.

History

I created this project in 2008 initially for curating TreeFam trees. The source code was managed by an obsolete version of subversion which is incompatible with the latest subversion. Although I have not touched the source code for over a decade, I have still used the viewer from time to time to visualize phylogenetic trees.

Recently when I worked on GFA visualization, I realized that I could draw sharper shapes and texts on HTML canvas, so I decide to update this project. In addition, jstreeview was using a third-party text drawing library as few web browsers supported text drawing in 2008. The update now supports built-in canvas fonts.

Looking at my 15-year-old code, I think some design choices at the time are questionable and may benefit from a revamp. I will leave this to another day, or the project may never see the light of day.

About

This repo is for backup only. Please check the parent repo for details.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.8%
  • HTML 41.2%