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

Allow spaces in BEAST annotations #1610

Conversation

watronfire
Copy link
Contributor

@watronfire watronfire commented Aug 28, 2024

Spaces can be included in discrete states reconstructed by BEAST, even if they aren't proper according to NEXUS specs.

Description of proposed changes

I've added a space to the regexes for comments, strings in comments, and sets in comments.

Related issue(s)

Resolves: #1609

Checklist

  • Automated checks pass
  • Check if you need to add a changelog message
  • Check if you need to add tests
  • Check if you need to update docs

Spaces can be included in discrete states during BEAST runs, even if they aren't proper according to NEXUS specs. I've added a space to the regexes for comments, strings in comments, and sets in comments.
@jameshadfield jameshadfield self-assigned this Aug 28, 2024
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the reproducible example and the fix! Importing nexus trees is rarely done within the group and so this code is rather ancient at this point. We should really do a better job of parsing Nexus trees but without regularly using them ourselves it's not trivial. Would you mind adding an entry to the changelog here?

watronfire added a commit to watronfire/augur that referenced this pull request Aug 29, 2024
@watronfire
Copy link
Contributor Author

Yeah, glad to help out! Let me know if that changelog message is alright?

@jameshadfield
Copy link
Member

Thanks Nate - I merged in the changes here via #1615 in order to resolve some merge conflicts.

We typically make an augur release every week or so, so it shouldn't be too long before your changes are in the release version

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

Successfully merging this pull request may close these issues.

Spaces in BEAST annotations cause error
2 participants