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

fix: parse source from gff to add nuc annotation #976

Merged
merged 3 commits into from
Jun 21, 2022

Conversation

corneliusroemer
Copy link
Member

@corneliusroemer corneliusroemer commented Jun 17, 2022

partially resolves BUG: augur translate not faithful to gff3 standard, can't annotate nucs, which are required. #953

This PR is required to be able to use the GFF3 genemap for the new reference for monkeypox, see nextstrain/mpox#67

Description of proposed changes

Currently, when augur translate is used with a gff3 genemap as input, nucleotides are not parsed and output into the annotation read in by export.

This means that gff3 is not readily usable as input which is a shame.

This PR makes sure that the source feature is read in and used as basis of nuc annotation.

Related issue(s)

Related to #953
Doesn't make translate fully GFF3 compliant (yet) that's why it's only a partial fix.

Testing

Tested locally with mpox, works as expected. Nuc is now output and used by export correctly.

Once this is merged, we can merge nextstrain/mpox#69

partially resolves BUG: `augur translate` not faithful to `gff3` standard, can't annotate nucs, which are required. #953
@codecov
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #976 (697f800) into master (bf400de) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #976      +/-   ##
==========================================
- Coverage   59.34%   59.32%   -0.02%     
==========================================
  Files          50       50              
  Lines        6257     6259       +2     
  Branches     1584     1585       +1     
==========================================
  Hits         3713     3713              
- Misses       2283     2285       +2     
  Partials      261      261              
Impacted Files Coverage Δ
augur/utils.py 64.28% <0.00%> (-0.55%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf400de...697f800. Read the comment docs.

@corneliusroemer corneliusroemer marked this pull request as ready for review June 17, 2022 14:49
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.

Let's get this merged!

Doesn't make translate fully GFF3 compliant (yet) that's why it's only a partial fix.

I don't think there is such a thing in practice -- see my comment in #953. All of that is for a future PR - this PR works and should be merged.

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

Successfully merging this pull request may close these issues.

4 participants