Skip to content

Commit

Permalink
Fix log bug BioLib
Browse files Browse the repository at this point in the history
  • Loading branch information
FSGade committed Apr 27, 2023
1 parent 1ca85d6 commit 6539c61
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/predict_biolib.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,17 @@
get_directory_basename_dict,
predict_using_models, read_list_file,
set_struc_res_bfactor, true_if_zip,
load_gam_model, normalize_scores)
normalize_scores)

def load_gam_model(model_path):
"""Loads GAM model from model_path"""

log.debug(f"Loading GAM model from {model_path}")

with open(model_path, "rb") as f:
gam_model = pickle.load(f)

return gam_model

def save_clean_pdb_single_chains(
pdb_path, pdb_name, bscore, outdir, save_full_complex=False
Expand Down

0 comments on commit 6539c61

Please sign in to comment.