Folding atom pair count fingerprint #7223
-
Hi, I want to know how does rdkit fold a sparse atom pair count fingerprint into a fingerprint of given fpSize. I know that for the bit-vector fingerprint this is done by taking the modulo operation. But I find that this is not the case for the atom pair count fingerprint. To illustrate:
{1311: 1, 1375: 2}
{541730: 1, 558113: 2}
1058 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Haonan-Zhang, with the atom pair and topological torsion fingerprints it is possible to generate a bit position for an atom environment (one atom pair or one torsion) directly from the environment itself. This is what you get when you call FYI, the Morgan fingerprints behave as you would expect: there is only one hashing step involved there:
|
Beta Was this translation helpful? Give feedback.
Hi Greg,
Thanks for your comment. Although I still don't get the hash function for the count fingerprint, I manage to create the hashed (folded) BP fingerprint by using the old fingerprint function:
I notice that GetAtomPairGenerator also has an atomInvariantsGenerator argument, but…