Closed allaway closed 6 years ago
Specifically updated cdk jars to enable chirality perception using circular fingerprints (in version 2.1.1 of cdk).
library(rcdk) library(fingerprint) getInputFingerprint <- function(input, type) { input.mol <- parse.smiles(as.character(input)) lapply(input.mol, do.typing) lapply(input.mol, do.aromaticity) lapply(input.mol, do.isotopes) lapply(input.mol, get.fingerprint, type = type) } alanine <- c("N[C@@H](C)C(=O)O","N[C@H](C)C(=O)O") alanine.fp <- getInputFingerprint(alanine, "circular") distance(alanine.fp[[1]], alanine.fp[[2]])
Result: [1] 0.7333333
[1] 0.7333333
I'm unsure what the contribution standards are for rcdk, but I wanted to share that this was an easy fix and that it does work for stereochemistry detection.
Thanks - didn't realize this was on by default. Merged into master
Specifically updated cdk jars to enable chirality perception using circular fingerprints (in version 2.1.1 of cdk).
Result:
[1] 0.7333333
I'm unsure what the contribution standards are for rcdk, but I wanted to share that this was an easy fix and that it does work for stereochemistry detection.