Skip to main content

Definition

The globular energy is the standard deviation of backbone atom distances from the group centroid, promoting spherical compactness. Eglob=std(xac)aGE_{\mathrm{glob}} = \mathrm{std}\left(\| \mathbf{x}_a - \mathbf{c} \|\right)_{a \in G}
  • xa\mathbf{x}_a are backbone atom positions
  • c\mathbf{c} is the centroid of the backbone atoms in the group
  • std\mathrm{std} is the standard deviation over all backbone atoms in the group GG

Parameters

oracle
Oracle
required
The oracle to use for the energy term.
residues
list[Residue] | None
default:"None"
Which residues to include in the calculation. Considers all residues by default.
inheritable
bool
default:"True"
If a new residue is added next to a residue included in this energy term, this dictates whether that new residue could then be added to this energy term.
weight
float
default:"1.0"
The weight of the energy term.
name
str | None
default:"None"
Optional name to append to the energy term name.

Methods

compute

Parameters
oracles_result
OraclesResultDict
required

Example

import bagel as bg

# Create the folding oracle
esmfold = bg.oracles.ESMFold()

# Drive the structure toward a compact, spherical shape
globular = bg.energies.GlobularEnergy(
    oracle=esmfold,
    residues=residues,
    weight=1.0,
)

# Add to a state
state = bg.State(
    chains=[chain],
    energy_terms=[globular],
    name="my_state",
)