prepare
#
Preparing systems ready for simulation.
Functions:
-
load_ligand
–Load a ligand from disk.
-
load_ligands
–Load the first, and optionally second, ligand from disk.
-
load_receptor
–Loads a receptor from disk.
-
apply_hmr
–Apply hydrogen mass repartitioning to a system.
-
prepare_system
–Solvates and parameterizes a system.
load_ligand
#
load_ligand(
path: Path, residue_name: str = "LIG"
) -> Topology
Load a ligand from disk.
Parameters:
-
path
(Path
) –The path to the ligand file (.sdf, .mol2)
-
residue_name
(str
, default:'LIG'
) –The residue name to assign to the ligand.
Returns:
-
Topology
–The loaded ligand
Source code in femto/md/prepare.py
load_ligands
#
Load the first, and optionally second, ligand from disk.
Parameters:
-
ligand_1_path
(Path
) –The path to the first ligand.
-
ligand_2_path
(Path | None
) –The (optional) path of the second ligand.
Returns:
Source code in femto/md/prepare.py
load_receptor
#
load_receptor(path: Path) -> Topology
Loads a receptor from disk.
Parameters:
-
path
(Path
) –The path to the receptor (.pdb, .mol2, .sdf).
Returns:
-
Topology
–The loaded receptor.
Source code in femto/md/prepare.py
apply_hmr
#
apply_hmr(
system: System,
topology: Topology,
hydrogen_mass: Quantity = 1.5 * amu,
)
Apply hydrogen mass repartitioning to a system.
Parameters:
-
system
(System
) –The system to modify in-place.
-
topology
(Topology
) –The topology of the system.
-
hydrogen_mass
(Quantity
, default:1.5 * amu
) –The mass to use ofr hydrogen atoms.
Source code in femto/md/prepare.py
prepare_system
#
prepare_system(
receptor: Topology | None,
ligand_1: Topology | None,
ligand_2: Topology | None,
cofactors: list[Topology] | None = None,
config: Prepare | None = None,
ligand_1_offset: Quantity | None = None,
ligand_2_offset: Quantity | None = None,
cavity_formers: list[Topology] | None = None,
extra_params: list[Path] | None = None,
) -> tuple[Topology, System]
Solvates and parameterizes a system.
Parameters:
-
receptor
(Topology | None
) –A receptor to include in the system.
-
ligand_1
(Topology | None
) –A primary ligand to include in the system.
-
ligand_2
(Topology | None
) –A secondary ligand to include in the system if doing RBFE.
-
cofactors
(list[Topology] | None
, default:None
) –Any cofactors to include in the system.
-
config
(Prepare | None
, default:None
) –Configuration options for the preparation.
-
ligand_1_offset
(Quantity | None
, default:None
) –The amount to offset the first ligand by before computing the box size if using a padded box.
-
ligand_2_offset
(Quantity | None
, default:None
) –The amount to offset the second ligand by before computing the box size if using a padded box.
-
cavity_formers
(list[Topology] | None
, default:None
) –A (optional) list of topologies that should be considered 'present' when placing the solvent molecules such that they leave cavities, but are not added to the final topology themselves.
Note that cavity formers will be considered when determining the box size.
-
extra_params
(list[Path] | None
, default:None
) –The paths to any extra parameter files (.xml, .parm) to use when parameterizing the system.
Returns:
-
tuple[Topology, System]
–The solvated and parameterized topology and system, containing the ligands, the receptor, cofactors, ions and solvent.
Source code in femto/md/prepare.py
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 |
|