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

FileNotFoundError: No such file or directory: 'makeblastdb' while running gff3_QC #139

Open
hj-99 opened this issue Nov 6, 2024 · 3 comments

Comments

@hj-99
Copy link

hj-99 commented Nov 6, 2024

Hello, thank you for developing this useful tool! I encountered an error while running gff3_QC and need some help troubleshooting.

I used the following command:
gff3_QC -g my.gff3 -f my.fa -o report.txt -s statistic.txt

I received the following error message:
Traceback (most recent call last):
File "/public1/home/sc30852/anaconda3/envs/GFF_env/bin/gff3_QC", line 33, in
sys.exit(load_entry_point('gff3tool==2.1.0', 'console_scripts', 'gff3_QC')())
File "/public1/home/sc30852/anaconda3/envs/GFF_env/lib/python3.8/site-packages/gff3tool-2.1.0-py3.8.egg/gff3tool/bin/gff3_QC.py", line 103, in script_main
cmd = inter_model.main(gff3, args.gff, args.fasta, logger=logger_stderr, noncanonical_gene=args.noncanonical_gene)
File "/public1/home/sc30852/anaconda3/envs/GFF_env/lib/python3.8/site-packages/gff3tool-2.1.0-py3.8.egg/gff3tool/lib/inter_model/inter_model.py", line 151, in main
r = check_incorrectly_split_genes(gff, gff_file, fasta_file, logger)
File "/public1/home/sc30852/anaconda3/envs/GFF_env/lib/python3.8/site-packages/gff3tool-2.1.0-py3.8.egg/gff3tool/lib/inter_model/inter_model.py", line 88, in check_incorrectly_split_genes
subprocess.Popen([cmd, '-in', 'tmp_cds.fa', '-dbtype', 'nucl']).wait()
File "/public1/home/sc30852/anaconda3/envs/GFF_env/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/public1/home/sc30852/anaconda3/envs/GFF_env/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/public1/home/sc30852/anaconda3/envs/GFF_env/lib/python3.8/site-packages/gff3tool-2.1.0-py3.8.egg/gff3tool/lib/ncbi-blast+/bin/makeblastdb'

It seems that makeblastdb (part of the NCBI BLAST+ suite) is required by gff3_QC, but it was not found in my environment. Could you please clarify if makeblastdb should be installed separately, or if there are additional installation steps to include it in the expected directory? I am currently using an Anaconda environment (GFF_env) for this project.

Thank you in advance for your help!

@MonicaPoelchau-USDA
Copy link

Sorry to hear you're having problems! Could you let me know how you installed the gff3toolkit, and what version of python you're using? Thanks!

@hj-99
Copy link
Author

hj-99 commented Nov 7, 2024

Thank you for getting back to me!

I installed the GFF3toolkit using the following command:

pip install git+https://github.com/NAL-i5K/GFF3toolkit.git

My Python version is 3.8.16. Additionally, I received an error indicating that a blast file could not be found.

@MonicaPoelchau-USDA
Copy link

I tried 2 fresh installs using python 3.8.16 - one using a python environment, and one with a miniconda environment. For both installations the program installed the blast binaries. So I'm not sure what's going on with your setup. I'd suggest setting up a fresh python or miniconda environment and attempting to install the gff3toolkit again. Sorry I can't help more!

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