read.SDFstr: SD file to 'SDFstr'

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Imports one or many molecules from an SD/MOL file and stores it in an SDFstr container.

Usage

1
read.SDFstr(sdfstr)

Arguments

sdfstr

path/name to an SD file; alternatively one can pass on a character vector containing lines of an SD file

Details

...

Value

SDFstr

for details see ?"SDFstr-class"

Author(s)

Thomas Girke

References

SDF format defintion: http://www.symyx.com/downloads/public/ctfile/ctfile.jsp

See Also

Functions: read.SDFset

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Write instance of SDFstr class to SD file
data(sdfsample); sdfset <- sdfsample
sdfstr <- as(sdfset, "SDFstr")
# write.SDF(sdfset[1:4], file="sub.sdf")

## Import SD file 
# read.SDFstr("sub.sdf")

## Pass on SDFstr object
sdfstr <- as(sdfset, "SDFstr")
read.SDFset(sdfstr) 

girke-lab/ChemmineR-release documentation built on May 17, 2019, 5:26 a.m.