You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add node_labels argument to TreeSequence.to_nexus #1812
This should have the same semantics as the Tree.newick node_labels argument.
There's a question here about whether we should automatically quote the labels so that they are valid nexus or not. Maybe we have an extra argument quote_labels=None which
If None, quotes labels if they contain characters like "_" that need quoting
This might not be something we want to put in the first version, depending on what we decide for #1840. I think it's best to leave it out entirely initially, unless we're certain we'll never want to output the alignments in nexus.
The main motivation for this issue was to fix the broken labelling scheme, which has been done in #1838.
Activity
jeetsukumaran commentedon Oct 18, 2021
Yep, this makes sense to me. For reference here is the interface for writing trees in DendroPy: https://dendropy.org/schemas/nexus.html#tree-write
jeromekelleher commentedon Oct 25, 2021
This might not be something we want to put in the first version, depending on what we decide for #1840. I think it's best to leave it out entirely initially, unless we're certain we'll never want to output the alignments in nexus.
The main motivation for this issue was to fix the broken labelling scheme, which has been done in #1838.
benjeffery commentedon Jun 9, 2025
Closing for inactivity