This package provides a quick and easy pipeline to process EEG files and generate a report. It is a wrapper for mne.
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file quickeeg-0.0.13.tar.gz.
File metadata
- Download URL: quickeeg-0.0.13.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b13f0c41cd1849aa4559f4d9398d24ff43edcc4e5234d1ed21a89a62e3349d8f
|
|
| MD5 |
a2f1e500b647aef46867ff119d28c77e
|
|
| BLAKE2b-256 |
20dd3fb9329dc94c21a7c5183fd7c7dc31fdf1eab86b379516cf3c754cf2949c
|
File details
Details for the file quickeeg-0.0.13-py3-none-any.whl.
File metadata
- Download URL: quickeeg-0.0.13-py3-none-any.whl
- Upload date:
- Size: 11.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 |
e0f65cb86cba10267c472718b3d9a5c1d4d1d87ef59d607504dbc44342dafe8b
|
|
| MD5 |
6a9f05608c17d65268c1831e8d792e38
|
|
| BLAKE2b-256 |
552db2d6c47ab6ee76d70b63c5a47c24dea00481b185bc757aad66053f345246
|