Skip to main content

Timeseries visualizer for Electrocorticography (ECoG) signals stored in NWB files.

Project description

ecogVIS

Timeseries visualizer and data processing tools for Electrocorticography (ECoG) signals stored in NWB files, for Python.

PyPI version codecov

A collaboration with the Chang Lab.

Installation

$ pip install ecogVIS

After activating the correct environment, ecogVIS can be started from the terminal:

$ ecogvis

You can also directly pass a file to be opened:

$ ecogvis --source 'filename.nwb'

ecogVIS can be imported and run from python scripts. If the file does not exist (or if you provide an empty string ''), you'll be prompted to choose a file from a dialog.

from ecogvis import main
import os

fpath = os.path.join('path_to', 'file.nwb')
main(fpath)

Features

ecogVIS makes it intuitive and simple to viualize and process ECoG signals. It currently features:

Navigation Seamless visual navigation through long signals from large arrays of electrodes, by mouse-dragging visualization window, control buttons, value fields and keyboard keys.

Annotations Add, delete, save and load annotations for meaningful comments anywhere in the visualization.

Intervals Add, delete, save, load and create custom intervals types to mark specific points in time, with simple click-drag-release mouse movements.

Bad Channels Mark and un-mark bad channels. Choices are saved in the electrodes group of the current NWB file.

Signal preprocessing Preprocessing of raw voltage signals, including user-defined Downsampling, CAR and Notch filtering. The resulting processed signals are stored as an LFP object, in the processing group of the current NWB file.

Events detection Automatic detection of events in audio recordings for Consonant-Vowel tasks. The audio data should be stored in the NWB file in the following way:
  • Speaker audio - As a TimeSeries object, named 'Speaker CV', in the stimulus group.
  • Microphone audio - As a TimeSeries object, named 'Microphone CV', in the acquisition group.
The resulting detected intervals, 'TimeIntervals_mic' and 'TimeIntervals_speaker', are saved as TimeIntervals objects in the intervals group of the current NWB file and can be used later for ERP analysis. A preview allows for testing of the detection parameters before running it for the whole duration of the audio signals.

High Gamma Estimation of high gamma analytic amplitude, with the average of user-defined specific bands. The results are saved as a TimeSeries object, named 'high_gamma', in the processing group of the current or of a new NWB file.

Event-Related Potentials Grid visualization of high gamma ERP calculated in reference to:
  • Stimulus (speaker) or response (microphone) time intervals
  • Onset or offset points
The grid items are coloured to mark specific cortical areas and can be rotated to correspond anatomically to them. Emphasis can be given to specific areas of interest and double-clicking an item allows for fast inspection of the single electrode's ERP in detail.

Periodograms Grid visualization of Periodograms:
  • Raw and preprocessed data
  • FFT and Welch methods
  • Individual devices
The grid items are coloured to mark specific cortical areas and can be rotated to correspond anatomically to them. Emphasis can be given to specific areas of interest and double-clicking an item allows for fast inspection of the single electrode's Periodogram in detail.

Spectral Decomposition Analytic signal amplitude estimation by Hilbert transform of user-defined frequency bands.

WARNING: This function will manipulate an array of size (nSamples, nChannels, nBands), which might be in the order of gigabytes and demand a large memory to operate and is likely to produce a large file.

Plus

  • Select electrodes from specific brain areas
  • Easy moving between block files for the same subject

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

ecogvis-1.2.1.tar.gz (81.4 kB view details)

Uploaded Source

Built Distribution

ecogvis-1.2.1-py3-none-any.whl (93.9 kB view details)

Uploaded Python 3

File details

Details for the file ecogvis-1.2.1.tar.gz.

File metadata

  • Download URL: ecogvis-1.2.1.tar.gz
  • Upload date:
  • Size: 81.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0.post20200710 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for ecogvis-1.2.1.tar.gz
Algorithm Hash digest
SHA256 46f92ba5ab964775a1d01c5396c4fc7f5727c52fca952ade2b3a34efee6b815f
MD5 1cfdd5862196842f880efb4862c4ae47
BLAKE2b-256 bf42cdbf111af997a7b130f88338c562965f9e55b5fb5431b17aa4fdcfa2c76d

See more details on using hashes here.

File details

Details for the file ecogvis-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: ecogvis-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 93.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0.post20200710 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for ecogvis-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 067146dbd04657b2c152e3f99a5777947371c98ab429d7ba90d5dc58be2dbbc3
MD5 823a89203a7d748e7977b464cf857413
BLAKE2b-256 6d64a481c1c42185bd41a3e10d1535736fc38abb03febb512be6bbe3434cf5a6

See more details on using hashes here.

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