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.1.1.tar.gz (17.0 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.1.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: viewephys-1.1.1.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.6 CPython/3.11.10 Linux/6.8.0-49-generic

File hashes

Hashes for viewephys-1.1.1.tar.gz
Algorithm Hash digest
SHA256 87d9b9ef40a43333c79207f017bf196dd2393d6fcc81003d9596c3adedf90c27
MD5 4547c3b7fd134a4955b8b4880c34bbc0
BLAKE2b-256 9ad22e29980a3a23610de5e1c19f08685f9cc95f54c588df94b159667e516751

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viewephys-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.6 CPython/3.11.10 Linux/6.8.0-49-generic

File hashes

Hashes for viewephys-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 489662902b0f1762f33892ac8b973fb160ebd86b7f31b3d02375fa7cb0b15fab
MD5 deb1b2a9c02384be04245d5de685ee3d
BLAKE2b-256 52eb123870a4d05044528e187132db532ceae141262bc989d73308909cfa3cac

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