UNPKG

phylojs

Version:

A simple typescript library for phylogenetic trees

11 lines (10 loc) 416 B
import { Tree } from '../../'; type Schema = 'newick' | 'nexus' | 'phyloxml' | 'nexml' | 'phyjson'; /** * Reads trees from a string according to the specified `schema`. TODO: add support for getting trees from a URL. * @param {string} text * @param {Schema='newick'} schema newick, nexus, phyloXML, or NeXML * @returns {Tree[]} */ export declare function read(text: string, schema?: Schema): Tree[]; export {};