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

Export: Add safety checks for annotations and geo #211

Merged
merged 1 commit into from
Sep 1, 2018

Conversation

trvrb
Copy link
Member

@trvrb trvrb commented Sep 1, 2018

I was just starting on a tutorial for visualizing BEAST trees in auspice. You can see the tutorial here: https://github.com/nextstrain/mers-beast-tutorial. In putting this together I discovered an issue with augur export expecting annotations and geo to be present. This PR corrects this.

When exporting BEAST trees (or generally trees that haven't passed through augur geo traits and augur translate), we lack annotations or geo. This adds safety checks to only attempt to include annotations and geo when actually present.

There should be nothing controversial here and no functionality has changed.

When exporting BEAST trees (or generally trees that haven't passed through augur geo traits and augur translate), we lack "annotations" or "geo". This adds safety checks to only attempt to include "annotations" and "geo" when actually present.
@trvrb trvrb merged commit 710b042 into master Sep 1, 2018
@trvrb trvrb deleted the export-safety-checks branch September 1, 2018 21:51
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.

1 participant