Skip to main content

Definition

The pLDDT energy is the negated mean pLDDT over the specified residue groups. EpLDDT=1NGαGpLDDTαE_{\mathrm{pLDDT}} = -\frac{1}{N_G} \sum_{\alpha \in G} \mathrm{pLDDT}_\alpha
  • GG is the set of residues in the specified groups
  • NGN_G is the number of residues in GG
  • pLDDTα\mathrm{pLDDT}_\alpha is the predicted local distance difference test score for residue α\alpha

Parameters

oracle
FoldingOracle
required
The oracle to use for the energy term.
residues
list[Residue] | None
required
Which residues to include in the calculation.
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()

# Maximize pLDDT confidence for a specific group of residues (e.g. a binder)
plddt_energy = bg.energies.PLDDTEnergy(
    oracle=esmfold,
    residues=residues_binder,
    weight=5.0,
)

# Add to a state alongside other energy terms
state = bg.State(
    chains=[binder_chain, target_chain],
    energy_terms=[plddt_energy],
    name="my_state",
)