phylogician-ts
TypeScript icon, indicating that this package has built-in type declarations

0.11.3-0 • Public • Published

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.

Package Sidebar

Install

npm i phylogician-ts

Weekly Downloads

0

Version

0.11.3-0

License

CC0-1.0

Unpacked Size

860 kB

Total Files

33

Last publish

Collaborators

  • daviortega