@vibbioinfocore/phyd3-parser-compat
v0.0.2
Published
Legacy PhyD3 parser compatability library
Downloads
5
Readme
phyd3-parser-compat
A compatability library implementing PhyloXML parsing from the legacy version of PhyD3.
Installation
npm install @vibbioinfocore/phyd3-parser-compat
Usage
In the browser:
import {makeCompatTable, phyloxml} from "@vibbioinfocore/phyd3-parser-compat";
const parse = (text) => {
const parser = new DOMParser()
const doc = parser.parseFromString(text);
return makeCompatTable(phyloxml.parse(doc));
};
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update/add tests as appropriate.