cogpy.io.ecephys_io
BIDS ECEPHYS reader for electrophysiology .dat files.
Note
Lab-internal module. Assumes the Bhatt Lab BIDS-ECEPHYS
directory layout and sidecar conventions. Not part of the stable
public API — external users should prefer cogpy.io.converters.
Functions
- load_ecephys_metadata
Load metadata from BIDS sidecar files.
- from_file
Create an
xarray.DataArrayfrom a.datfile.
Example
from cogpy.io import ecephys_io
da = ecephys_io.from_file('sub-01_ses-01_task-free_ecephys.lfp')
Functions
|
Creates a memory-mapped (dask) array from a .dat file, reshaped to (num_channels, num_samples). |
|
Read BIDS JSON, channels.tsv, and electrodes.tsv. |
|
Resolve BIDS sidecar paths for an ecephys LFP file. |