topology.utils

topology.utils

Functions

Name Description
get_is_reactive_predicate_f Returns whether a moleculetype name is configured to be recognized as reactive.
get_moleculetype_atomics Get content of subsections (atoms/bonds/angles etc.) of a moleculetype from a topology dict.
get_moleculetype_header Get content of the header of a moleculetype from a topology dict.
get_protein_section Get content of a section in the first moleculetype (protein) from a topology dict.
get_reactive_section Get content of a section in the Reactive moleculetype from a topology dict.
get_top_section Get content of a section from a topology dict.
is_not_solvent_or_ion Returns whether a moleculetype name is not solvent or ion.
set_moleculetype_atomics Set content of the atomics (atoms/bonds/angles etc.) of a moleculetype from a topology dict.
set_protein_section Set content of a section in the first moleculetype (protein) from a topology dict.
set_reactive_section Set content of a section in the first moleculetype (protein) from a topology dict.
set_top_section Set content of a section from a topology dict.

get_is_reactive_predicate_f

topology.utils.get_is_reactive_predicate_f(cfg)

Returns whether a moleculetype name is configured to be recognized as reactive.

get_moleculetype_atomics

topology.utils.get_moleculetype_atomics(top, moleculetype)

Get content of subsections (atoms/bonds/angles etc.) of a moleculetype from a topology dict.

Resolves any #ifdef statements by check in the top[‘define’] dict and chooses the ‘content’ or ‘else_content’ depending on the result.

get_moleculetype_header

topology.utils.get_moleculetype_header(top, moleculetype)

Get content of the header of a moleculetype from a topology dict.

Resolves any #ifdef statements by check in the top[‘define’] dict and chooses the ‘content’ or ‘else_content’ depending on the result.

get_protein_section

topology.utils.get_protein_section(top, name)

Get content of a section in the first moleculetype (protein) from a topology dict.

get_reactive_section

topology.utils.get_reactive_section(top, name)

Get content of a section in the Reactive moleculetype from a topology dict.

get_top_section

topology.utils.get_top_section(top, name, moleculetype=None)

Get content of a section from a topology dict.

Resolves any #ifdef statements by check in the top[‘define’] dict and chooses the ‘content’ or ‘else_content’ depending on the result.

is_not_solvent_or_ion

topology.utils.is_not_solvent_or_ion(name)

Returns whether a moleculetype name is not solvent or ion.

set_moleculetype_atomics

topology.utils.set_moleculetype_atomics(top, name, atomics, create=False)

Set content of the atomics (atoms/bonds/angles etc.) of a moleculetype from a topology dict.

Resolves any #ifdef statements by check in the top[‘define’] dict and chooses the ‘content’ or ‘else_content’ depending on the result.

If create is True, a new section is created if it does not exist.

set_protein_section

topology.utils.set_protein_section(top, name, value)

Set content of a section in the first moleculetype (protein) from a topology dict.

set_reactive_section

topology.utils.set_reactive_section(top, name, value)

Set content of a section in the first moleculetype (protein) from a topology dict.

set_top_section

topology.utils.set_top_section(top, name, value, moleculetype=None)

Set content of a section from a topology dict.

Resolves any #ifdef statements by check in the top[‘define’] dict and chooses the ‘content’ or ‘else_content’ depending on the result.

Back to top