veg / phylotree.js

Interactive viewer of phylogenetic trees
http://phylotree.hyphy.org
MIT License
169 stars 71 forks source link

PhyloXML string not supported #457

Open miguel76 opened 3 months ago

miguel76 commented 3 months ago

According to the API documentation at https://github.com/veg/phylotree.js/blob/master/API.md#new-phylotreenwk-options, a PhyloXML string should be accepted by the constructor. It instead expects it as an already parsed XML document. Rather than changing the documentation, I suggest enabling both types of input by calling an XML parser if the passed parameter is a string.