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

Could not find HHBlits database #2

Closed
Neutrino0532 opened this issue Jul 22, 2021 · 3 comments
Closed

Could not find HHBlits database #2

Neutrino0532 opened this issue Jul 22, 2021 · 3 comments

Comments

@Neutrino0532
Copy link

Traceback (most recent call last):
  File "run_alphafold.py", line 338, in <module>
    app.run(main)
  File "/home/yulab/anaconda3/envs/af2/lib/python3.8/site-packages/absl/app.py", line 312, in run
    _run_main(main, args)
  File "/home/yulab/anaconda3/envs/af2/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main
    sys.exit(main(argv))
  File "run_alphafold.py", line 273, in main
    data_pipeline = pipeline.DataPipeline(
  File "/home/yulab/software/alphafold/alphafold/data/pipeline.py", line 101, in __init__
    self.hhblits_bfd_uniclust_runner = hhblits.HHBlits(
  File "/home/yulab/software/alphafold/alphafold/data/tools/hhblits.py", line 83, in __init__
    raise ValueError(f'Could not find HHBlits database {database_path}')
ValueError: Could not find HHBlits database /data1/AF2_data/uniclust30/UniRef30_2020_02

in file run_alphafold.py, change line 77 to the following code will fix it.

    DOWNLOAD_DIR, 'uniclust30', 'UniRef30_2020_02', 'UniRef30_2020_02')
@kuixu
Copy link
Owner

kuixu commented Jul 31, 2021

Have you solved the problem?

It seems that maybe your 'uniclust30' is named 'uniclust30_2018_08', while the code is 'uniclust30_2020_02'. The simplest way is to comment line77, and uncomment line78.

uniclust30_database_path = os.path.join(
DOWNLOAD_DIR, 'uniclust30', 'UniRef30_2020_02')
#DOWNLOAD_DIR, 'uniclust30', 'uniclust30_2018_08', 'uniclust30_2018_08')

@Neutrino0532
Copy link
Author

Have you solved the problem?

It seems that maybe your 'uniclust30' is named 'uniclust30_2018_08', while the code is 'uniclust30_2020_02'. The simplest way is to comment line77, and uncomment line78.

uniclust30_database_path = os.path.join(
DOWNLOAD_DIR, 'uniclust30', 'UniRef30_2020_02')
#DOWNLOAD_DIR, 'uniclust30', 'uniclust30_2018_08', 'uniclust30_2018_08')

The problem has been solved. The error occurs with incorrect database structure, so modifying codes to adapt to database structure works.

@kuixu kuixu closed this as completed Aug 9, 2021
@karlaarz
Copy link

Hi! I installed alphafold following the non_docker option using the reduced version of the databases (reduced_dbs mode) and I'm finding a similar error:

bash run_alphafold.sh -d /home/k.ruiz/alphafold_data -o /home/k.ruiz/rnaseq/alphafold/output -f /home/k.ruiz/rnaseq/alphafold/input/MSTRG.4643.1_3_RBP3.fasta -t 2020-05-14
I0725 12:53:28.340466 140062189004608 templates.py:857] Using precomputed obsolete pdbs /home/k.ruiz/alphafold_data/pdb_mmcif/obsolete.dat.
E0725 12:53:28.343733 140062189004608 hhblits.py:82] Could not find HHBlits database /home/k.ruiz/alphafold_data/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt
Traceback (most recent call last):
  File "/home/k.ruiz/alphafold-2.2.0/run_alphafold.py", line 422, in <module>
    app.run(main)
  File "/home/k.ruiz/miniconda3/envs/alphafold/lib/python3.8/site-packages/absl/app.py", line 312, in run
    _run_main(main, args)
  File "/home/k.ruiz/miniconda3/envs/alphafold/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main
    sys.exit(main(argv))
  File "/home/k.ruiz/alphafold-2.2.0/run_alphafold.py", line 338, in main
    monomer_data_pipeline = pipeline.DataPipeline(
  File "/home/k.ruiz/alphafold-2.2.0/alphafold/data/pipeline.py", line 138, in __init__
    self.hhblits_bfd_uniclust_runner = hhblits.HHBlits(
  File "/home/k.ruiz/alphafold-2.2.0/alphafold/data/tools/hhblits.py", line 83, in __init__
    raise ValueError(f'Could not find HHBlits database {database_path}')
ValueError: Could not find HHBlits database /home/k.ruiz/alphafold_data/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt

However, when I try to edit the run_alphafold.py file, lines 76 and 77 look different from the ones mentioned here:

flags.DEFINE_string('uniclust30_database_path', None, 'Path to the Uniclust30 '
                    'database for use by HHblits.')

Is there any other solution?

Thanks!

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

3 participants