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

Bug: when exporting a phylogeny as Newick, spaces in leaf node labels are ignored #200

Closed
gaurav opened this issue Jul 27, 2020 · 4 comments · Fixed by #312
Closed

Bug: when exporting a phylogeny as Newick, spaces in leaf node labels are ignored #200

gaurav opened this issue Jul 27, 2020 · 4 comments · Fixed by #312
Assignees
Labels
bug difficulty: moderate Should take 3-5 days to close programming only No discussion necessary; just pure programming needed
Milestone

Comments

@gaurav
Copy link
Member

gaurav commented Jul 27, 2020

There's an odd bug that comes up when using Phylotree to export its phylogeny as Newick: while internal node labels export fine, leaf node label become concatenated with themselves (e.g. "Mitthyridium undulatum" would become "Mitthyridium undulatumMitthyridiumundulatum"). We currently work around this ourselves, but we should come up with a minimum example that shows this issue and post an issue to Phylotree so they can fix it.

@gaurav gaurav changed the title Figure out what's going wrong with Newick generation Figure out what's going wrong with Newick generation in Phylotree.js Jul 27, 2020
@hlapp
Copy link
Member

hlapp commented Jul 27, 2020

I think you can still post it to Phylotree now, and update later if and once we can define a test case? That way they know about its existence, and it's also possible that one of the developers can intuit what the cause might be.

@gaurav gaurav added this to the Klados v1.0 milestone Nov 10, 2021
@gaurav gaurav added difficulty: moderate Should take 3-5 days to close programming only No discussion necessary; just pure programming needed bug labels Dec 15, 2021
@gaurav gaurav changed the title Figure out what's going wrong with Newick generation in Phylotree.js Bug: when exporting a phylogeny as Newick, spaces in leaf node labels are ignored Dec 15, 2021
@gaurav
Copy link
Member Author

gaurav commented Aug 24, 2022

See if Phylotree update fixes it, otherwise remove from Klados v1.0

@gaurav
Copy link
Member Author

gaurav commented Aug 30, 2023

I've figured out where the bug is in phylotree.js and have reported it to them: veg/phylotree.js#438. They didn't respond in the last week, so I've put in a PR that will fix the issue for us: veg/phylotree.js#441

@gaurav
Copy link
Member Author

gaurav commented Jan 3, 2024

There was a bug in my previous attempt to fix this. I've reported this to phylotree.js at veg/phylotree.js#450 and created a PR to fix it at their end at veg/phylotree.js#448. Once that's fixed, I'll incorporate it in Klados as part of PR #312 and close this issue.

@gaurav gaurav self-assigned this Feb 14, 2024
@gaurav gaurav closed this as completed in e0b9c07 Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug difficulty: moderate Should take 3-5 days to close programming only No discussion necessary; just pure programming needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants