Skip to content

Commit

Permalink
do not sanitize frags from getmolfrags
Browse files Browse the repository at this point in the history
this seems to give incorrect error on rdk 2021
  • Loading branch information
richardjgowers committed Jul 7, 2023
1 parent a035526 commit 53b9572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lomap/mcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53b9572

Please sign in to comment.