Skip to content

Commit 314a656

Browse files
committed
fixed minor bug
1 parent 7176c2e commit 314a656

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modifinder/utilities/mol_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,8 @@ def _calculateModificationSites(mol, substructure, inParent = True):
586586
subMatches = list(matches)
587587
idx = subMatches.index(atom) # based on rdkit library, the value in matches array are sorted by index
588588
res.append(idx)
589+
590+
res = list(set(res)) # remove duplicates
589591
return res
590592

591593

0 commit comments

Comments
 (0)