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.2.tar.gz (28.8 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.2-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: viewephys-1.1.2.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.8 CPython/3.11.14 Linux/6.19.11-200.fc43.x86_64

File hashes

Hashes for viewephys-1.1.2.tar.gz
Algorithm Hash digest
SHA256 fa272a444f231c0b96877b29526e49e032ddb45ba14b782b79fe887959e72560
MD5 1643b3869376398a11bb94d7e11bd0e8
BLAKE2b-256 a93c37bc0d7e270b509d66a4fc001736ec2efe8120bf7a428576b9dfe57cc32e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viewephys-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.8 CPython/3.11.14 Linux/6.19.11-200.fc43.x86_64

File hashes

Hashes for viewephys-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aac728d963d8316e3a5f8553a3812d9f5aae1f189545ba17945bf3e4a6f4c783
MD5 cf14539f50c71d916bb776f94ef29f4a
BLAKE2b-256 6756fefdbfc181d219af084475f137c658cec96cf760437af3541d0b95515cbb

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