#create and initialize a new SQLite database
conn = initDb("test1.db")
data(sdfsample)
#load data
ids=loadSdf(conn,sdfsample,
function(sdfset)
data.frame(MW = MW(sdfset), rings(sdfset,type="count",upper=6, arom=TRUE))
)
f = getCompoundFeatures(conn,ids,c("mw","rings"))
unlink("test1.db")
Run the code above in your browser using DataLab