HybridTopProtocolResult#
- class pontibus.protocols.relative.HybridTopProtocolResult(**data)#
Results class for the HybridTopologyProtocol class. Inherits from
openfe.protocols.openmm_rfe.RelativeHybridTopologyProtocolResult.- property data: dict[str, Any]#
Aggregated data contents from multiple ProtocolDAGResult instances.
The structure of this data is specific to the Protocol subclass each ProtocolResult subclass corresponds to.
- equilibration_iterations() list[float]#
Returns the number of equilibration iterations for each repeat of the calculation.
- 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_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.
If the list entry is
Noneinstead of a dictionary, this indicates that the analysis could not be carried out for that repeat. This is most likely caused by MBAR convergence issues when attempting to calculate free energies from too few samples.- 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_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_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_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]
- 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.