class Chem::Structure::Builder

Defined in:

chem/core/structure/builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(structure : Structure | Nil = nil, guess_topology : Bool = true) #

[View source]

Instance Method Detail

def atom(name : String, serial : Int32, coords : Spatial::Vector, **options) : Atom #

[View source]
def atom(element : Element | Symbol, coords : Spatial::Vector, **options) : Atom #

[View source]
def atom(name : String, coords : Spatial::Vector, **options) : Atom #

[View source]
def atom(coords : Spatial::Vector, **options) : Atom #

[View source]
def bond(name : String, other : String, order : Int = 1) : Bond #

[View source]
def bond(i : Int, j : Int, order : Int = 1, aromatic : Bool = false) : Bond #

[View source]
def bonds(bond_table : Hash(Tuple(Int32, Int32), Int32)) : Nil #

[View source]
def build : Structure #

[View source]
def chain(id : Char) : Chain #

[View source]
def chain : Chain #

[View source]
def chain(id : Char, & : self -> ) : Nil #

[View source]
def chain(& : self -> ) : Nil #

[View source]
def current_chain : Chain | Nil #

[View source]
def current_residue : Residue | Nil #

[View source]
def expt(expt : Structure::Experiment | Nil) #

[View source]

[View source]
def lattice(a : Float64, b : Float64, c : Float64) : Lattice #

[View source]
def lattice(lattice : Lattice | Nil) #

[View source]
def lattice : Lattice | Nil #

[View source]
def lattice! : Lattice #

[View source]
def residue(name : String, number : Int32, inscode : Char | Nil = nil) : Residue #

[View source]
def residue(name : String) : Residue #

[View source]
def residue : Residue #

[View source]
def residue(name : String, number : Int32, inscode : Char | Nil = nil, & : self -> ) : Nil #

[View source]
def residue(name : String, & : self -> ) : Nil #

[View source]
def secondary_structure(i : Tuple(Char, Int32, Char | Nil), j : Tuple(Char, Int32, Char | Nil), type : Protein::SecondaryStructure) : Nil #

[View source]
def secondary_structure(ri : Residue, rj : Residue, type : Protein::SecondaryStructure) #

[View source]
def seq(seq : Protein::Sequence | Nil) #

[View source]
def title(title : String) #

[View source]