Quick EEG
Quick EEG is an open-source python package to make processing EEG simpler. It is a wrapper for MNE that streamlines processing pipelines.
Official documentaton and official release of package on pip to come.
Example Code
Example use case, which can be found in quickeeg/quickeeg_main.py
import os
import sys
sys.dont_write_bytecode = True
import numpy as np
from helpers.preprocessing import Preprocessing
from helpers.report import Report
if __name__ == '__main__':
###########################################
############## Example usage ##############
###########################################
#Subject information
path = os.path.join('quickeeg','data')
id = 'participant_001'
#Create pipeline
pipeline = ['load_data',
'rereference',
'filter',
'notch_filter',
'ica',
'marker_cleaning',
'epoching',
'baseline_correction',
'averaging']
#Processing parameters
target_markers = {'11': [f'{i}' for i in range(11, 20)],
'21': [f'{i}' for i in range(21, 30)],
'31': [f'{i}' for i in range(31, 40)]}
params = {'pipeline': pipeline,
'file_path': os.path.join(path, id),
'find_files_by_marker': 's11',
'reference_channels': 'average',
'bp_filter_cutoffs': [0.1, 50],
'notch_filter_freq': 60,
'ica_components': 20,
'eog_channel': ['1L', '1R'],
'target_markers': target_markers,
'epoching_times': [-.2, .8],
'baseline_times': [-.2, 0]}
#Run the pipeline
preprocessing = Preprocessing(**params)
preprocessing.process()
electrodes=list(np.arange(0,len(preprocessing.raw.ch_names)))
preprocessing.plot_erp(electrode_index=electrodes, save_plot=True)
#Build the report
reader_note = ' '.join(['This report was produced by the QuickEEG package.'])
custom_text = ['## Note for the reader',
reader_note]
report = Report(preprocessing)
report.build_report(custom_text)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quickeeg-0.0.14.tar.gz
(10.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
quickeeg-0.0.14-py3-none-any.whl
(12.2 kB
view details)
File details
Details for the file quickeeg-0.0.14.tar.gz.
File metadata
- Download URL: quickeeg-0.0.14.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb417deff623d7fdf213d76d74c457699e1c78847b8b80c21793c2c2463d2357
|
|
| MD5 |
5ed8b8195fb0a3d30d2b56203c04b951
|
|
| BLAKE2b-256 |
bd6e436892511de060c2f515b13ddb22e1ea8b61a8262646cba1823dcb9540fa
|
File details
Details for the file quickeeg-0.0.14-py3-none-any.whl.
File metadata
- Download URL: quickeeg-0.0.14-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
537f523247fece013aa92eecea041b72270113b4f0529cb57b2a6a52bfefcb87
|
|
| MD5 |
f79eb5e0f4bff589171f7eaa92bc7142
|
|
| BLAKE2b-256 |
dd4292459537d00edbcd14b18785b9f5c553d542eca745a7c968fc8e7c01606d
|