Closed wmhcqw closed 3 years ago
Hi, yes, it is possible to set "usechirality" to True. The code should still work but I haven't tested it. However, the reason why I did not consider this option is that in this way two shingles representing the same substructure with different chirality would be considered as 100% different, which I am not sure it is necessarily a good idea. Probably implementing a second set of shingles that would account only for chirality (e.g "R|distance in bonds|S") to which one could give a desired weight would be a better option. If you experiment with MAP4 and chirality keep me updated, I am definitely curios. cheers, Alice
Thank you for your reply! Your code still works when I set isomericSmiles to True in my test cases.
However, the reason why I did not consider this option is that in this way two shingles representing the same substructure with different chirality would be considered as 100% different, which I am not sure it is necessarily a good idea.
Indeed, I found this problem during my experiments. I do want to distinguish molecules with different chirality but they got too far in representation (like I mentioned above, 103 dim different with only one chirality different), which is unexpected.
...Probably implementing a second set of shingles that would account only for chirality (e.g "R|distance in bonds|S") to which one could give a desired weight would be a better option.
This is a good idea! I will try it in the future.
If you experiment with MAP4 and chirality keep me updated, I am definitely curios.
Of course! You shall close this issue for now. I may reopen it one day if I get some progress. 🍻
First, thank you for your awesome work!
I'm wondering why you set
isomericSmiles=False
in filemap4.py
at Line 15.From my perspective, the stereochemistry information is quite important in Molecular representation. In repo
rdkit
, there is an optional argument calleduseChirality
when obtain Morgan Fingerprint.So, if the code still works if I manually set
isomericSmiles
to True?Test Code Below