From 53b95722576bed208ba6aaf40c1e6785a75e56dd Mon Sep 17 00:00:00 2001 From: richard gowers Date: Fri, 7 Jul 2023 17:27:24 +0100 Subject: [PATCH] do not sanitize frags from getmolfrags this seems to give incorrect error on rdk 2021 --- lomap/mcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lomap/mcs.py b/lomap/mcs.py index 56a5a2f..5223e9b 100644 --- a/lomap/mcs.py +++ b/lomap/mcs.py @@ -675,7 +675,7 @@ def set_ring_counter(mol): delete_broken_ring() # Only single fragment - mols = Chem.GetMolFrags(self.mcs_mol, asMols=True) + mols = Chem.GetMolFrags(self.mcs_mol, asMols=True, sanitizeFrags=False) self.mcs_mol = max(mols, key=lambda x: x.GetNumAtoms()) # Mapping between the found MCS molecule and moli, molj