Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Workspace Layout

Sorrel is a Cargo workspace with one role per crate:

CrateRole
sorrel-ioDataProvider trait and backends: Phy / Kilosort, SortingAnalyzer, NWB, MATLAB rez.mat, and recording-only readers (SpikeGLX, Open Ephys, MDA, probeinterface).
sorrel-cacheRebuildable derived-artifact cache. Owns content-addressed keys, rkyv archive I/O, atomic writes, and mmap-backed bytechecked reads; deleting it never loses user data.
sorrel-computeCPU kernels: LTTB downsampling, histograms, ISI / CCG, CMR + filter, mean snippet, GMM, drift, quality metrics, isolation distance.
sorrel-gpuwgpu compute pipelines (CMR median, biquad HP filter, mean snippet) sharing the device and queue with the renderer.
sorrel-dataGeneric Session<P>, CurationCommand, append-only Journal, save / replay, QC export, merge/split previews and suggestions.
sorrel-renderConcrete vertex types and monomorphised buffer builders for the trace and raster paths.
sorrel-uiegui widgets and views, generic over P: DataProvider.
sorrelBinary. Parses CLI, detects backend, instantiates SorrelApp<P>.
sorrel-pyOptional Python bridge (PyO3 / maturin) — exposes sorrel.open(recording, sorting) for SpikeInterface users.

The split is functional, not layered: each crate owns its concerns end to end, and the binary stitches one fully-monomorphised arm together per backend it supports.