How-to Guides
Practical recipes for common tasks. These assume familiarity with cogpy’s data model and basic API (see Quickstart if you are new).
How to filter signals : Bandpass, notch, spatial smoothing, CMR, and z-score normalization.
How to detect events : Use pre-built pipelines or configure custom detectors.
How to run spatial measures on spectrograms : Run spatial measures (Moran’s I, gradient anisotropy) over spectrograms.
Compose artifact analysis from cogpy primitives : Assemble cogpy primitives for artifact detection and template subtraction.
How to build a Snakemake preprocessing pipeline : Build a Snakemake preprocessing pipeline from cogpy building blocks.
How to load ECoG data : Read binary LFP, Zarr, and BIDS-iEEG files into xarray.
How to visualize ECoG data : Interactive grid movies, multichannel traces, and topomaps with HoloViews.
How to do triggered analysis : Lock signals to events, extract epochs, and estimate/subtract templates.
How to work with brain states and regression : Interval-based state classification and OLS regression for artifact removal.