Code for "Global spatiotemporal structure and its deviations of neural activities in mice: a resting-state waves perspective"
- Python.
- Python packages in "requirements.txt".
- Install Python.
- Install all required Python packages using something like
pip install -r requirements.txt
. - Download all
.npy
files on huggingface and place them indemodata
directory. These files are sample data. - You can just run
python demo.py
to get a demo result. Or if you prefer jupyter, simply opendemo.ipynb
.
Please refer to demo.ipynb
for instructions on how to execute the code on your data and to view the expected outputs. Please note that lines 24 to 26 in demo.py
may take a few minutes to execute, so please be patient.
- Arch Linux (6.4.10-arch1-1).
- Python 3.11.3.
- At least 128G memory if you want compute FC of all pixel pairs (using
rsfc.full_image_pipeline
function).