-
Notifications
You must be signed in to change notification settings - Fork 130
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 Biopython deprecation warning #1102
Conversation
This also makes it easier to refactor.
1c4d29b
to
7bc1cbe
Compare
Codecov ReportBase: 63.36% // Head: 63.37% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1102 +/- ##
==========================================
+ Coverage 63.36% 63.37% +0.01%
==========================================
Files 57 57
Lines 6635 6638 +3
Branches 1632 1632
==========================================
+ Hits 4204 4207 +3
Misses 2147 2147
Partials 284 284
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
seq.ungap(gap) is deprecated as of biopython 1.80¹. try/except is used to support older Biopython versions. A bump to biopython>=1.79 would simplify this, but at the cost of narrowing Biopython support to versions released June 2021 and later. ¹ https://github.com/biopython/biopython/blob/dcf52bd4546410e1a60d39fbcd4c0041ec1e6fe6/DEPRECATED.rst#bioseqsequngap
7bc1cbe
to
e59a8b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran into this in tests for another PR, glad I checked on GH before trying to fix it 😄
Description of proposed changes
CI is failing with the latest Biopython release.
This PR applies the recommendation while retaining support for older Biopython versions.
Related issue(s)
N/A
Testing
Checklist