The purpose of this monorepository is to group all software tools and pipelines related to EEG (experiment, cleaning, analysis etc.). This repository is maintained by Child Mind Institute.
This library operates within a BIDS (Brain Imaging Data Structure) environment, requiring the EEG data to be organized according to BIDS standards.
The Brain Imaging Data Structure (BIDS) is a standard for organizing and describing neuroimaging data. BIDS datasets organize data into a series of files and folders, with each file and folder name providing important information about the data it contains. This standardization makes it easier to share and analyze data across different labs and research groups.
-
EEG-fMRI cleaning pipeline:
- Gradient Artifact Removal: Implements FILL IN HERE to minimize the impact of gradient artifacts caused by the radiofrequency pulses in the MR scanner.
- Ballistocardiogram (BCG) Artifact Correction: Utilizes FILL IN HERE to identify and remove artifacts related to cardiac activity.
- Quality Control: Offers a series of checks and visualizations to assess the effectiveness of artifact removal and the overall quality of the EEG data post-cleaning.
- Interactive Menu: Provides an interactive menu for users to select specific cleaning steps and configure parameters, making the pipeline more intuitive and user-friendly to navigate.
- Automated Workflow: Allows users to run the cleaning pipeline with predefined arguments for a more automated and streamlined process, ideal for batch processing multiple subjects, sessions, or tasks.
-
PLACEHOLDER PIPELINE:
- FILL IN HERE
To use this library, following dependencies will be installed on your system:
- Python (~3.12)
- numpy (^1.26)
- scipy (^1.14.0)
- mne (^1.7.1)
- matplotlib (^3.8.4)
- pybids (^0.16.4)
- asrpy (^0.0.3)
- pyprep (^0.4.3)
- neurokit2 (^0.2.7)
- pybv (^0.7.5)
- simple-term-menu (^1.6.4)
- eeglabio (^0.0.2.post4)
Install this package via:
pip install PLACEHOLDER_NAME
Or get the newest development version via:
pip install git+https://github.com/childmindresearch/eeg_research
The documentation for this library can be found here.
If you want to run the EEG-fMRI cleaning pipeline in interactive mode:
eeg_fmri_cleaning --root "path/to/your/datafolder" --interactive
If you want to run the EEG-fMRI cleaning pipeline with predefined arguments (subject, session, task, etc.) for a more automated workflow:
eeg_fmri_cleaning --root "path/to/your/datafolder" --subject "*" --session "*" --task "rest" --run "1-3" --extension ".vhdr" --datatype "eeg" --gradient --bcg --qc
See here for a more complete example.