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

Stop using deprecated Bio.Application #1107

Open
Donaim opened this issue May 24, 2024 · 0 comments
Open

Stop using deprecated Bio.Application #1107

Donaim opened this issue May 24, 2024 · 0 comments
Labels
dependencies Pull requests that update a dependency file enhancement
Milestone

Comments

@Donaim
Copy link
Member

Donaim commented May 24, 2024

We are currently utilizing Biopython's BLAST wrapper, Bio.Blast.Applications.NcbiblastnCommandline, which has been deprecated in the latest Biopython release with plans for removal in the future.

This deprecation is currently indicated by the following warning:

  /home/user1/micall/venv/lib/python3.10/site-packages/Bio/Application/__init__.py:40: BiopythonDeprecationWarning: The
Bio.Application modules and modules relying on it have been deprecated.

  Due to the ongoing maintenance burden of keeping command line application
  wrappers up to date, we have decided to deprecate and eventually remove these
  modules.

  We instead now recommend building your command line and invoking it directly
  with the subprocess module.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

There are only two instances of this deprecated API in MiCall, and the transition to a direct subprocess call should be straightforward.

@Donaim Donaim added enhancement dependencies Pull requests that update a dependency file labels May 24, 2024
@Donaim Donaim added this to the 7.18 milestone May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement
Projects
None yet
Development

No branches or pull requests

1 participant