Definition
The pLDDT energy is the negated mean pLDDT over the specified residue groups.
EpLDDT=−NG1α∈G∑pLDDTα
- G is the set of residues in the specified groups
- NG is the number of residues in G
- pLDDTα is the predicted local distance difference test score for residue α
Parameters
The oracle to use for the energy term.
residues
list[Residue] | None
required
Which residues to include in the calculation.
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.
The weight of the energy term.
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",
)