Skip to content
Snippets Groups Projects
Commit b99216b6 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

lDDT: bugfix

parent cb5d9bb0
Branches
Tags
No related merge requests found
...@@ -597,11 +597,12 @@ class lDDTScorer: ...@@ -597,11 +597,12 @@ class lDDTScorer:
residues = model.residues residues = model.residues
exp_prop = local_contact_prop + "_exp" exp_prop = local_contact_prop + "_exp"
conserved_prop = local_contact_prop + "_cons" conserved_prop = local_contact_prop + "_cons"
for idx in res_indices:
residues[idx].SetIntProp(exp_prop, for i, r_idx in enumerate(res_indices):
n_thresh * int(per_res_exp[idx])) residues[r_idx].SetIntProp(exp_prop,
residues[idx].SetIntProp(conserved_prop, n_thresh * int(per_res_exp[i]))
int(np.sum(per_res_conserved[idx,:]))) residues[r_idx].SetIntProp(conserved_prop,
int(np.sum(per_res_conserved[i,:])))
if return_dist_test: if return_dist_test:
return lDDT, per_res_lDDT, lDDT_tot, lDDT_cons, res_indices, \ return lDDT, per_res_lDDT, lDDT_tot, lDDT_cons, res_indices, \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment