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

Depreciation of Bio.Application #147

Closed
mossmatters opened this issue Jun 4, 2024 · 2 comments
Closed

Depreciation of Bio.Application #147

mossmatters opened this issue Jun 4, 2024 · 2 comments

Comments

@mossmatters
Copy link
Owner

A user reported seeing a warning associated with the use of Bio.Application:

/home/petzold1/miniconda3/envs/hybpiper/lib/python3.11/site-packages/Bio/Application/__init__.py:40: BiopythonDeprecationWarning: The Bio.Application modules and modules relying on it have been deprecated.

Due to the on going 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( 

According to the Bio.Application documentation, this warning is now indicating that the module is now obsolete.

I suspect the call that triggers the warning has to do with Bio.SearchIO for exonerate, but it is worth looking into!

@chrisjackson-pellicle
Copy link
Collaborator

chrisjackson-pellicle commented Jun 4, 2024

This warning is only for Bio.Application command line wrappers like Bio.Blast.Applications.NcbiblastpCommandline, Bio.Align.Applications.MafftCommandline etc., so Bio.SearchIO isn't effected.

In HybPiper 2 this warning is being triggered by the import of Bio.Align.Applications.MafftCommandline in the fix_targetfile.py module. No other HybPiper module uses a BioPython command line wrapper. I'll change this to call mafft directly in the next update, but for now it can safely be ignored!

@chrisjackson-pellicle
Copy link
Collaborator

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants