Skip to main content

LFP codec — lossy compression of local-field-potential recordings via adaptive SVD and wavelet-packet thresholding

Project description

lfpack — LFP codec for Neuropixels recordings

lfpack logo

Lossy codec for local-field-potential (LFP) recordings from Neuropixels probes. Achieves >100× compression with median RMSE < 25 µV via an 8-stage pipeline (bad-channel detection → dephasing → highpass → interpolation → CAR → decimation → Cadzow → adaptive SVD + wavelet-packet thresholding).

pip install lfpack

Documentation

Full documentation is at https://int-brain-lab.github.io/lfpack/.

Section Contents
Tutorial End-to-end compression and decompression of a recording
How-To: binned reads Memory-efficient channel-binned access
How-To: multi-recording files Combining multiple recordings in one HDF5 file
API reference Full public API (compress_bin_to_h5, LFPackReader, …)
HDF5 format On-disk layout specification
Pipeline explanation Stage-by-stage description of the compression pipeline
SVD+WP benchmark RMSE, SNR, and compression-ratio results across 11 insertions

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

lfpack-0.1.0.tar.gz (7.0 MB view details)

Uploaded Source

Built Distribution

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

lfpack-0.1.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file lfpack-0.1.0.tar.gz.

File metadata

  • Download URL: lfpack-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lfpack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 73c9f3b6aa5ab41dcc29144b756d9c981bf26c868956a1915a3fd6b5d28f7b3c
MD5 6fb293dd788bb223c2fe28e083dd3c05
BLAKE2b-256 d7b52ae4aedf2de7b8d5efff3bc97fdb06d920f77db01d74758d3f7b87c537c6

See more details on using hashes here.

File details

Details for the file lfpack-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lfpack-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lfpack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a63a9c57e699d131661fa03d221b6e382aa35439ca5c3d4dd5ffa8c08d53c951
MD5 25638050d66d7116da0f1be14904284d
BLAKE2b-256 987bb1e9cdd94c08af5187c201592122f5323afe9618d199522eb83020c5e3e6

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