phylogician-ts
v0.11.3-0
Published
Module to read, manipulate and write phylogenetic trees. Written in TypeScript
Downloads
16
Maintainers
Readme
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
... to be continued.
Written with ❤ in Typescript.