Options
All
  • Public
  • Public/Protected
  • All
Menu

phylogician-ts

npm License: CC0-1.0 pipeline status coverage report

PhylogicianTS

Module to read, manipulate and write phylogenetic trees.

Install

npm install phylogician-ts

Usage

import { Tree } from 'phylogician-ts'

const newick = '(A:2,(B:3,C:4):5);'
const tree = new Tree()

tree.buildTree(nwk)

console.log(tree)

/*
Tree {
  nodes:
    [
      TreeNode {
        name: '',
        branchLength: null,
        children: [Array],
        id: 0,
        parent: null,
        root: true
      },
     TreeNode {
        name: 'A',
        branchLength: 2,
        children: [],
        id: 1,
        parent: 0,
        root: false
      },
     ...
*/

Documentation

Developer's Documentation

... to be continued.

Written with ❤ in Typescript.

Generated using TypeDoc