utils.py¶
submit_analyze_outputs(exp, t='01:00:00', memG=10)
¶
Submits a job to analyze malaria simulation outputs using SLURM.
This function generates a shell script to run the analysis and submits it to the SLURM workload manager with dependencies on a specified job.
Parameters: |
|
---|
Returns: |
|
---|
Source code in malariasimulation\utils.py
submit_run_malariasimulation(exp)
¶
Submits a malariasimulation job for execution on different platforms.
This function prepares the necessary scripts and submits the malariasimulation job based on the specified HPC configuration. If the job is to be run locally, it generates the required PowerShell script for running malariasimulation and submits it for execution. For SLURM-based jobs, it delegates the submission to the SLURM-specific function.
Parameters: |
|
---|
Raises: |
|
---|
Source code in malariasimulation\utils.py
submit_run_malariasimulation_slurm(exp)
¶
Submits a SLURM array job to run malaria simulations using an R script.
This function generates a shell script to execute the malaria simulation for a specified number of experiments and submits it to the SLURM workload manager. It also triggers the submission of an analysis job after the simulations are submitted.
Parameters: |
|
---|
Returns: |
|
---|
Source code in malariasimulation\utils.py
write_ps1_malariasimulation(exp)
¶
Creates a PowerShell script to run malariasimulation simulations (sequentially) locally.
This function generates a PowerShell script that: 1. Sets job parameters, including the path to the malariasimulation executable and the job directory. 2. Ensures the log directory exists, creating it if necessary. 3. Iterates over all experiments, running the malariasimulation for each one using the specified R script. 4. Logs the output and errors to respective log files.
Parameters: |
|
---|
Raises: |
|
---|
Source code in malariasimulation\utils.py
write_sh_malariasimulation(exp)
¶
Creates a shell script to run malariasimulation simulations (sequentially) locally.
This function generates a shell script that: 1. Sets job parameters, including the path to the OpenMalaria executable and the job directory. 2. Ensures the log directory exists, creating it if necessary. 3. Iterates over all experiments, running the OpenMalaria simulation for each one. 4. Logs the output and errors to respective log files.
Parameters: |
|
---|
Raises: |
|
---|