Description Usage Arguments Details Value Author(s) References See Also Examples
Converts SDF
to SDFstr
. Its main use is to facilitate the export to SD files. It contains optional arguments to generate custom SDF output.
1 |
sdf |
object of class |
head |
optional |
ab |
optional |
bb |
optional |
db |
optional |
cid |
|
sig |
|
... |
option to pass on additional arguments |
If the export function write.SDF
is supplied with an SDFset
object, then sdf2str
is used internally to customize the export of many molecules to a single SD file using the same optional arguments.
sdfstr |
SDF data of one molecule collapsed to character vector |
Thomas Girke
SDF format definition: http://www.symyx.com/downloads/public/ctfile/ctfile.jsp
Coerce functions: sdfstr2list
, sdf2str
, SDFset2list
, SDFset2SDF
Export function: write.SDF
1 2 3 4 5 6 7 8 9 10 11 | ## Instance of SDF class
data(sdfsample); sdfset <- sdfsample
sdf <- sdfset[[1]]
## Customize SDF blocks for export to SD file
sdf2str(sdf=sdf, sig=TRUE, cid=TRUE) # uses default SDF components
sdf2str(sdf=sdf, head=letters[1:4], db=NULL) # uses custom components for header and datablock
## The same arguments can be supplied to the write.SDF function for
## batch export of custom SDFs
# write.SDF(sdfset[1:4], file="sub.sdf", sig=TRUE, cid=TRUE, db=NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.