Skip to main content

lfpack — LFP codec for Neuropixels recordings

lfpack logo

Lossy, random-access codec for Neuropixels LFP. A recording is cleaned, decimated to 250 Hz and denoised, then stored in an HDF5 file of about 1.5 % of the decimated float32 data (~20 MB per hour of 384-channel NP1) and read back through a drop-in spikeglx.Reader.

pip install lfpack
from lfpack import compress_bin_to_h5, LFPackReader

compress_bin_to_h5("recording.lf.cbin", "recording.lf.h5")
traces = LFPackReader("recording.lf.h5")[0:1000]   # (1000, nc) float32, volts

IBL Brain-Wide Map LFP dataset: 699 recordings, session-clock aligned, browsable online. How to access →

viewephys opens lfpack files directly (viewephys -f recording.h5), with brain-region colouring:

viewephys opened directly on a lfpack HDF5 file, showing brain-region-coloured LFP traces

Documentation: https://int-brain-lab.github.io/lfpack/. Questions and bug reports: GitHub issues.

Metadata

Release files for lfpack 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lfpack 1.0.0
File Size Uploaded
lfpack-1.0.0.tar.gz 2.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for lfpack 1.0.0
File Interpreter ABI Platform
lfpack-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.3 MB

Release files / lfpack-1.0.0.tar.gz

Download URL lfpack-1.0.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
97391124b3ba0f822fedd1ace36b2f90d42bc2cdc41b8953389075e0947e7715
BLAKE2b-256 checksum
How to use checksums
d048956f65e61b2b30b0f0e396530d892abdab8d8b084c133c614640705a3400
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / lfpack-1.0.0-py3-none-any.whl

Download URL lfpack-1.0.0-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee84dcd3ae6627226f8f905447cc578984ee597b20da15f5a2f8401147e206a5
BLAKE2b-256 checksum
How to use checksums
5c203807e126c9c70559cdf075b3c9be9c9b516a8a14c078a116594e9fe98ef4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page