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 6.6 years ago
Belgium

I downloaded some information from KEGG using KEGGREST:

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 • 2.4k views
ADD COMMENT
1
Entering edit mode
Thomas Girke ★ 1.7k
@thomas-girke-993
Last seen 9 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

ADD COMMENT
0
Entering edit mode

Thank you incredibly much, this is wonderful.

ADD REPLY

Login before adding your answer.

Traffic: 963 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6