UNPKG

phylotree

Version:

A JavaScript library for developing applications and interactive visualizations involving [phylogenetic trees](https://en.wikipedia.org/wiki/Phylogenetic_tree), written as an extension of the [D3](http://d3js.org) [hierarchy layout](https://github.com/d3/

18 lines (14 loc) 559 B
#!/usr/bin/env node const fs = require("fs"); const phylotree = require("../dist/phylotree.js"); const { program } = require("commander"); program .version("1.2.3") .command("tips", "get tips from newick tree") .command("tag", "tag branches in newick tree") .command("validate", "validate newick string") .command("reroot", "reroot newick tree based on node") .command("distance", "find distance between two nodes") .command("mrca", "tag all descendants of mrca") .command("shuffle", "shuffle tips in a tree"); program.parse(process.argv);