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.1.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.1.0
File Size Uploaded
lfpack-1.1.0.tar.gz 2.8 MB Details

Built distribution (wheel)

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

Total release size: 2.9 MB

Release files / lfpack-1.1.0.tar.gz

Download URL lfpack-1.1.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
f945940a376ffa662941ccb4117c37e14079190d37d9c08dd9fc3dbd1df64f4b
BLAKE2b-256 checksum
How to use checksums
513f0149394625f43f0bf428ecadbbb37c4084be94ff891e6673e89375807f89
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.1.0-py3-none-any.whl

Download URL lfpack-1.1.0-py3-none-any.whl
Size 31.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05970c9da08eb667a037e1175bbbde69e3922c452148b97c3b8f3761a93c5540
BLAKE2b-256 checksum
How to use checksums
06f85ac5c0cde88b1770f0a03aadecde5942affd43499861f3d5492ebf546aa2
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.1.0 This release

2 release files

1.0.0

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