phylojs
Version:
A simple typescript library for phylogenetic trees
7 lines (6 loc) • 361 B
TypeScript
import { Tree, Node } from '../../';
/** Writes tree in .nexus format. Undefined branch lengths set to 0.
* @param {tree} tree The tree to write
* @param {boolean} annotate Boolean to include annotations. Default is true.
*/
export declare function writeNexus(tree: Tree, annotationWriter?: (annotation: typeof Node.prototype.annotation) => string): string;