A compatability library implementing PhyloXML parsing from the legacy version of PhyD3.
npm install @vibbioinfocore/phyd3-parser-compat
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));
};
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.