C++ RDKit::SubstructMatch Result Different from the Python Implementation #7394
-
I used the C++ implementation to match a substructure:
The C++ result is:
The Python Implementation:
The Python result is:
Any ideas on the reason for this difference? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @NiBoyang, |
Beta Was this translation helpful? Give feedback.
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