phylogician-ts
Version:
Module to read, manipulate and write phylogenetic trees. Written in TypeScript
61 lines (45 loc) • 1.34 kB
Markdown
<img src="https://gitlab.com/phylogician/phylogician-ts/raw/master/assets/PhylogicianTS.banner.png" width=500px/>


[](https://gitlab.com/phylogician/phylogician-ts/commits/master)
[](https://phylogician.gitlab.io/phylogician-ts/coverage)
# PhylogicianTS
Module to read, manipulate and write phylogenetic trees.
## Install
```shell
npm install phylogician-ts
```
## Usage
```typescript
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](https://phylogician.gitlab.io/phylogician-ts/)
... to be continued.
Written with ❤ in Typescript.