Usage#
Running the code#
The project provides two command line tools: one to run the simulations and another to evaluate them. The commands can be run directly from the command line, without needing to import any Python modules.
Running simulation#
To run a simulation, use this command:
poetry run py_simulate [options]
After running the simulation, the resulting data is saved in the output/<model_name> folder,
and the generated plots are saved in the plots/<model_name> folder.
Running evaluation#
To run the evaluation, use this command:
poetry run py_evaluate
After running the evaluation, the resulting plots are saved in the plots folder.
Arguments ([options])#
By default, the commands use parameters from the following configuration file: configs/model_params.yml.
You can modify this YAML file to change the default parameters. Alternatively, you can provide the following arguments to the commands. They will override the default parameters.
arg name |
type (+ options) |
default |
help |
|---|---|---|---|
|
|
|
number of simulations to run |
|
|
|
name of the model |
|
|
|
brain areas where the nodes are placed (according to Julich brain labels) |
|
|
|
brain area to use as a relay station (according to Julich brain labels or ‘none’) |
|
|
|
whether to use custom connectivity (from connectivity_weights.csv) or not |
|
|
|
sample rate |
|
|
|
lagged time in ms |
|
|
|
simulation time in seconds |
|
|
|
number of seconds to delete to ensure model convergence |
|
|
|
color of the noise (‘white’ or ‘pink’) |
|
|
|
scalar standard deviation of the noise (effectively controls the scale of the output) |
|
|
|
shape param for the lag distribution. |
|
|
|
scale param for the lag distributions |
|
|
|
location param for the lag distributions |
|
|
|
tail truncation percentile for the lag distributions |
As you can see from the --custom_connectivity argument, you can specify a custom connectivity weights matrix in the configs/connectivity_weights.csv file.
Use either a symmetrical of an upper triangular matrix (it will be converted to symmetrical). The diagonal values are ignored.