Skip to main content

Neuropixel raw data viewer

Project description

viewephys

Neuropixel raw data viewer

Installation

pip install viewephys

Alternatively, in development mode:

git clone https://github.com/int-brain-lab/viewephys.git
cd viewephys
pip install -e .

Supported environments

This is compatible with the IBL environment

Otherwise, you can create a new environment as such:

conda create -n viewephys python=3.12
conda activate viewephys

And then follow the install instructions above.

Controls

  • ctrl + z: -3dB gain
  • ctrl + a: +3dB gain
  • ctrl + p: in multi-windows mode, link the displays (pan, zoom and gain)

Pick spikes

When the picking mode is enabled (menu pick)

  • left button click sets a point
  • shift + left button removes a point
  • control + left does not wrap on maximum around pick
  • space increments the spike group number

Examples

Visualize raw binary file

Activate your environment and type viewephys, you can then load a neuropixel binary file using the file menu.

alt text

Alternatively you can point the viewer to a specific file using the command line:

viewphys -f /path/to/raw.bin

Load in a numpy array or slice

# if running ipython, you may have to use the `%gui qt` magic command
import numpy as np
from viewephys.gui import viewephys
nc, ns, fs = (384, 50000, 30000)  # this mimics one second of neuropixel data
data = np.random.randn(nc, ns) / 1e6  # volts by default
ve = viewephys(data, fs=fs)

alt text

Contribution

Fork and PR.

Pypi Release checklist:

ruff check
rm -fR dist
rm -fR .pdm-build
pdm publish
#twine upload --repository-url https://test.pypi.org/legacy/ dist/*

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

viewephys-1.2.0.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

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

viewephys-1.2.0-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file viewephys-1.2.0.tar.gz.

File metadata

  • Download URL: viewephys-1.2.0.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.9 CPython/3.11.15 Linux/6.17.0-1013-azure

File hashes

Hashes for viewephys-1.2.0.tar.gz
Algorithm Hash digest
SHA256 09edd8c0d31dfb4e6e7bda18c70fde374bad386088a4ebc852d175154e5aa3e9
MD5 143fd09dca07f7650afe70d068a591f9
BLAKE2b-256 7c907923c0ee4f6a0125f09821508000c8add4c1540ea49c1722039b7bd7a477

See more details on using hashes here.

File details

Details for the file viewephys-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: viewephys-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.9 CPython/3.11.15 Linux/6.17.0-1013-azure

File hashes

Hashes for viewephys-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e979432d92bba85aee9b9772cead0c9320ad73ad750ac5ceb278641346a2f004
MD5 b68cf5d89d6c7a0df6e25fa17f2a314b
BLAKE2b-256 6e4e188f9acb9ddea195e4a076908facb0227c3c3111e46e60a90d1865b6ca80

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