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

[deprecation] Bio.pairwise2 is deprecated in favor of Bio.Align.PairwiseAligner #3950

Closed
IAlibay opened this issue Dec 7, 2022 · 2 comments · Fixed by #3951
Closed

[deprecation] Bio.pairwise2 is deprecated in favor of Bio.Align.PairwiseAligner #3950

IAlibay opened this issue Dec 7, 2022 · 2 comments · Fixed by #3951
Assignees
Labels
Component-Analysis deprecation Deprecated functionality to give advance warning for API changes.
Milestone

Comments

@IAlibay
Copy link
Member

IAlibay commented Dec 7, 2022

We're currently getting warnings about the above, we should amend align.py as necessary.

EDIT: Based on discussion on PR #3951 we'll deprecate and remove in 3.0.

@IAlibay IAlibay added this to the 2.4.0 milestone Dec 7, 2022
@IAlibay
Copy link
Member Author

IAlibay commented Dec 7, 2022

I'm adding this to the 2.4.0 milestone since we're getting these warnings everywhere.

@orbeckst orbeckst self-assigned this Dec 7, 2022
orbeckst added a commit that referenced this issue Dec 7, 2022
- fix #3950
- engineered return tuple as namedtuple to functionally match
  the originally returned pairwise2.Alignment; we only documented
  a tuple as return type anyway
- update CHANGELOG
@orbeckst orbeckst added deprecation Deprecated functionality to give advance warning for API changes. Component-Analysis labels Dec 8, 2022
@orbeckst
Copy link
Member

orbeckst commented Dec 8, 2022

I created MDAnalysis/UserGuide#244 to document the functionality without the need for sequence_alignment().

orbeckst added a commit that referenced this issue Dec 8, 2022
…ith Bio.Align.PairwiseAligner (#3951)

* deprecate align.sequence_alignment for removal in 3.0
  - add deprecation
  - test for deprecation warning
  - combined tests for sequence_alignment in a class for easier removal
  - update CHANGELOG
* replaced deprecated Bio.pairwise2 with Bio.Align.PairwiseAligner
  - fix #3950
  - engineered return tuple as namedtuple to functionally match
    the originally returned pairwise2.Alignment; we only documented
    a tuple as return type anyway
* use biopython >= 1.80 feature for updated alig.sequence_alignment()
* additional docs for sequence_alignment()
  (The docs show how one should write code if/when we deprecated this function.)
* update CHANGELOG

Co-authored-by: Irfan Alibay <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component-Analysis deprecation Deprecated functionality to give advance warning for API changes.
Projects
None yet
2 participants