An interactive plotting suite for stereoelectroencephalography (sEEG) data visualization.
- Python 3.8 or higher
- pip (Python package installer)
-
Clone or download this repository:
git clone https://github.com/m2b3/seegview.git cd seegview -
Install the package:
pip install .
If you're actively developing the package and want changes to be immediately reflected:
pip install -e .If you're starting from a completely fresh computer:
-
Install Python:
- Download and install Python from python.org
- Make sure to check "Add Python to PATH" during installation
-
Verify installation:
python --version pip --version
-
Follow the installation steps above
It's recommended to install the package in a virtual environment:
# Create a virtual environment
python -m venv venv
# Activate it
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
# Install the package
pip install .This package provides an example script, found in test_ecg_widget.py. The reference data comes from (1), with subject "sub-4r3o". To run the file, please download the subject's folder from https://dabi.loni.usc.edu/dsi/W4SNQ7HR49RL, and add the destination of its parent directory in config.py.
The example script also uses a Freesurfer parcellation (2), ran locally. Please consult the Freesurfer website on installation instructions, and how to run recon-all. Add the destination of the Freesurfer output directory to config.py.
Afterwards, you can run the script as follows:
python -i .\seegview\test_visualizer_full.pyThe package automatically installs the following dependencies:
- numpy
- PyQt5
- pyqtgraph
- mne
- mne_bids
- pyvistaqt
- pyvista
-
Paulk, A. C. et al. Local and distant cortical responses to single pulse intracranial stimulation in the human brain are differentially modulated by specific stimulation parameters. Brain Stimulat. 15, 491–508 (2022).
-
Fischl, B. FreeSurfer. Neuroimage 62, 774–781 (2012).