Skip to main content

A short description of your package

Project description

neuropipeline

neuropipeline is a Python package designed for comprehensive analysis of neurophysiological data, specifically Electroencephalography (EEG) and functional Near-Infrared Spectroscopy (fNIRS). It provides tools for preprocessing, analysis, and visualization of both EEG and fNIRS data, streamlining your neuroimaging workflow.

Usage

from neuropipeline.fnirs import fNIRS
import neuropipeline.visualizer as nplv

fnirs = fNIRS("path/to/your_file.snirf")
fnirs.preprocess(
    optical_density=True,
    hemoglobin_concentration=True,
    temporal_filtering=True,
    normalization=False,
    detrending=True
)

nplv.open(fnirs)

Example

These examples show single trials from a subject in my master thesis experiments. The time series, spectrogram and frequency (PSD, FFT) are plotted for each case. The red dashed lines represent markers in the data, specifically when each block starts (rest, task) as well as metadata markers describing the robot's movement and actions. The stimuli was delivered as 6 indentations and subsequent shears of the heel edge by a robot actuator. In the supination case (left), we see a clear correlation with increased HbO in the first two stimuli periods. Looking at the spectrogram (y: 0.00-0.10 Hz), the neurogenic band centered at 0.025 Hz shows activity throughout, with notable spikes coinciding with the HbO increases at stimuli onset. This is a strong indication of captured neurogenic activity in the sensory cortex resulting from mechanical stimulation of the lateral heel edge. The pronation case (right) does not exhibit the same pattern; neurogenic activity remains consistently low across the trial spectrogram, and while the time series shows some local peaks during task durations,

Supination case Pronation case
Supination Pronation

Features

  • Unified Interface: A consistent API for both EEG and fNIRS data processing.
  • Preprocessing:
    • Artifact removal (e.g., ICA, filtering).
    • Data cleaning and interpolation.
    • Channel/probe management.
  • Analysis:
    • Frequency domain analysis (e.g., power spectral density).
    • Time domain analysis (e.g., event-related potentials/responses).
    • Statistical analysis.
    • fNIRS specific analysis (HbO, HbR, and HbT calculations)
  • Visualization:
    • Interactive plots for EEG and fNIRS data.
    • Topographic maps.
    • Time-series plots.
    • fNIRS channel location visualization.
  • Extensible Design: Easily add custom processing and analysis modules.
  • Well-Documented: Comprehensive documentation with examples and tutorials.

Installation

pip install neuropipeline

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

neuropipeline-0.1.5.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neuropipeline-0.1.5-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file neuropipeline-0.1.5.tar.gz.

File metadata

  • Download URL: neuropipeline-0.1.5.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for neuropipeline-0.1.5.tar.gz
Algorithm Hash digest
SHA256 46687d8b47f776fcf01e7cabc4f2daa527df696cf449b5ca9d7da70f98db2c72
MD5 acd8549bf77c5aa5f1a62cdd03b62129
BLAKE2b-256 80b6094438632dc36a2e85180a1ff2f6d7799a8cea5ae8597bb22eff12da215a

See more details on using hashes here.

File details

Details for the file neuropipeline-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: neuropipeline-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for neuropipeline-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7f41c3385539bcd694b96ce1e5fb0f41c64e52ae65990f42a03078f8dfdef9dc
MD5 1ff68dd510e0f28d4970bb1bd0bdbacf
BLAKE2b-256 2a0671cf708ad3d134a4ccb27e6329cf5bb4a8693185d78fa157bb93460dee69

See more details on using hashes here.

Supported by

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