struct Chem::Structure::Experiment

Overview

Gather, check and annotate types registering a format

Defined in:

chem/core/structure/experiment.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.new(title : String, method : Method, resolution : Float64 | Nil, pdb_accession : String, deposition_date : Time, doi : String | Nil) #

[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 deposition_date : Time #

[View source]
def doi : String | Nil #

[View source]
def method : Method #

[View source]
def pdb_accession : String #

[View source]
def resolution : Float64 | Nil #

[View source]
def title : String #

[View source]