rdkit-rs / rdkit

RDKit Made Idiomatic for Rust
12 stars 9 forks source link

Nonsensical atom indices being returned by substruct_match in rdkit #20

Open JJ-Pineda opened 7 months ago

JJ-Pineda commented 7 months ago

The substruct_match method in rdkit seems to be returning a vec of random indices.

The expected behavior is that substruct_match should return a vec where each entry denotes a matched atom pair (i.e. one atom from the first compound, and the matching atom from the second compound). However, the numbers being returned by substruct_match are large and random such that they can't possibly be denoting atom indices. Perhaps a pointer is getting misdirected somewhere?

This is a bit critical as we need this method to compare mols and smarts and ultimately standardize compounds.