Preprocessing code for the hyperscanning data acquired in Mexico during mushroom ceremonies
- Clone the repository and cd into it:
git clone git@github.com:hyruuk/mushroom_hyperscanning.git cd mushroom_hyperscanning - Install the mushroom hyperscanning package:
pip install -e . - Install ffmpeg for audio file manipulation:
Windows:Linux:winget install ffmpegsudo apt-get install ffmpeg
To run the preprocessing pipeline, and create the deriv-00x-* directories with derivative data, run this command:
python mushroom_hyperscanning/scripts/preprocess.pyUse the --overwrite flag to overwrite existing derivatives.
Load raw EEG data using the load_eeg function and specifying
from mushroom_hyperscanning.data import load_eeg
raw = load_eeg(subject="01", ceremony="ceremony1", root="path/to/derivative-directory")