Skip to content

Commit

Permalink
Revert: Take protein from prediction_results for relaxation
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaMolod committed Jul 19, 2024
1 parent d83db02 commit 6f93bbe
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions alphapulldown/folding_backend/alphafold_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,13 +624,7 @@ def postprocess(
if f'relax_{model_name}' in timings:
continue
t_0 = time.time()

unrelaxed_pdb_path = os.path.join(output_dir, f"unrelaxed_{model_name}.pdb")
if not os.path.exists(unrelaxed_pdb_path):
logging.error(f"Cannot find {unrelaxed_pdb_path} for relaxation! Skipping...")
continue
unrelaxed_pdb_string = open(unrelaxed_pdb_path, 'r').read()
unrelaxed_protein = protein.from_pdb_string(unrelaxed_pdb_string) # update prediction_results here other wise line 659 will crash
unrelaxed_protein = prediction_results[model_name]['unrelaxed_protein']
relaxed_pdb_str, _, violations = amber_relaxer.process(
prot=unrelaxed_protein)
relax_metrics[model_name] = {
Expand Down

0 comments on commit 6f93bbe

Please sign in to comment.