Skip to content

ERROR SMARTS matching SMILES #2011

@simonmb

Description

@simonmb

Description:

  • RDKit Version: 2017.09.3
  • Platform: Windows

When matching one SMARTS with a specific SMILES somehow one match is missing.

Following code:

smiles = 'C1=CC=C2C(=C1)C3=CC=CC4=C3C5=C(C=C4)C(C(C=C25)O)O'
mol = Chem.MolFromSmiles(smiles)

q = Chem.MolFromSmarts('[cH]')

mol.GetSubstructMatches(q)

returns:
((0,), (1,), (2,), (5,), (7,), (8,), (9,), (14,), (15,))

It returns 9 hits, although it should find 10. Atom with index 18 is missing. If I draw the image the aromaticity looks correct:

clipboard01

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions