Chem::Templates::Builder
Inherits Reference / Object
TODO: add docs (include checks)
Constructors
new(spec_aliases : Hash(String, String) | Nil = nil)
SourceClass methods
Returns the atom with the highest bonding complexity.
The bonding complexity of an atom depends on the nature of the atom, the bonds, and the bonds of its neighbors.
First, carbon atoms are the most frequent so they have the lowest complexity (0), followed by non-carbon atoms (+1), and then non-organic (not CHON) atoms (+2). Hydrogen atoms are ignored.
The complexity is further increased by the number of bonds with other heavy atoms, i.e., bonds X-H are ignored.
The total complexity of an atom is computed as the sum of its complexity and the complexities of the bonded atoms.
Instance methods
build
Sourcedescription(name : String) : self
Sourcelink_adjacent_by(bond_spec : String) : self
Sourcename(*names : String) : self
Sourcenames(*names : String) : self
Sourceroot(atom_name : String) : self
Sourcespec(spec : String) : self
Sourcesymmetry(*pairs : Tuple(String, String)) : self
Sourcetype(type : ResidueType) : self
Source