X-lab-3D / PANDORA

MODELLER-based, anchor restrained, Peptide-MHC Modelling pipeline
Apache License 2.0
17 stars 5 forks source link

Folder BLAST_databases does not exist when building database #221

Closed heleensev closed 1 year ago

heleensev commented 1 year ago

When rebuilding the database:

from PANDORA.Database import Database

db = Database.Database()
db.construct_database(n_jobs=32)

the following command in the execution failed:

mkdir /gpfs/home1/severin/software/PANDORA/Databases/default/BLAST_databases/templates_blast_db

This is because the folder BLAST_databases did not exist yet in my PANDORA/Databases folder Manually creating this folder resolved the issue.

DarioMarzella commented 1 year ago

Hi @heleensev , this is happening because you are trying to generate the database after having installed pandora from a older commit. If you normally download and install, the pip installation (and, when released, conda) will take care of creating all the necessary folders. Otherwise you have to update them manually.

DarioMarzella commented 1 year ago

We could add the feature of checking the presence, and eventually create the folders when the database is being generated. Normal users should never encounter this error, but we might still add the feature just to be sure.