Run
AmberRunPrep()
¶
Bases: SimulationRunPrep
Prepares files for Amber simulations
get_stage_input_lines(context)
classmethod
¶
get_stage_run_command(context)
classmethod
¶
Prepare bash command to run a single Amber simulation using pmemd.
PARAMETER | DESCRIPTION |
---|---|
context |
Specifies options and parameters. |
RETURNS | DESCRIPTION |
---|---|
list[str]
|
Bash commands in a list to run one stage of a simulation. |
Notes:
prepare_context
should be ran before this.
Uses:
The following attributes are possibly used here and should be specified in
simulation_context
.
stage_name
: Unique label for this simulation stage. This will be used to build file paths.input_path
: Path to input file for this Amber simulations.output_dir
: Path to final output directory.scratch_dir
: Path to scratch directory if desired. Will run the calculations here and then copy tooutput_dir
.compute_platform
: Computational platform to run the simulation on.cpu_cores
: Number of cores to use formpi
simulations if requested.
prepare(simulation_context)
classmethod
¶
Run all steps to prepare simulations.
PARAMETER | DESCRIPTION |
---|---|
simulation_context |
Context manager for simulations.
TYPE:
|
prepare_context(simulation_context)
staticmethod
¶
Preprocessing and validating of context for Amber simulations.
PARAMETER | DESCRIPTION |
---|---|
simulation_context |
Context manager for simulations.
TYPE:
|
prepare_stage(context, run_commands=None, write=True)
classmethod
¶
Write input files for a simulation stage and builds bash commands to run all splits.
PARAMETER | DESCRIPTION |
---|---|
context |
Specifies options and parameters. |
run_commands |
Cumulative run commands for all desired stages. |
write |
Write input file to disk.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
list[str]
|
Input file lines for this stage. |
list[str]
|
Updated |
Notes:
prepare_context
should be ran before this.