Description Usage Arguments Details Value Author(s) References Examples
Function to build SQLite database containing small molecule structures, properties and annotations.
1 | buildCMAPdb(rerun)
|
rerun |
Set |
...
SQLite database
Thomas Girke
ChemmineR: https://www.bioconductor.org/packages/release/bioc/html/ChemmineR.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Build database
library(RSQLite); library(ChemmineR)
buildCMAPdb(rerun=FALSE) # Set to TRUE
## Load database
mypath <- system.file("extdata", "cmap.db", package="longevityDrugs")
conn <- initDb(mypath)
## Query database
results <- getAllCompoundIds(conn)
sdfset <- getCompounds(conn, results, keepOrder=TRUE)
sdfset
as.data.frame(datablock2ma(datablock(sdfset)))[1:4,]
myfeat <- listFeatures(conn)
feat <- getCompoundFeatures(conn, results, myfeat)
feat[1:4,]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.