Skip to content

Types

Define the types of systems biology.

They are the rules of Boolean networks and their candidates.

AtomProtocol

Bases: Protocol

Atom of a chain in Biopython.

The extra structures holds Biopython.

BiopythonStructureProtocol

Bases: Protocol

Structure in Biopython.

The extra structures holds Biopython.

get_chains()

Return the chains of the systems of the structure.

Source code in src/skcomplex/systems/biology/systems_biology/types.py
90
91
def get_chains(self) -> Iterator[ChainProtocol]:
    """Return the chains of the systems of the structure."""

ChainProtocol

Bases: Protocol

Chain of a structure in Biopython.

The extra structures holds Biopython. Its atom_to_internal_coordinates reads the internal coordinates of the positions of the atoms, and its internal_to_atom_coordinates writes the positions of the atoms from them.

get_atoms()

Return the atoms of the chain.

Source code in src/skcomplex/systems/biology/systems_biology/types.py
80
81
def get_atoms(self) -> Iterator[AtomProtocol]:
    """Return the atoms of the chain."""

get_residues()

Return the residues of the chain.

Source code in src/skcomplex/systems/biology/systems_biology/types.py
77
78
def get_residues(self) -> Iterator[ResidueProtocol]:
    """Return the residues of the chain."""

InternalCoordinatesProtocol

Bases: Protocol

Internal coordinates of a residue in Biopython.

The extra structures holds Biopython.

get_angle(name)

Return the angle of a name in degrees, or None when the residue has none.

Parameters:

Name Type Description Default
name str

The name of the angle.

required

Returns:

Name Type Description
angle float | None

The angle in degrees, or None.

Source code in src/skcomplex/systems/biology/systems_biology/types.py
25
26
27
28
29
30
31
32
33
34
35
def get_angle(self, name: str) -> float | None:
    """Return the angle of a name in degrees, or `None` when the residue has none.

    Args:
        name:
            The name of the angle.

    Returns:
        angle:
            The angle in degrees, or `None`.
    """

set_angle(name, value)

Write the angle of a name in degrees.

Parameters:

Name Type Description Default
name str

The name of the angle.

required
value float

The angle.

required
Source code in src/skcomplex/systems/biology/systems_biology/types.py
37
38
39
40
41
42
43
44
45
46
def set_angle(self, name: str, value: float) -> None:
    """Write the angle of a name in degrees.

    Args:
        name:
            The name of the angle.

        value:
            The angle.
    """

ResidueProtocol

Bases: Protocol

Residue of a chain in Biopython.

The extra structures holds Biopython.