Skip to main content

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.9
conda activate viewephys

And then follow the install instructions above.

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:

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.2.1.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

viewephys-0.2.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: viewephys-0.2.1.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for viewephys-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9a15fc44a7e016e890c4daec71ffe5b265389216aef806dcbd9ac2ada8b741b9
MD5 9ac75d7800091b5f731265a6767f0481
BLAKE2b-256 8ddc481386467fe4b4a7695732ad49fce2a72ca5e6cac290c25e1196d1a85c37

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: viewephys-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for viewephys-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a355197b69b1882e26018d631d9a093fa1bc2019041562e54c49ccb6e1aa156
MD5 c074b6ee5eb04cfe45e67d8c899a007b
BLAKE2b-256 b2be6fd8268d6ab516aa6a529a221ed87def6bca1aeb48479d66309a4c316d45

See more details on using hashes here.

Provenance

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