## Instances of SDFset class
data(sdfsample)
sdfset <- sdfsample
## Create bond matrix for first two molecules in sdfset
conMA(sdfset[1:2], exclude=c("H"))
## Return bond matrix for first molecule and plot its structure with atom numbering
conMA(sdfset[[1]], exclude=c("H"))
plot(sdfset[1], atomnum = TRUE, noHbonds=FALSE , no_print_atoms = "", atomcex=0.8)
## Return number of non-H bonds for each atom
rowSums(conMA(sdfset[[1]], exclude=c("H")))
Run the code above in your browser using DataLab