From ee64b51fb957f0f3109cf6aacf63869a6f979c2d Mon Sep 17 00:00:00 2001 From: karolamik13 Date: Wed, 13 Nov 2024 14:59:56 +0100 Subject: [PATCH] Checks for database_folder exists --- prody/proteins/interactions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prody/proteins/interactions.py b/prody/proteins/interactions.py index e5d2050b8..9cc43962a 100644 --- a/prody/proteins/interactions.py +++ b/prody/proteins/interactions.py @@ -3404,6 +3404,10 @@ def runFoldseek(pdb_file, chain, **kwargs): coverage_threshold = kwargs.pop('coverage_threshold', 0.3) tm_threshold = kwargs.pop('tm_threshold', 0.5) + full_path = os.path.expanduser(database_folder) + if not os.path.exists(full_path.strip('pdb')): + raise ValueError('The required database is not found in {0}. Please download it first.'.format(database_folder.strip('pdb'))) + # Define the amino acid conversion function def aa_onelet(three_letter_code): codes = {