system
#
Utilities for preparing and modifying OpenMM systems.
Functions:
-
load_ligand–Load a ligand from its coordinate and parameter definition.
-
load_ligands–Load the first, and optionally second, ligand from their coordinates and
-
load_receptor–Loads a receptor from its coordinates and optionally parameters.
-
apply_hmr–Apply hydrogen mass repartitioning to a system.
load_ligand
#
load_ligand(
coord_path: Path,
param_path: Path,
residue_name: str | None = None,
) -> AmberParm
Load a ligand from its coordinate and parameter definition.
Parameters:
-
coord_path(Path) –The path to the ligand coordinate file (.rst7 / .mol2)
-
param_path(Path) –The path to the ligand parameter file (.parm7)
-
residue_name(str | None, default:None) –The (optional) residue name to assign to the ligand.
Returns:
-
AmberParm–The loaded ligand
Source code in femto/md/system.py
load_ligands
#
load_ligands(
ligand_1_coords: Path,
ligand_1_params: Path,
ligand_2_coords: Path | None,
ligand_2_params: Path | None,
) -> tuple[AmberParm, AmberParm | None]
Load the first, and optionally second, ligand from their coordinates and parameters.
Parameters:
-
ligand_1_coords(Path) –The coordinates of the first ligand.
-
ligand_1_params(Path) –The parameters of the first ligand.
-
ligand_2_coords(Path | None) –The (optional) coordinates of the second ligand.
-
ligand_2_params(Path | None) –The (optional) parameters of the second ligand.
Returns:
Source code in femto/md/system.py
load_receptor
#
load_receptor(
coord_path: Path,
param_path: Path | None,
tleap_sources: list[str] | None = None,
) -> AmberParm
Loads a receptor from its coordinates and optionally parameters.
If no parameters are provided, the receptor will be parameterized using tLeap.
Parameters:
-
coord_path(Path) –The coordinates of the receptor.
-
param_path(Path | None) –The parameters of the receptor.
-
tleap_sources(list[str] | None, default:None) –The tLeap sources to use to parameterize the receptor. See
femto.md.config.DEFAULT_TLEAP_SOURCESfor the defaults.
Returns:
-
AmberParm–The loaded receptor.
Source code in femto/md/system.py
apply_hmr
#
apply_hmr(
system: System,
topology: Structure,
hydrogen_mass: Quantity = 1.5 * openmm.unit.amu,
)
Apply hydrogen mass repartitioning to a system.
Parameters:
-
system(System) –The system to modify in-place.
-
topology(Structure) –The topology of the system.
-
hydrogen_mass(Quantity, default:1.5 * amu) –The mass to use ofr hydrogen atoms.