Skip to content
Snippets Groups Projects
Unverified Commit 33bc9591 authored by Xavier Robin's avatar Xavier Robin
Browse files

fix: show correct ligands in full results output

parent 5604ef16
No related branches found
No related tags found
No related merge requests found
...@@ -635,8 +635,8 @@ def _Process(model, model_ligands, reference, reference_ligands, args): ...@@ -635,8 +635,8 @@ def _Process(model, model_ligands, reference, reference_ligands, args):
for ref_lig_idx in range(shape[0]): for ref_lig_idx in range(shape[0]):
for mdl_lig_idx in range(shape[1]): for mdl_lig_idx in range(shape[1]):
state = int(lddtpli_scorer.state_matrix[(ref_lig_idx, mdl_lig_idx)]) state = int(lddtpli_scorer.state_matrix[(ref_lig_idx, mdl_lig_idx)])
target_key = out["reference_ligands"][lig_pair[0]] target_key = out["reference_ligands"][ref_lig_idx]
model_key = out["model_ligands"][lig_pair[1]] model_key = out["model_ligands"][mdl_lig_idx]
if state == 0: if state == 0:
score = float(lddtpli_scorer.score_matrix[(ref_lig_idx, mdl_lig_idx)]) score = float(lddtpli_scorer.score_matrix[(ref_lig_idx, mdl_lig_idx)])
coverage = float(lddtpli_scorer.coverage_matrix[(ref_lig_idx, mdl_lig_idx)]) coverage = float(lddtpli_scorer.coverage_matrix[(ref_lig_idx, mdl_lig_idx)])
...@@ -707,8 +707,8 @@ def _Process(model, model_ligands, reference, reference_ligands, args): ...@@ -707,8 +707,8 @@ def _Process(model, model_ligands, reference, reference_ligands, args):
for ref_lig_idx in range(shape[0]): for ref_lig_idx in range(shape[0]):
for mdl_lig_idx in range(shape[1]): for mdl_lig_idx in range(shape[1]):
state = int(scrmsd_scorer.state_matrix[(ref_lig_idx, mdl_lig_idx)]) state = int(scrmsd_scorer.state_matrix[(ref_lig_idx, mdl_lig_idx)])
target_key = out["reference_ligands"][lig_pair[0]] target_key = out["reference_ligands"][ref_lig_idx]
model_key = out["model_ligands"][lig_pair[1]] model_key = out["model_ligands"][mdl_lig_idx]
if state == 0: if state == 0:
score = float(scrmsd_scorer.score_matrix[(ref_lig_idx, mdl_lig_idx)]) score = float(scrmsd_scorer.score_matrix[(ref_lig_idx, mdl_lig_idx)])
coverage = float(scrmsd_scorer.coverage_matrix[(ref_lig_idx, mdl_lig_idx)]) coverage = float(scrmsd_scorer.coverage_matrix[(ref_lig_idx, mdl_lig_idx)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment