struct
Chem::PDB::Info
- Chem::PDB::Info
- Struct
- Value
- Object
Overview
Gather, check and annotate types registering a format
Defined in:
chem/formats/pdb.crchem/register_format.cr
Constructors
- .from_pdb(io : IO) : self
- .from_pdb(path : Path | String) : self
- .read(input : IO | Path | String, format : Chem::PDB.class) : self
-
.read(input : IO | Path | String, format) : self
FIXME Make it compile time error.
- .read(path : IO | Path | String) : self
Instance Method Summary
-
#cell : Spatial::Parallelepiped | Nil
Unit cell of the structure if present in the header, else
nil. -
#experiment : Structure::Experiment | Nil
Experimental information of the structure if present in the header, else
nil. -
#sec_records : Array(SecondaryStructureRecord)
List of secondary structure (HELIX and SHEET) records.
-
#title : String
Title of the structure.
Constructor Detail
FIXME Make it compile time error. Should raise if format is not registered or format is incompatible with open_type. Better create an override with the other formats, and leave this as a fallback.
Instance Method Detail
def cell : Spatial::Parallelepiped | Nil
#
Unit cell of the structure if present in the header, else nil.
def experiment : Structure::Experiment | Nil
#
Experimental information of the structure if present in the header, else nil.
List of secondary structure (HELIX and SHEET) records.