Raw Neuropixel data viewer for numpy
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 gainctrl + a
: +3dB gainctrl + 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.
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)
Contribution
Fork and PR.
Pypi Release checklist:
flake8
rm -fR dist
rm -fR build
python setup.py sdist bdist_wheel
twine upload dist/*
#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-0.3.0.tar.gz
(14.6 kB
view details)
Built Distribution
viewephys-0.3.0-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file viewephys-0.3.0.tar.gz
.
File metadata
- Download URL: viewephys-0.3.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b14383c8aa1aa02d0144c7cba4e2e0c7f6772572d3e4719aca70330bb52a0522 |
|
MD5 | aab113468df38bda761035d3fc2709b6 |
|
BLAKE2b-256 | 3b1a82356334d250a76a2dfcd4c616e5c3e91f59af859269162e6260f988ddd9 |
Provenance
File details
Details for the file viewephys-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: viewephys-0.3.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c768c07c83e5a842338eb6f8eec1d27b052697d84997df4b1c870122604b7623 |
|
MD5 | ae2ea0d2766478d336eb67d5c9ac91c7 |
|
BLAKE2b-256 | 9cf23497b8c099e4ad450c06b230e8c02783c7b4d66e5148a145485220d4c714 |