Skip to content

Commit

Permalink
Halt execution of the inference pipeline if either input PDB is not f…
Browse files Browse the repository at this point in the history
…ound
  • Loading branch information
amorehead committed Nov 2, 2021
1 parent 4824011 commit d246f86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions project/utils/deepinteract_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,10 @@ def convert_input_pdb_files_to_pair(left_pdb_filepath: str, right_pdb_filepath:
create_input_dir_struct(input_dataset_dir, pdb_code)
new_l_u_filepath = copy_input_to_raw_dir(input_dataset_dir, left_pdb_filepath, pdb_code, 'l_u')
new_r_u_filepath = copy_input_to_raw_dir(input_dataset_dir, right_pdb_filepath, pdb_code, 'r_u')
if not os.path.exists(new_l_u_filepath):
raise FileNotFoundError(f'The left PDB file was not found: {new_l_u_filepath}')
if not os.path.exists(new_r_u_filepath):
raise FileNotFoundError(f'The right PDB file was not found: {new_r_u_filepath}')
make_dataset(os.path.join(input_dataset_dir, 'raw'), os.path.join(input_dataset_dir, 'interim'))
recover_any_missing_chain_ids(os.path.join(input_dataset_dir, 'interim'),
new_l_u_filepath, left_pdb_filepath, pdb_code, 1)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='DeepInteract',
version='1.0.5',
version='1.0.6',
description='A geometric deep learning pipeline for predicting protein interface contacts.',
author='Alex Morehead',
author_email='acmwhb@umsystem.edu',
Expand Down

0 comments on commit d246f86

Please sign in to comment.