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

Error in Bio.Application and how to build better command line with the subprocess module #24

Open
XuyingZhu opened this issue Sep 14, 2024 · 2 comments

Comments

@XuyingZhu
Copy link

Dear PhaBox team,
Thanks for such an amazing tool. However, I had a problem when testing four functions of PhaBox. I was suggested to build a command line with the subprocess module. Would you please give some advice on the new command or other ways to solve this problem? Thank you, and I am looking forward to your recent reply!
My commands are:
export PATH=$PATH:/share/home/zhuyy/software/PhaBOX-main

run PhaMer

python /share/home/zhuyy/software/PhaBOX-main/PhaMer_single.py --contigs /share/home/zhuyy/software/PhaBOX-main/test_contigs.fa --threads 48 --len 3000 --rootpth simple_test --out PhaMer_out/ --dbdir database/ --parampth parameters/ --scriptpth scripts/

run PhaTYP

python /share/home/zhuyy/software/PhaBOX-main/PhaTYP_single.py --contigs /share/home/zhuyy/software/PhaBOX-main/test_contigs.fa --threads 48 --len 3000 --rootpth simple_test --out PhaTYP_out/ --dbdir database/ --parampth parameters/ --scriptpth scripts/

run PhaGCN

python /share/home/zhuyy/software/PhaBOX-main/PhaGCN_single.py --contigs /share/home/zhuyy/software/PhaBOX-main/test_contigs.fa --threads 48 --len 3000 --rootpth simple_test --out PhaGCN_out/ --dbdir database/ --parampth parameters/ --scriptpth scripts/

run CHERRY

python /share/home/zhuyy/software/PhaBOX-main/Cherry_single.py --contigs /share/home/zhuyy/software/PhaBOX-main/test_contigs.fa --threads 48 --len 3000 --rootpth simple_test --out Cherry_out/ --dbdir database/ --parampth parameters/ --scriptpth scripts/

And the error message is as follows:
/share/home/zhuyy/anaconda3/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.

Best wishes,
Xuying Zhu

@KennthShang
Copy link
Owner

Hi there,

This is just a warning message and you do not need to do anything. The program can be run correctly.

If you want to remove warning message, you can downgrade your python environment or reinstall it using

conda create -n PhaBOX phabox=1.1 -c bioconda -c conda-forge -c pytorch -c jyshang2

Best,
Jiayu

@XuyingZhu
Copy link
Author

Hi Jiayu,
Thank you for your reply. I have reinstalled it and run the program successfully.
Best wishes,
Xuying Zhu

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