This repository contains a C++ program that builds using CMake and Make.
Before running the program, ensure you have the following installed on your system:
- CMake (https://cmake.org/download/)
- Make (Usually available by default on Unix-like systems)
- C++ compiler (such as g++ for Linux or macOS, or Visual C++ for Windows)
- A Python Interpreter
If you are using Apple silicon, please ensure you have libomp
installed. You can install it via Homebrew:
$ brew install libomp
Follow these steps to build and run the program:
- Clone this repository to your local machine:
- If you are using Apple silicon please work with the model contained in _APPLE or _UNIX if you are using an alternative system.
$ git clone https://github.com/FinleyLabUSC/Boolean-TME-ABM.git
$ cd <_APPLE or _UNIX_>
$ cmake .
$ make
$ pip install -r requirements.txt
- This will build an executable runModel and install the necessary python packages to generate the parameter file. To run, you can call ./runModel as follows
$ ./runModel <SAVE_FLD> <SAVE_IDX> <P_TYPE_STATE_TRANSITION> <DEATH_PROBABILITY_FACTOR> <KILL_PROBABILITY_FACTOR>
As an example:
$ ./runModel modelPredictions 0 3 2 2
As of now, the entirety of the build is not seeded and, as such, running the model with the same parameter set will produce different results.