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.8.tar.gz (3.8 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.8-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tnbsclean-1.8.tar.gz
Algorithm Hash digest
SHA256 3ac598eeb340a3666da09475064e9198c68bb8ca81e53a4a95d90256ca0587f4
MD5 e95ce414fee9104f01865709ba446040
BLAKE2b-256 9c85fd82a99c4d71486dc77d6d97555c657c9fb12768af0f82020477ecd4b085

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tnbsclean-1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c56e67c03cba48a0d284d33952265bb57d5ed15d5138cc1f3ca0c3368beaff10
MD5 97c15e3ae017805c1732483f2234f6cc
BLAKE2b-256 30b2b25aed86a8f888bd9114abb0760d93b751d6c3dc9f7ff91a2911d2e04d58

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