Definition
The FlexEvoBind energy computes the average minimum inter-atomic distance between two residue groups, adapted from the binding loss in Li et al. 2025. For each residue in group 1, the minimum distance to any atom in group 2 is found, and these minimum distances are averaged. Whensymmetrized=True (the default), the same calculation is performed from group 2 to group 1, and a weighted average of both directions is taken. When plddt_weighted=True, each direction is divided by its group’s average pLDDT, producing a formulation closer to the EvoBind loss.
Parameters
The oracle to use for the energy term.
A tuple containing two lists of residues, those to include in the first [0] and second [1] group.
A bool indicating whether the result need to be weighted by the plddt of the residues considered. If True, this definition is closer to the EvoBind energy in the reference below
A bool indicating whether or not the calculation of the minimum distances need to be symmetrized between residues in residued[0] and those in residues[1]. Otherwise the minimum distances are those between any atom in residues from residues[0] and those in residues in residues[1], but not vice versa.
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.
