module
Chem::SDF
Defined in:
chem/formats/sdf.crClass Method Summary
-
.each(io : IO, & : Structure -> ) : Nil
Yields each structure in io.
-
.each(path : Path | String, & : Structure -> ) : Nil
Yields each structure in path.
-
.read(io : IO) : Structure
Returns the next structure from io.
-
.read(path : Path | String) : Structure
Returns the next structure from path.
-
.read_all(io : IO) : Array(Structure)
Returns all structures in io.
-
.read_all(path : Path | String) : Array(Structure)
Returns all structures in path.
-
.write(io : IO, struc : Structure, variant : Mol::Variant = :v2000) : Nil
Writes one or more structures to io.
-
.write(io : IO, structures : Enumerable(Structure), variant : Mol::Variant = :v2000) : Nil
Writes one or more structures to io.
-
.write(path : Path | String, struc : Structure, variant : Mol::Variant = :v2000) : Nil
Writes one or more structures to path.
-
.write(path : Path | String, structures : Enumerable(Structure), variant : Mol::Variant = :v2000) : Nil
Writes one or more structures to path.
Class Method Detail
Yields each structure in path.
Returns all structures in path.
Writes one or more structures to io.
The CTAB format is specified via variant: V2000 (legacy) or V3000.
Writes one or more structures to io.
The CTAB format is specified via variant: V2000 (legacy) or V3000.
Writes one or more structures to path.
The CTAB format is specified via variant: V2000 (legacy) or V3000.
Writes one or more structures to path.
The CTAB format is specified via variant: V2000 (legacy) or V3000.