Skip to content

Commit

Permalink
Checks for database_folder exists
Browse files Browse the repository at this point in the history
  • Loading branch information
karolamik13 committed Nov 13, 2024
1 parent 6d34878 commit ee64b51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prody/proteins/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit ee64b51

Please sign in to comment.