ddg
#
Estimate ddG values from sampled data.
Modules:
-
femto
–A comprehensive toolkit for predicting free energies
Functions:
-
load_u_kn
–Loads the reduced potentials from a replica exchange sampler output file and
-
estimate_ddg
–Estimate the free energy change for each group of states as well as the total
load_u_kn
#
Loads the reduced potentials from a replica exchange sampler output file and re-orders / de-correlates them into a form acceptable by MBAR.
Note
Samples will be de-correlated using the pymbar.timeseries
module.
Parameters:
-
results_path
(Path
) –The path to the arrow replica exchange output file.
Returns:
-
tuple[ndarray, ndarray]
–The loaded
u_kn
andn_k
arrays.
Source code in femto/fe/ddg.py
estimate_ddg
#
estimate_ddg(
u_kn: ndarray,
n_k: ndarray,
temperature: Quantity,
state_groups: list[tuple[int, float]] | None = None,
) -> tuple[dict[str, float], dict[str, ndarray]]
Estimate the free energy change for each group of states as well as the total free energy change.
Parameters:
-
u_kn
(ndarray
) –The reduced potentials.
-
n_k
(ndarray
) –The number of samples per state.
-
temperature
(Quantity
) –The temperature at which the samples were collected.
-
state_groups
(list[tuple[int, float]] | None
, default:None
) –If certain states should be grouped together (e.g. leg 1 and leg 2 in ATM), this should be a list of tuples containing the number of states belonging to each group as well as the multiplier to use when summing the total free energy.
Returns:
-
tuple[dict[str, float], dict[str, ndarray]]
–The free energy estimates and the overlap matrices.