struct Chem::PDB::Info

Overview

Gather, check and annotate types registering a format

Defined in:

chem/formats/pdb.cr
chem/register_format.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_pdb(io : IO) : self #

[View source]
def self.from_pdb(path : Path | String) : self #

[View source]
def self.read(input : IO | Path | String, format : Chem::PDB.class) : self #

[View source]
def self.read(input : IO | Path | String, format) : self #

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.


[View source]
def self.read(path : IO | Path | String) : self #

[View source]

Instance Method Detail

def cell : Spatial::Parallelepiped | Nil #

Unit cell of the structure if present in the header, else nil.


[View source]
def experiment : Structure::Experiment | Nil #

Experimental information of the structure if present in the header, else nil.


[View source]
def sec_records : Array(SecondaryStructureRecord) #

List of secondary structure (HELIX and SHEET) records.


[View source]
def title : String #

Title of the structure.


[View source]