struct
Chem::Structure::Experiment
- Chem::Structure::Experiment
- Struct
- Value
- Object
Overview
Gather, check and annotate types registering a format
Defined in:
chem/core/structure/experiment.crchem/register_format.cr
Constructors
- .from_pdb(io : IO) : self
- .from_pdb(path : Path | String) : self
- .new(title : String, method : Method, resolution : Float64 | Nil, pdb_accession : String, deposition_date : Time, doi : String | Nil)
- .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
- #deposition_date : Time
- #doi : String | Nil
- #method : Method
- #pdb_accession : String
- #resolution : Float64 | Nil
- #title : String
Constructor Detail
def self.new(title : String, method : Method, resolution : Float64 | Nil, pdb_accession : String, deposition_date : Time, doi : String | Nil)
#
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.