GOMC parsing
Parsers for extracting alchemical data from GOMC output files.
- alchemlyb.parsing.gomc.extract_u_nk(filename: str, T: float) DataFrame[source]
Return reduced potentials u_nk from a Hamiltonian differences dat file.
- Parameters:
- Returns:
u_nk – Potential energy for each alchemical state (k) for each frame (n).
- Return type:
Changed in version 0.5.0: The
scipy.constantsis used for parsers instead of the constants used by the corresponding MD engine.
- alchemlyb.parsing.gomc.extract_dHdl(filename: str, T: float) DataFrame[source]
Return gradients dH/dl from a Hamiltonian differences free energy file.
- Parameters:
- Returns:
dH/dl – dH/dl as a function of step for this lambda window.
- Return type:
Changed in version 0.5.0: The
scipy.constantsis used for parsers instead of the constants used by the corresponding MD engine.
- alchemlyb.parsing.gomc.extract(filename: str, T: float) dict[str, DataFrame | None][source]
Return reduced potentials u_nk and gradients dH/dl from a Hamiltonian differences free energy file.
- Parameters:
- Returns:
A dictionary with keys of ‘u_nk’, which is a
DataFrameof potential energy for each alchemical state (k) for each frame (n), and ‘dHdl’, which is aSeriesof dH/dl as a function of time for this lambda window.- Return type:
Added in version 1.0.0.
The parsers featured in this module are constructed to properly parse GOMC free energy output files, containing the Hamiltonian derivatives (\(\frac{dH}{d\lambda}\)) for TI-based estimators and Hamiltonian differences (\(\Delta H\) for all lambda states in the alchemical leg) for FEP-based estimators (BAR/MBAR).
API Reference
This submodule includes these parsing functions:
- alchemlyb.parsing.gomc.extract_dHdl(filename: str, T: float) DataFrame[source]
Return gradients dH/dl from a Hamiltonian differences free energy file.
- Parameters:
- Returns:
dH/dl – dH/dl as a function of step for this lambda window.
- Return type:
Changed in version 0.5.0: The
scipy.constantsis used for parsers instead of the constants used by the corresponding MD engine.
- alchemlyb.parsing.gomc.extract_u_nk(filename: str, T: float) DataFrame[source]
Return reduced potentials u_nk from a Hamiltonian differences dat file.
- Parameters:
- Returns:
u_nk – Potential energy for each alchemical state (k) for each frame (n).
- Return type:
Changed in version 0.5.0: The
scipy.constantsis used for parsers instead of the constants used by the corresponding MD engine.
- alchemlyb.parsing.gomc.extract(filename: str, T: float) dict[str, DataFrame | None][source]
Return reduced potentials u_nk and gradients dH/dl from a Hamiltonian differences free energy file.
- Parameters:
- Returns:
A dictionary with keys of ‘u_nk’, which is a
DataFrameof potential energy for each alchemical state (k) for each frame (n), and ‘dHdl’, which is aSeriesof dH/dl as a function of time for this lambda window.- Return type:
Added in version 1.0.0.