This repository hosts the code for preprocessing EEG data during a CST at Nathan Kline Institute.
Install this package via :
pip install eeg_preprocessing_cst
Or get the newest development version via:
pip install git+https://github.com/childmindresearch/eeg_preprocessing_cst
The pipeline can be called with the following code:
from eeg_preprocessing_cst.pipeline import CSTpreprocessing as preprocess
Then you just have to create the object and provide the EEG filename and the events filename (in .csv format) as follow:
preprocess = preprocess(EEG_filename, events_filename)
Then, to prepare you raw data for processing you run the following code:
preprocess.set_annotations_to_raw().set_montage()
Finally you can run the different cleaning pipelines (careful it can take a very long time):
preprocess.run_prep()
preprocess.run_asr()
add pyprep and asr