class Chem::Topology::Templates::Builder
Defined in:
chem/topology/templates/builder.cr
Constant Summary
-
ATOM_NAME_PATTERN =
"[A-Z]{1,3}[0-9]{0,2}"
-
ATOM_SEP_REGEX =
/(?<=[A-Z0-9\)\]])#{BOND_ORDER_PATTERN}(?=[A-Z0-9])/
-
ATOM_SPEC_REGEX =
/(#{ATOM_NAME_PATTERN})(\[([A-Z][a-z]?)\])?([\+-]\d?)?(\((\d)\))?/
-
BOND_ORDER_PATTERN =
"[-=#]"
-
BOND_REGEX =
/(#{ATOM_NAME_PATTERN})(#{BOND_ORDER_PATTERN})(#{ATOM_NAME_PATTERN})/
Constructors
Class Method Summary
Instance Method Summary
Constructor Detail
Class Method Detail
Instance Method Detail
def
branch(spec : String)
#
def
code(char :
Char) : Nil
#
def
cycle(spec : String)
#
def
description(name : String)
#
def
link_adjacent_by(spec : String)
#
def
main(spec : String)
#
def
name(name : String)
#
def
names(*names : String)
#
def
remove_atom(atom_name : String)
#
def
root(atom_name : String)
#
def
sidechain(spec : String)
#