Empty substructure pattern matching behavior? #6955
Unanswered
drassokhin
asked this question in
General
Replies: 1 comment
-
The result of a subtruct match is the list of atom indexes found in the match. In this case, no atoms were found hence there is no match, this is just the definition used by GetSubstructMatches and inherited by HasSubstructMatch. No substructure, no match. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Python code below
, when executed in a Jupyter notebook, will produce the following output:
An empty regular expression matches any string. In RDKit, an empty substructure pattern does not match any molecule, including an empty molecule. Is this the expected behavior?
Beta Was this translation helpful? Give feedback.
All reactions