Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on PhyloXML trees with single-branch clades #458

Open
miguel76 opened this issue Apr 4, 2024 · 0 comments
Open

Error on PhyloXML trees with single-branch clades #458

miguel76 opened this issue Apr 4, 2024 · 0 comments

Comments

@miguel76
Copy link

miguel76 commented Apr 4, 2024

If a PhyloXML contains at some level a clade with only a single branch below, an error is thrown at the following line:

node.clade.forEach(parsePhyloxml);

The problem is that the code expects the property clade to always be an array, while it is an object in the single branching case (due to how XML is converted to JSON).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant