
Last chance! 50% off unlimited learning
Sale ends in
cmp.search(db, query, type=1, cutoff = 0.5, return.score = FALSE, quiet = FALSE,
mode = 1,visualize = FALSE, visualize.browse = TRUE, visualize.query = NULL)
cmp.parse1
, cmp.parse
,
cmp.search
, cmp.cluster
,
cmp.similarity
, sdf.visualize
## Load sample SD file
# data(sdfsample); sdfset <- sdfsample
## Generate atom pair descriptor database for searching
# apset <- sdf2ap(sdfset)
## Loads same atom pair sample data set provided by library
data(apset)
db <- apset
query <- db[1]
## Ooptinally, save the db for future use
save(db, file="db.rda", compress=TRUE)
## Search for similar compounds using similarity cutoff
cmp.search(db, query, cutoff=0.2, type=1) # returns index
cmp.search(db, query, cutoff=0.2, type=2) # returns named vector
cmp.search(db, query, cutoff=0.2, type=3) # returns data frame
## in the next session, you may use load a saved db and do the search:
load("db.rda")
cmp.search(db, query, cutoff=3)
## you may also use the loaded db to do clustering:
cmp.cluster(db, cutoff=0.35)
Run the code above in your browser using DataLab