Skip to main content

EEG Signal Processing Library

Project description

Description

BrainSurf is a Python library for processing and analyzing EEG (electroencephalography) signals. It provides a collection of tools and methods for reading, preprocessing, analyzing, and visualizing EEG data. The library is built using the NumPy, SciPy, and Matplotlib packages and is designed to be easily extensible for custom analysis and visualization needs

Installation

BrainSurf can be installed using pip, a Python package manager. To install the latest stable version of the library, run the following command :

pip install brainsurf

Github

Alternatively, you can clone the repository from GitHub and install it from source: git clone https://github.com/preethihiremath/brainsurf cd esp pip install -r requirements.txt python setup.py install

Usage

import brainsurf.data as data
import brainsurf.preprocessing as pre
import brainsurf.analysis as analysis
import brainsurf.visualization as vis

#load EEG data from file
eeg_data = data.read_edf_file('eeg_data.edf')

#preprocess the data
preprocessed_data = pre.bandpass_filter(eeg_data, low_cutoff=1, high_cutoff=40)

#analyze the data
erp_data = analysis.compute_erp(preprocessed_data, event_markers=[1, 2, 3], epoch_duration=2)

#visualize the results
vis.plot_erp(erp_data)

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

brainsurf-3.0.0.tar.gz (22.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page