You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unknown Seq deprecated without major version bump breaking BCBio.GFF #4239
I just installed the newest Biopython version 1.81 and got a bug that took some time to figure out.
Turns out, you deprecated UnknownSeq in 1.81, something that BCBio.GFF uses.
I discover (now) that you announced deprecation in a deprecated.rst for 1.81, but this wasn't quite easy to find - there's no mention of it in the release notes.
It would be great if you could put deprecations in release notes to make it easier to discover why something breaks.
Also, in general, it would be nice if you used semver and increased major version if you deprecate something.
Hmm, I don't see why one can't bump major version in most releases. This is what browsers do for example. They deprecate stuff all the time, so they bump.
At least a deprecation notice when importing this module would have been good, for the future. I don't think I ever saw a warning?
The removal is not mentioned in NEWS.rst for v1.81. It is mentioned in NEWS.rst for v1.79, but basically impossible to find given the text wall without structure. Something like a heading ## Deprecations with a list of everything deprecated in that version and planned deprecations and their versions would be great.
And referencing the specific commit, we did do issue DeprecationWarnings: mdehoon@0832381 (since Dec 2020)
Not blaming anyone for not noticing it, I know that deprecation warnings can be annoying and people often silence them, or if Biopython is an upstream dependency, you might never even see these warnings. So, in the future, we might want to add a note to the NEWS or so, pointing directly to the deprecations for each release, basically linking NEWS.rst and DEPRECATED.rst for easier browsing by users.
Activity
Lioscro commentedon Feb 17, 2023
I also encountered this while using
BCBio. Would have been great to have the deprecation noted in the changelogs and a major bump.mdehoon commentedon Feb 17, 2023
This would not be realistic -- stuff gets deprecated in most if not all Biopython releases.
corneliusroemer commentedon Feb 17, 2023
Hmm, I don't see why one can't bump major version in most releases. This is what browsers do for example. They deprecate stuff all the time, so they bump.
At least a deprecation notice when importing this module would have been good, for the future. I don't think I ever saw a warning?
The removal is not mentioned in
NEWS.rstfor v1.81. It is mentioned inNEWS.rstfor v1.79, but basically impossible to find given the text wall without structure. Something like a heading## Deprecationswith a list of everything deprecated in that version and planned deprecations and their versions would be great.https://github.com/biopython/biopython/blob/master/NEWS.rst#12-february-2023-biopython-181
https://github.com/biopython/biopython/blob/master/NEWS.rst#3-june-2021-biopython-179
JoaoRodrigues commentedon Feb 17, 2023
Note that we do list deprecations though: https://github.com/biopython/biopython/blob/master/DEPRECATED.rst#biosequnknownseq
JoaoRodrigues commentedon Feb 17, 2023
And referencing the specific commit, we did do issue
DeprecationWarnings: mdehoon@0832381 (since Dec 2020)Not blaming anyone for not noticing it, I know that deprecation warnings can be annoying and people often silence them, or if Biopython is an upstream dependency, you might never even see these warnings. So, in the future, we might want to add a note to the NEWS or so, pointing directly to the deprecations for each release, basically linking
NEWS.rstandDEPRECATED.rstfor easier browsing by users.EDIT: The most likely reason why you never saw the warning was that
UnknownSeqis never instantiated. It's used in anisinstancecall in https://github.com/chapmanb/bcbb/blob/dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027/gff/BCBio/GFF/GFFParser.py#L539.siddhartasr10 commentedon Apr 30, 2023
It is instantiated, it also creates a record with an UnknownSeq: https://github.com/chapmanb/bcbb/blob/dbfb52711f0bfcc1d26c5a5b53c9ff4f50dc0027/gff/BCBio/GFF/GFFParser.py#L543
But maybe it doesn't show because its done on a private method?
peterjc commentedon Apr 30, 2023
@siddhartasr10 update your copy of BCBio, see chapmanb/bcbb@8a36af0