Last-mile preprocessing for neural data to ML-ready tensors
Project description
river_bci
Last-mile preprocessing for neural data to ML-ready tensors.
from river import bridge
# One-liner spike preprocessing (Willett 2023 style)
X = bridge.presets.willett_speech(raw_signal, fs=30000)
# ECoG high-gamma extraction
hg = bridge.ecog.high_gamma(ecog_data, fs=1000)
# Composable pipeline
features = (
bridge.Pipeline()
.car()
.notch(60)
.high_gamma()
.downsample(200)
.sliding_zscore(30)
.fit_transform(ecog_data, fs=1000)
)
Installation
pip install river_bci
Modules
- spikes: Spike train processing (binning, smoothing, threshold crossings)
- ecog: ECoG/LFP processing (filtering, high-gamma extraction)
- normalize: Normalization methods (z-score, sliding z-score, robust)
- epoch: Trial epoching and windowing
- splits: Train/val/test splitting with temporal awareness
- pipeline: Composable preprocessing pipelines
- presets: Published paper preprocessing presets (Willett, Chang lab, NLB)
- streaming: Real-time streaming processors
- io: Data loading for NWB, MAT, SpikeInterface, MNE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
river_bci-0.1.0.tar.gz
(34.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
river_bci-0.1.0-py3-none-any.whl
(44.3 kB
view details)
File details
Details for the file river_bci-0.1.0.tar.gz.
File metadata
- Download URL: river_bci-0.1.0.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.7 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9165a193e73b0d794925734b78e3b7b1f3b8c7d904d2ee27ca810d62d7350740
|
|
| MD5 |
2a60fde1ad84bc113c742584c718f295
|
|
| BLAKE2b-256 |
4ed74874985b5dc70c04a3f2760e791402129ff1f3810f5ab2902b66c0f6cb92
|
File details
Details for the file river_bci-0.1.0-py3-none-any.whl.
File metadata
- Download URL: river_bci-0.1.0-py3-none-any.whl
- Upload date:
- Size: 44.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.7 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7999409b017fd52eb27c648d4180d3157b383653746bf09c1bee959e6761efc8
|
|
| MD5 |
30d5af5d900fa6c0399b1b8df34720b5
|
|
| BLAKE2b-256 |
d4e7936928100c2b179b6ea38056c884406fd534b37526de22313d53a2380e95
|