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.6.tar.gz (20.9 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.6-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neuropipeline-0.1.6.tar.gz
  • Upload date:
  • Size: 20.9 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.6.tar.gz
Algorithm Hash digest
SHA256 1c302d32e71011e61782d1f59b886c074ca3abf62ca1b1a1f2bb6be5d96844aa
MD5 84a21cb064d711906a60cb8a1c0ce392
BLAKE2b-256 baf6ff462d5fe16ee66c34877dc93f243e853104c97b1ad88d9105e4bb323a3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neuropipeline-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 18.9 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 42e35b8de217e169715bbc68df9fa8359b26bc226b53d89da7c276f11c0a1e53
MD5 9419a7749e7148087fc1dbf0fa4c521a
BLAKE2b-256 aa6d91420868cae1ec0ab4f0ec3b746999418c254fdd4bd80e1cfd3c1ee4508e

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