Skip to content

Commit d246f86

Browse files
committed
Halt execution of the inference pipeline if either input PDB is not found
1 parent 4824011 commit d246f86

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: project/utils/deepinteract_utils.py

+4
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,10 @@ def convert_input_pdb_files_to_pair(left_pdb_filepath: str, right_pdb_filepath:
793793
create_input_dir_struct(input_dataset_dir, pdb_code)
794794
new_l_u_filepath = copy_input_to_raw_dir(input_dataset_dir, left_pdb_filepath, pdb_code, 'l_u')
795795
new_r_u_filepath = copy_input_to_raw_dir(input_dataset_dir, right_pdb_filepath, pdb_code, 'r_u')
796+
if not os.path.exists(new_l_u_filepath):
797+
raise FileNotFoundError(f'The left PDB file was not found: {new_l_u_filepath}')
798+
if not os.path.exists(new_r_u_filepath):
799+
raise FileNotFoundError(f'The right PDB file was not found: {new_r_u_filepath}')
796800
make_dataset(os.path.join(input_dataset_dir, 'raw'), os.path.join(input_dataset_dir, 'interim'))
797801
recover_any_missing_chain_ids(os.path.join(input_dataset_dir, 'interim'),
798802
new_l_u_filepath, left_pdb_filepath, pdb_code, 1)

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='DeepInteract',
7-
version='1.0.5',
7+
version='1.0.6',
88
description='A geometric deep learning pipeline for predicting protein interface contacts.',
99
author='Alex Morehead',
1010
author_email='[email protected]',

0 commit comments

Comments
 (0)