cogpy.io

I/O subpackage — file readers, writers, and format converters.

Generic modules (usable by anyone):

converters, save_utils, sidecars

Lab-internal modules (assume specific recording setups and directory layouts used in the Bhatt Lab; included for convenience but not part of the stable public API):

ecog_io, ecephys_io, ieeg_io, ieeg_sidecars, load_meta, xml_io, xml_anat_map

Example

from cogpy.io import ieeg_io, ecephys_io

Modules

converters

Schema-first converters and file-format conversion utilities.

ecephys_io

BIDS ECEPHYS reader for electrophysiology .dat files.

ecog_io

ECoG file I/O: load, save, and convert grid ECoG recordings.

ieeg_io

BIDS iEEG reader for intracranial EEG .dat files.

ieeg_sidecars

BIDS iEEG sidecar readers — JSON metadata, channel TSVs, electrode TSVs.

load_meta

Parse and write XML metadata for OpenEphys-style recordings.

save_utils

sidecars

BIDS-style sidecar management: JSON metadata, channel/electrode TSVs, and symlink propagation.

xml_anat_map

Anatomical channel remapping from OpenEphys XML metadata.

xml_io

OpenEphys XML metadata parser and writer.