- class openfe.protocols.openmm_rfe.equil_rfe_methods.RelativeHybridTopologyProtocolResult(**data)#
Protocol results with the output of a RelativeHybridTopologyProtocol.
- get_estimate() Quantity#
Average free energy difference of this transformation
- Returns:
dG – The free energy difference between the first and last states. This is a Quantity defined with units.
- Return type:
- get_uncertainty() Quantity#
The uncertainty/error in the dG value: The unbiased sample std of the estimates of each independent repeat
- get_individual_estimates() list[tuple[Quantity, Quantity]]#
Return a list of tuples containing the individual free energy estimates and associated MBAR errors for each repeat.
- Returns:
dGs – n_replicate simulation list of tuples containing the free energy estimates (first entry) and associated MBAR estimate errors (second entry).
- Return type:
- get_forward_and_reverse_energy_analysis() list[dict[str, ndarray[tuple[Any, ...], dtype[_ScalarT]] | Quantity] | None]#
Get a list of forward and reverse analysis of the free energies for each repeat using uncorrelated production samples.
The returned dicts have keys: ‘fractions’ - the fraction of data used for this estimate ‘forward_DGs’, ‘reverse_DGs’ - for each fraction of data, the estimate ‘forward_dDGs’, ‘reverse_dDGs’ - for each estimate, the uncertainty
The ‘fractions’ values are a numpy array, while the other arrays are Quantity arrays, with units attached. A fraction at which MBAR failed to converge is recorded as
NaNin both directions.A list entry is
Noneonly when MBAR could not obtain an estimate from the full set of uncorrelated samples (the fraction 1.0 estimate, i.e. the reported free energy) for that repeat. If MBAR fails only at a lower fraction, that fraction is recorded asNaNand the remaining fractions are retained, so the entry is still a dictionary.- Returns:
forward_reverse
- Return type:
list[Optional[dict[str, Union[npt.NDArray, openff.units.Quantity]]]]
- Raises:
UserWarning – If any of the forward and reverse entries are
None.
- get_overlap_matrices() list[dict[str, ndarray[tuple[Any, ...], dtype[_ScalarT]]]]#
Return a list of dictionary containing the MBAR overlap estimates calculated for each repeat.
- Returns:
overlap_stats –
- A list of dictionaries containing the following keys:
scalar: One minus the largest nontrivial eigenvalueeigenvalues: The sorted (descending) eigenvalues of the overlap matrixmatrix: Estimated overlap matrix of observing a sample from state i in state j
- Return type:
- get_replica_transition_statistics() list[dict[str, ndarray[tuple[Any, ...], dtype[_ScalarT]]]]#
The replica lambda state transition statistics for each repeat.
Note
This is currently only available in cases where a replica exchange simulation was run.
- get_replica_states() list[ndarray[tuple[Any, ...], dtype[_ScalarT]]]#
Returns the timeseries of replica states for each repeat.
- Returns:
replica_states – List of replica states for each repeat
- Return type:
List[npt.NDArray]
- equilibration_iterations() list[float]#
Returns the number of equilibration iterations for each repeat of the calculation.
- production_iterations() list[float]#
Returns the number of uncorrelated production samples for each repeat of the calculation.