Repository navigation
Declare Bio.Aplhabet obsolete with PendingDeprecationWarning - #2050
Conversation
TODO: Follow up with changes to the tutorial to downplay usage of Bio.Aphabet
Codecov Report
@@ Coverage Diff @@
## master #2050 +/- ##
==========================================
+ Coverage 84.92% 84.92% +<.01%
==========================================
Files 315 315
Lines 50545 50547 +2
==========================================
+ Hits 42924 42926 +2
Misses 7621 7621
Continue to review full report at Codecov.
|
|
Should the following code be triggering this warning? def consensus_seqrecord(consensus, ref_id):
return SeqRecord(Seq(consensus), id=ref_id + '_cns')I am not, after all, using |
|
Lots of Biopython indirectly imports A next step for us would be to add some (non-silent by default) |
|
Thanks Peter. It'll be Pytest that's changing the warning filters. Hardly a major issue – I just wanted to check I wasn't doing something deprecated. |
|
No, your example is the kind of thing which should not need any changes (if we do the deprecation and removal/replacement right). Thanks for checking! |
|
@peterjc What is the alternative to Bio.Alphabet? I see it used on the biopython tutorial page. Do you know a more current tutorial? |
|
Now that Biopython 1.77 is out, we are working on this now. The scale of the job may make some small breaks in backward compatibility almost unavoidable - but hopefully only in rarely used corner cases. |
|
@peterjc Thanks. Normally, code is deprecated after an alternative is released and not before. I assumed Biopython followed that unwritten rule. Thanks for explaining to me the plan. |
|
Down with |
This pull request addresses issue #2046
TODO: Follow up with changes to the tutorial to downplay usage of Bio.Aphabet
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)