InstallationΒΆ
Install docker and docker compose.
Check out the code from github.
git clone https://github.com/gallantlab/realtimefmri.git
cd realtimefmri
Modify the
.env
file with the appropriate paths and device number. In particular, set the following variables to point to:
PYCORTEX_STORE
(default./data/pycortex_store
): directory containing pycortex data, e.g., subject surfaces and transformsEVENT_DEVICE
(default/dev/input/event3
): keyboard input devicePIPELINE_DIR
(default./realtimefmri/pipelines
): directory containing pipelines configuration filesEXPERIMENT_DIR
(default./realtimefmri/experiments
):DATASTORE_DIR
(default./data/datastore
): directory containing auxiliary data such as pre-trained modelsTEST_DATASET_DIR
(default./data/test_datasets
): directory containing test datasetSTATIC_PATH
(default./realtimefmri/web_interface/static
):LOG_LEVEL
(defaultDEBUG
): directory containing static assets for the web interface
Build the docker images.
make docker.build
After you have built the docker containers, you can run realtimefmri
by running:
make docker.up
To stop the program, run:
make docker.down
And to clean up any remaining networks or volumes used by docker, run:
make docker.prune