## 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
## Manually create a duplication (here compound 1 and 10)
db[10] <- db[1]
## Find duplication
dup <- cmp.duplicated(db)
dup
cid(db[dup])
## Remove all duplications
db <- db[!dup]
Run the code above in your browser using DataLab