-
I have learned that I can get details about certain bits in Mogan fingerprint, like which atom they match and even can draw corresponding structures in figures. But I wonder if I can do the same thing to MACCS fingerprint. I would like to know ,for a certain non-zero bit, where is the matched structure (its index in SMILES) or what exact substructure in the molecule was matched. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Because each bit's meaning is defined in quite a clear way in MACCS, it should be relatively straightforward to find out what the matching pattern is by just looking up the meaning of the specific bit. You can find the SMARTS pattern used for each MACCS bit in rdkit here: Line 39 in a9d6642 I haven't checked if there's some in built way to visualize the matching fragments, but if not, you can just use the above SMARTS and match it to the index of the on-bits of interest to visualize it. |
Beta Was this translation helpful? Give feedback.
Because each bit's meaning is defined in quite a clear way in MACCS, it should be relatively straightforward to find out what the matching pattern is by just looking up the meaning of the specific bit. You can find the SMARTS pattern used for each MACCS bit in rdkit here:
rdkit/rdkit/Chem/MACCSkeys.py
Line 39 in a9d6642
I haven't checked if there's some in built way to visualize the matching fragments, but if not, you can just use the above SMARTS and match it to the index of the on-bits of interest to visualize it.