Open GoogleCodeExporter opened 9 years ago
I just noticed that I can use 'MACCS' ad fingerprint type both in webel and
rdk, so I can use the same fingerprint type for all of them. Maybe pybel should
be case insensitive too, anyway.
Original comment by ssorga...@gmail.com
on 5 Jan 2012 at 1:55
These are all good points.
1 - (After reading Comment 1) I'll look into this for pybel.
2 - That is an interesting suggestion. But I think it only applies to MACCS,
right? In all other cases, it doesn't make sense to compare fingerprints (maybe
I should raise an error message). For MACCS keys, you can compare
set(myfp.bits) and set(myotherfp.bits).
3 - The Webel webservice uses the CDK for the fingerprint.
Original comment by baoille...@gmail.com
on 5 Jan 2012 at 2:20
Thank you.
I've ended up wrapping the fingerprints in a new fingerprint class, keeping the
fp and bits attributes but using webel.Fingerprint's __or__
implementation,,which so far seems to return the same results as the original
fingerprint classes, but is now able to compare fingerprints of the same kind
generated in different toolkits (which, AFAIK, currently only happens to MACCS,
or are there any other fingerprints implemented by more than one toolkit?).
About point 3: it looks like someone has bug. I read somewhere that CDK MACCS
implementation was based on RDkit's, so CDK's is probably the buggy one. I'll
upgrade the CDK on my system (the version I have, 1.2.8, does not seem to
support MACCS) and I'll look into it and report bugs where appropiate.
Original comment by ssorga...@gmail.com
on 6 Jan 2012 at 7:03
Original issue reported on code.google.com by
ssorga...@gmail.com
on 5 Jan 2012 at 1:42