We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3a15ef commit bddd10cCopy full SHA for bddd10c
1 file changed
posebench/analysis/inference_analysis.py
@@ -170,7 +170,8 @@ def select_primary_ligands_in_df(
170
171
if select_most_similar_pred_frag:
172
mol_pred_frags = [
173
- find_most_similar_frag(mol_true_frag, mol_pred_frags)[0]
+ # Break reference to original molecule objects to avoid potential side effects
174
+ find_most_similar_frag(Chem.Mol(mol_true_frag), [Chem.Mol(mol_pred_frag) for mol_pred_frag in mol_pred_frags])[0]
175
for mol_true_frag in mol_true_frags
176
]
177
if not any(mol_pred_frags):
0 commit comments