Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoerter authored Jan 30, 2024
1 parent b4afa72 commit f951fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This repository contains the code to run the model associated with the paper titled "*In silico* agent-based modeling approach to characterize multiple in vitro tuberculosis infection models". This model was written using Repast Simphony (https://repast.github.io/). We have included all model files, the slurm scripts we used to run job arrays on the HPC, and a script to process output in MATLAB.

## Code setup
The model runs with Repast Simphony version 2.8 and Java 11. The archived version of Repast Simphony can be downloaded at https://github.com/Repast/repast.simphony/releases. Next, follow the advice on this page https://repast.github.io/requirements.html to make sure you are using the correct Java version. Download Java 11 with hotspot from https://adoptopenjdk.net/. In Repast, select Eclipse -> Preferences -> Java -> Installed JREs -> Add…, then select adoptOpenJDK11, check, apply and close. Clone the repository, then in Repast File -> Open project from system files. The code can be run locally by using the gui that is opened with the green play button.
The model runs with Repast Simphony version 2.8 and Java 11. The archived version of Repast Simphony can be downloaded at https://github.com/Repast/repast.simphony/releases. Next, follow the advice on this page https://repast.github.io/requirements.html to make sure you are using the correct Java version. Download Java 11 with hotspot from https://adoptopenjdk.net/. In Repast, select Eclipse -> Preferences -> Java -> Installed JREs -> Add…, then select adoptOpenJDK11, check, apply and close. Clone this repository, then in Repast File -> Open project from system files. The code can be run locally by using the gui that is opened with the green play button.

## How to run model on HPC
To prepare the model, you must select 'Configure and launch batch runs' in the gui. Generate the batch parameter file and select 'Create model archive for batch runs'. This will create a jar file containing everything needed to run the model on the cluster, which is complete_model.jar in the output folder. This jar file needs to be uploaded to the cluster along with the submission script and wrapper. The slurm submission script is repast.slurm.array, which uses the wrapper repastwrapper_slurm.array.sh. Job name, array size, and account all need to be updated in these files.
Expand Down

0 comments on commit f951fc9

Please sign in to comment.