Skip to content

C++ RDKit::SubstructMatch Result Different from the Python Implementation #7394

Closed Answered by DavidACosgrove
NiBoyang asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @NiBoyang,
I think that's because in your C++ code you're matching against mol1 (without hydrogens) and in the Python you're matching against mol after you've added hydrogens. I suspect that if you use the testMolWithH molecule in your C++ code you will get the same answer in both cases.
Dave

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NiBoyang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants