Skip to main content

No project description provided

Project description

tnbsclean

Description

tnbsclean provides functionality to clean EEG, MEG, and other time-series data from mne-python by removing unwanted stimuli using the tnbsclean function. This is especially useful in preprocessing to remove noise or artifacts from signals caused by stimuli events.

Installation

You can install the package via pip from PyPI:

pip install tnbsclean

Example use

import tnbsclean as tnbs

# Example parameters
raw  # Raw time series data in MNE's raw object format
half_win = 3  # Half window size around each stimulus (in samples) that will be chopped away from the artifact peak point
threshold = 2  # Threshold constant above which stimulus is considered significant

# Apply stimulus cleaning 
raw_cleaned, spike_idxs = tnbs.get_stim_markers(raw, half_win, threshold) #cleans based on ECG, returns spike indices

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

tnbsclean-1.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

tnbsclean-1.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file tnbsclean-1.3.tar.gz.

File metadata

  • Download URL: tnbsclean-1.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for tnbsclean-1.3.tar.gz
Algorithm Hash digest
SHA256 585e83a0216cce18aae2487043231f599c38229ea6bb0ea7625c9c47cbe66f59
MD5 3be7f00d1eae659cc1bfde966fc032bf
BLAKE2b-256 808e8511841ee83b53ae7a365e719172ce099df147b5270f14dadbc938fd21d2

See more details on using hashes here.

File details

Details for the file tnbsclean-1.3-py3-none-any.whl.

File metadata

  • Download URL: tnbsclean-1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for tnbsclean-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 39920f94c6f5e7fdf376a80e9cc48d4b5addf6855dc591e1248826e116d666d0
MD5 d0936133ac1ce009d97450d00c82a8a4
BLAKE2b-256 311401c93bbbfa68b8c02b3726107aed5c5d5eb94425c32d9ab12ec25c20ccab

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