How do I convert kegg info on drug to a format allowing me to calculate similarities?
2
0
Entering edit mode
Joris.Meys • 0
@jorismeys-8048
Last seen 3.5 years ago
Belgium

library(KEGGREST)
query <- keggGet(c("D00040", "D00066"))


Now I want to be able to convert this to the ChemmineR SDF format so I can use the fmcsBatch function from fmcsr. Problem is that I'm not terribly familiar with these formats, and looking at the structure of the sdfsample data didn't really help either...

library(ChemmineR)
data(sdfsample)
str(sdfsample[1])
#> Formal class 'SDFset' [package "ChemmineR"] with 2 slots
#>  ..@ SDF:List of 1
#>  .. ..\$ :Error in FUN(X[[i]], ...) :
#>  no slot of name "version" for this object of class "SDF"


Anyone who can give me some pointers? I'd be happy with extracting eg the pubChem IDs and finding a way to download the sdf files from there. But doing so manually is not really an option.

keggrest chemminer fmcsr graph • 812 views
1
Entering edit mode
Thomas Girke ★ 1.7k
@thomas-girke-993
Last seen 8 months ago
United States

Many options exist to address this need. Here are just a few using your specific example: https://gist.github.com/tgirke/fb4d7ab4cc555968b521f4d8e624cd79.

Thomas

0
Entering edit mode

Thank you incredibly much, this is wonderful.