## Note: this functionality has become obsolete since the introduction of the
## 'SDFset' and 'apset' S4 classes.
# load sample database from web
# db <- cmp.parse("http://bioweb.ucr.edu/ChemMineV2/static/example_db.sdf")
# select SDF for 1st and 2nd compound in that SDF
# sdf_segments <- sdf.subset(db, c(1, 2))
# now sdf_segments containt the 2 SDFs for those 2 compounds
Run the code above in your browser using DataLab