SDF-class | R Documentation |
Container for storing every element of a single molecule defined in an SD/MOL
file without information loss in a list-like container. The import occurs via
the SDFstr
container class. The header block is stored as named
character vector, the atom/bond blocks as matrices and the data block as named
character vector.
Objects can be created by calls of the form new("SDF", ...)
.
header
:Object of class "character"
atomblock
:Object of class "matrix"
bondblock
:Object of class "matrix"
datablock
:Object of class "character"
obmolRef
:Object of class "ExternalReferenceOrNULL"
version
:Object of class "character"
signature(x = "SDF")
: subsetting of class with bracket operator
signature(x = "SDF")
: returns one of the four object components
signature(x = "SDF")
: replacement method for the four sub-components
signature(x = "SDF")
: replacement method for the four sub-components
signature(x = "SDF")
: returns atom block as matrix
signature(x = "SDF")
: returns atom frequency
signature(x = "SDF")
: returns bond block as matrix
signature(x = "SDF")
: returns an OBMol pointer
signature(from = "character", to = "SDF")
: as(character, "SDF")
signature(from = "list", to = "SDF")
: as(list, "SDF")
signature(from = "SDF", to = "character")
: as(sdf, "character")
signature(from = "SDF", to = "list")
: as(sdf, "list")
signature(from = "SDF", to = "SDFset")
: as(sdf, "SDFset")
signature(from = "SDF", to = "SDFstr")
: as(SDF, "SDFstr")
signature(from = "SDFset", to = "SDF")
: as(sdfset, "SDF")
signature(x = "SDF")
: returns data block as named character vector
signature(x = "SDF")
: returns data block as named character vector with subsetting support
signature(x = "SDF")
: returns header block as named character vector
signature(x = "SDF")
: plots molecule structure for SDF
object
signature(x = "SDF")
: returns SDF
object as list
signature(sdf = "SDF")
: returns SDF
object as character
vector
signature(x = "SDF")
: returns molecule ID field from header block
signature(object = "SDF")
: prints summary of SDF
Thomas Girke
SDF format definition: http://www.symyx.com/downloads/public/ctfile/ctfile.jsp
Related classes: SDFset, SDFstr, AP, APset
showClass("SDF")
## Instances of SDF class
data(sdfsample); sdfset <- sdfsample
(sdf <- sdfset[[1]]) # returns first molecule in sdfset as SDF object
## Accessing SDF components
header(sdf); atomblock(sdf); bondblock(sdf); datablock(sdf)
sdfid(sdf)
## Plot molecule structure of SDF
plot(sdf) # plots to R graphics device
# sdf.visualize(sdf) # viewing in browser
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.