Repository navigation
Releases
0.4.0
[0.4.0] - 2026-11-03
Added
- Features view v2.
- Lasso, in every lasso view: Ctrl-drag draws it freehand, simplified to at most 64 nodes. On a closed lasso you can drag a node, double-click an edge to insert one, or right-click a node to delete it.
- k-means collision: the matrix and per-cell badges count the other parts' spikes and the other clusters' spikes inside a part's hull in all 16 projections.
- Layouts: compact, regular and expansive, matched to the pane's size.
- Features 3D. A GPU view with an orbit camera.
- Axis triples: the triples of the channel set's dimensions (time, PCs and spike depth) are ranked by silhouette, and the focused 2D plot's two axes can be pinned.
- Hulls: each cluster gets a hull, styled by whether the sorter or Sorrel made it. Split children show their parent's hull from before the split, and the lasso shows as a prism.
- Pre-merge hulls: a merged unit shows its sources as grey dashed hulls (legend "before merge (c1 + c2)") without hovering its History row.
- Kilosort 4 spike positions.
spike_positions.npyis read when present (finite, one row per spike, else ignored with a warning). Its y is the best per-spike depth for the Drift map, and its x joins depth in the Features 3D triples. - Pane controls. Any pane can be maximized (button,
Ctrl+Shift+M,:max) or popped out into its own window (button,:pop).F11toggles full screen. - Waveforms ↔ Features.
- Channels: Shift-click a Waveforms box or a Probe site to edit the Features channel set; Ctrl-click and Ctrl-right-click set channels A and B. The grid's A and B follow the best-separating pair.
- Alternatives: an alternatives strip ranks the other projections.
- Highlight: Waveforms outlines the focused plot's channels and draws the lassoed spikes and the PC shapes.
- Cross-talk between views.
- Spike brush: one set of spikes, picked by a lasso, a k-means part, an amplitude threshold or the ISI refractory band, is drawn in every spike view.
- Time range: Shift-drag along a time axis.
- Hover: the spike under the pointer is marked in the other views.
- Split preview: a lasso shows the inside and outside parts in ISI, Waveforms and Quality before you split.
- Ghosts: hovering a Similar, Suggest or History row previews the merge or the state before that edit.
- Colour: Features can be coloured by time or depth.
sorrelw.exe, a Windows launcher without a console window: it starts the
siblingsorrel.exewith the same arguments and exits. It ships in the
zip and as a standalonesorrel-<VERSION>-x86_64-windows-gui.exe; on Linux
and macOS it just execssorrel.sorrel install-shortcut [--remove]adds or deletes the Start-menu
shortcut tosorrelw.exe(Windows only). The Chocolatey package makes its
own, and winget lists both executables.- The Windows executables embed the app icon, version information and a
manifest (long paths, UTF-8 code page, per-monitor DPI). The window has the
app icon on every platform, and the Linux packages install it with the
menu entry. - Windows documentation: Start menu, SmartScreen and download verification,
uninstall and PowerShell completions. - The Windows tests (including the save tests) run on a hosted
windows-2025runner in CI. - Double-blind curation bench.
sorrel blind: splits a curated session (or, with--phy-curated, a Kilosort sort curated in phy) into the sorter's own output and the human's final state plusprovenance.json.sorrel diff TRUTH TEST --root INPUT: a spike-level score of two curations of one sort: unit recovery, merges, splits, noise exclusion and ARI, keyed by root cluster.scripts/bench_curation.py: runssorrel auto --llmand the MCP review agent against the human curation, with a sealed holdout and blinded adjudication.- Prompts:
SORREL_RUBRICandSORREL_REVIEWoverride the rubric and review instructions (the MCPreviewprompt andsorrel auto --llmshare one source), andsorrel agent-guide --prompt reviewprints the effective text. - Skill:
export-curated-sortpackages phy-curated sorts for the bench, one package per recording; recordings where the sorter found no units are excluded.
Changed
- The landing page moves from Zola to Plinth's
plinth-project: a
full-width animated hero (a still for reduced motion, a Waveforms crop on
phones), six focused gallery crops with a lightbox, a self-hosted Inter
subset, social metadata, and leaf-green download buttons that point at the
latest release..#sitestill merges the mdBook docs under/docs/, and
the README opens with the hero.
Notes
- Window pop-outs are exercised on Linux (X11 and Wayland). Native Windows
window-manager behavior is not covered by CI; the Windows smoke covers the
rest of the UI. - On Wayland a driver that offers only vsync (FIFO) can still stall when the
main window is fully covered, for example by a full-screen pop-out. Mesa's
RADV, ANV, radeonsi and lavapipe drivers offer mailbox and immediate, so
they are not affected. Sorrel's next step, should such a driver appear, is
to skip painting a covered main window.
Fixed
- A popped-out pane's window was destroyed and recreated whenever the main
window was hidden (minimized, or covered by a full-screen pop-out), soF11
in a pop-out never stuck. Pop-outs now stay alive, and remember full screen. - On Wayland the app froze while its main window was fully covered, for
example by a full-screen pop-out: a vsync present waits for a frame callback
a covered surface never gets. Sorrel now presents without waiting there. - A cluster made by a split now shows up in
list_clusters, can be relabelled
and is written tocluster_group.tsv, live, aftersaveand after a
reopen. It had no label slot, so everything that reads labels skipped it. sorrel share/joinwork in the Windows binary: GNU ld dropped the piying
handler registrations (hello: unknown message 'sorrel/hello/1'). The
Windows build now links with--no-gc-sections.- windows-gnu builds of the
sorrelandsorrelwbinaries keep the linkme
registrations on every build path (plain cargo andcargo installtoo),
not only the Nix release build:--no-gc-sectionsnow comes from the build
script. - Saving a Kilosort/phy dataset no longer fails on Windows with "user-mapped
section" (os error 1224): the provider keptspike_times.npyand
spike_clusters.npymapped after loading, and the save renames a new
spike_clusters.npyover it. A cache entry that is still mapped is skipped
by eviction and replacement, and retried by the next GC. joinrefuses a host path that is absolute, has a drive (C:\x), a
backslash, a colon or a.., which could write outside the join directory
on Windows.- A save, export or journal write that Windows refuses because phy, Python or
an Explorer preview holds the file now says to close that program and try
again. - The listener file and
sorrel statusno longer show
\\?\C:\...paths. - The "already open" message names the owning pid on Windows: it is kept in
<journal>.lock.pid, since the locked.lockfile cannot be read there. sorrel auto --llmon Windows: an npm.cmdshim no longer re-parses the
system prompt (it goes in a file forclaude, and opencode gets its prompt as
an attached file), and the Anthropic credential check also looks in
~/.config/anthropic.shareno longer tries to send the host's journal lock file, which Windows
will not let a second handle read.sorrel-relaywarns on Windows that its key file is not ACL-restricted; the
relay is documented as a Linux/macOS server.sorrel auto --llmno longer aborts the whole run, losing every paid
verdict, when one case has no card or one call fails. That case stays in
review. An existingevidence.jsonis renamed aside on every run.sorrel autorefuses--llmtogether with--discard-journalor
--reuse, and--llm=apichecks for credentials before the analysis.
On Windows the CLI backends use UTF-8 pipes and resolve npm.cmdshims.briefrelation lines,evalandprobereport presence over the same
50 bins as QC, and keep every active rule threshold when rounding.- A rule op
||>is rejected instead of never firing, and so is a NaN or
infinite rule value. - An agent edit validated before the human switched to propose-only is no
longer applied. - Sparse phy templates that name a channel twice keep both columns.
0.3.0
[0.3.0] - 2026-10-31
Breaking
- The MCP
renderandfeaturestools are removed; agents readbrief.
split_proposalsandsuggestno longer list spike indices, and
list_clustersreturns a TSV. Thetriageprompt is nowreview
(triagestill works).
Added
- A review brief for agents: the MCP
brieftool encodes a sort as text, with
a header sent once, a ledger of flagged units, one-row cards and merge/split
relations. Numbers are rounded only as far as no flag or rule threshold
changes. On a 110-unit sort it is 34 KB in full, against 1.5 MB for the old
per-unit tools. See Agents. evalcomputes a merge or split without applying it. Candidates have
handles (s12.1,m3) thatsplit,proposeanddecideaccept.probeanswersacg,ccg,compare,window,split C by=…andeval
queries.rules_evalandrules_apply: an agent writes threshold rules (now with
name,allconditions and|x|ops), sees only the units near a
threshold or at odds with Bombcell/UnitRefine, and applies them as one undo
step.decideapplies a batch of decisions as one undo step.cluster_qc.tsvgains waveform (trough-to-peak, half-width, extrema),
footprint (centroid, decay length, 80% radius, propagation), refractory,
burst, amplitude-dip and drift-slope columns, all usable in rules.sorrel auto --llmsends the brief: its header is cached with the rubric
and each case is one card row or one counterfactual line.evidence.json
stores the exact input with each verdict, and an olderevidence.jsonis
renamed aside, not deleted.- GitHub releases include a standalone
sorrel-<VERSION>-x86_64-windows.exe
next to the zip, checksummed inSHA256SUMS.txtand signed like the other
assets. sorrel auto --llmruns on the agent CLIs you are logged in to: bare
--llmusesclaude,--llm=codexand--llm=opencodethe others, and
--llm=apikeeps the Anthropic API. Tools are disabled and each case runs
in an empty directory.evidence.jsonrecords the backend inmodel.
Changed
- Bare
--llmnow uses theclaudeCLI instead of the Anthropic API, and
--llm-modelhas no default (each backend uses its own;claude-opus-5
forapi).--llmtakes its backend as--llm=NAME.
Fixed
- Sparse phy templates (
template_ind.npy) are mapped onto their probe
channels. They were read as if on channels 0 to n−1.
0.2.4
[0.2.4] - 2026-10-29
Breaking
sorrel <DATA_DIR>is nowsorrel open <DATA_DIR>. Baresorrelstarts
the launcher.sorrel --headless <DATA_DIR>is nowsorrel run --headless <DATA_DIR>.sorrel --export-qc DIRis nowsorrel qc <DATA_DIR> --out DIR.sorrel --clear-cache DIRis nowsorrel clear-cache <DATA_DIR>.sorrel serveis removed; usesorrel mcp.- The MCP listener file moved from
<DATA_DIR>/.sorrel/mcp.jsonto a per-user
directory:$XDG_RUNTIME_DIR/sorrel/mcp/<hash>.json(fallback
~/.cache/sorrel/mcp/;%LOCALAPPDATA%\sorrel\mcp\on Windows). Use
sorrel mcprather than reading it.
Added
- Tabs and a launcher in the GUI.
sorrel openadds a dataset as a tab to the
running window. The launcher offers Open dataset…, drag-and-drop and recent
datasets. Ctrl-O opens, Ctrl-W closes a tab, Ctrl-Tab and Ctrl-Shift-Tab
switch tabs. sorrel runruns the GUI in the foreground;--standalonealways starts a
separate window.sorrel status [--json]lists the running GUI, its tabs and session hosts.sorrel callruns one MCP tool from a shell.sorrel mcp toolslists the MCP tools offline;sorrel mcp configprints how
to register sorrel with an agent.sorrel agent-guideprints a primer for LLM agents.sorrel completionsfor bash, zsh, fish, elvish and PowerShell.sorrel describe --json.- History that never discards: undo moves back, an edit after an undo starts
a branch, and the whole tree survives saving and reopening. A History
pane lists every edit with who made it and when, marks branches and saves,
and goes back to any edit on click. See History. - One session host for the GUI, MCP agents and remote guests. Every edit is
journaled with its actor (you, an agent's client name, an algorithm, a
remote peer). sorrel mcp <DATA_DIR>connects an agent to the GUI or headless host on
the directory, or serves the dataset itself.sorrel run --headless <DATA_DIR>
runs the host without a window. See Agents.- Agent edits in the GUI: a toast names the agent and the edit, the touched
clusters are selected and tinted in the table, and the top bar lists the
connected agents with an activity dot. - Direct | Propose switch for agents. Under Propose, agent edits wait as
cards in the new Proposals pane; Accept applies one as your decision
(an accepted split keeps the agent as its method), Reject leaves the
not-merge / not-split memory. - Agents get
notifications/messagewhen someone else changes the session. - The Windows smoke test on a real runner now runs
sorrel mcpover stdio,
sorrel mcpattached to arun --headlesshost through its
%LOCALAPPDATA%listener file, andsorrel autothroughuv.exe.
Changed
- The curation journal is format v3, a tree of edits with their actor and
time, head moves and save seals. v1 and v2 journals are upgraded on open,
their undone commands kept as branches; sorrel 0.2.3 and earlier refuse a v3 journal
("not a sorrel journal (bad magic)") instead of truncating it. Remote protocol v3. - Saving no longer clears the undo history. For phy directories, the first
save that replaces a file keeps its original insorrel_original/(listed
insorrel_original/ROOT), and reopening replays the journal onto those
originals. - Opening a phy directory whose
spike_clusters.npyorcluster_group.tsv
changed outside sorrel since its last save (e.g. curated in phy) fails
instead of letting the next save overwrite that work.
--discard-journalnow renames the journal andsorrel_original/aside
instead of deleting them. - After a rescue save, undoing the rescue and saving again writes the
original per-spike arrays back; the directory no longer needs a reopen. - MCP agents can edit while the GUI is open;
propose,selectandselectionwork in the same
server. - Hovering the save status shows the save path or the full error. It no
longer says whether the undo history was sealed, because saving keeps it. - The winget and Chocolatey packages depend on uv (
astral-sh.uv,uv),
sosorrel autoworks right after install. - The Windows install docs say the packages install
uv, and the agents
page has a Windows MCP config example.
Fixed
sorrel autoon Windows findsuv.exeonPATH(it looked foruv) and
falls back topython, notpython3, when uv is missing.
0.2.3
[0.2.3] - 2026-10-29
Fixed
- The
sorrel-uicrate no longer ships its kittest snapshot PNGs (~25 MB),
which crates.io rejected as too large. This leftsorrel-uiandsorrel
unpublished at 0.2.2.
0.2.2
[0.2.2] - 2026-10-28
Added
- Unit origin: every unit is
Auto[<sorter>]orSorrel[Manual],
Sorrel[Algo:<name>]orSorrel[LLM:<name>], with direct parents and a
free-text note (:note). Auto units edited in sorrel are taggedtunedor
split; units phy already edited are taggedexternal. Saved in
cluster_sorrel_annotations.tsvand as a curation.jsonoriginlabel.
--sorter NAMEoverrides the detected sorter name. sorrel rescue: FDR-controlled matched-filter spike rescue for existing
units, with hybrid-injection recall checks.- In-place
AddSpikes: rescued spikes are journaled as one undoable batch. - Home Manager module (
homeManagerModules.default,programs.sorrel), and a
sorrel.desktopmenu entry in the Nix packages. checks.workspace-tests: every workspace test under nextest in the Nix
sandbox, the UI snapshot states on pinned lavapipe (SORREL_REQUIRE_GPU
fails instead of skipping). simit qualifies every x86_64-linux flake check
as an exact installable (nix-builds.yaml).
Save rewrites every per-spike array, with backups insorrel_original/.
Changed
- The curation journal is format v2 (
Splitrecords how the unit was made,
plusAddSpikes). v1 journals are upgraded on open; sorrel 0.2.x refuses
a v2 journal instead of truncating it. Remote protocol v2. - Suggestions are memoised per cluster. Re-ranking after an edit takes
137 ms instead of 807 ms on 1000 clusters and 2M spikes (about 5.7×). - Merge suggestions include drift-fragment pairs: nearby peak channels with
complementary firing over time. - Split suggestions ignore amplitude bimodality that bursting explains
(reasonburst_explained). - Per-cluster cache keys no longer include the journal head, so caches
survive unrelated edits.
Fixed
- The cluster table's "amp" column is mean spike amplitude × template
peak-to-peak, as in phy. It used to show the template peak alone, which
is the same for every cluster on unit-norm Kilosort templates. - The
sorrelcrate is published again. Its embedded SpikeInterface
sidecar (sorrel_auto.py) now lives inside the crate. 0.2.1's
crates.io release stopped atsorrelbecause the packaged crate could
not find the script; the other eight crates are on crates.io at 0.2.1.
Changed (UI)
- phy-parity views fit their panes.
- CCG, ISI, Waveforms and Scatter keep their main control on one row and
put the rest in a ⚙ popover, so toolbars no longer wrap or overlap. - Cluster table:
- The default columns (ID, ch, fr, n, qual, label) fit the panel, which
opens at 22% of the window. - depth, sh, amp, isi, tags, origin and note are opt-in from the header
menu. - Only the label cell is coloured, and descending sorts show ▼.
- The default columns (ID, ch, fr, n, qual, label) fit the panel, which
- Similar: drops the repeated filter block.
- Features:
- Selected clusters are drawn over dimmed background spikes.
- The grid adapts to the pane width, with square cells and readable
labels. - Axes fit the spikes shown.
- Waveforms: overlays the selected clusters by default, with a colour
legend. "overlap" (o) switches to phy's side-by-side layout. - CCG: cells keep a 120 px minimum and scroll; axes sit on the outer
edges; chips are readable. - ISI: overlays every selected cluster in one plot, with a shaded
refractory band and per-cluster "<1 ms" chips. - Scatter: fills its pane, rings the selection, and labels axes with
units. - The third selection colour is purple instead of red, so a selected
cluster no longer looks like an error.
- CCG, ISI, Waveforms and Scatter keep their main control on one row and
- Roomier layout.
- Text is 14 px, captions are at least 11 px, and controls and table rows are 24 px.
- The top bar is 36 px and tab bars are 30 px, with 6 px gaps between panes.
- The cluster panel opens at 340 px.
- Save state is always visible. A chip next to the title reads
"unsaved", "saved" or "save failed". Hovering it shows the save path,
whether the undo history was sealed, or the full error.- A Save button joins Undo, Redo and Merge, and Merge names its target
("Merge 2 -> c1"). - The save message no longer prints over the toolbar.
- A Save button joins Undo, Redo and Merge, and Merge names its target
- Cluster table.
- Numbers are right-aligned monospace.
- A selected row keeps its red and orange scores readable and shows its
selection colour in a bar at the left edge. - IDs no longer shift when a row is selected.
- The tags column appears only when some cluster has tags.
- Clicking a row's text now selects the cluster. It used to start a text
selection, and the Similar table had the same problem.
- New default layout.
- Three tab groups sit along the top: Shape, Compare and Assess.
- Below them, a Time group (Raster, Drift, Contam·time, PSTH) sits beside the trace.
- Saved per-dataset layouts are kept.
- Plot axes sit outside the data.
- Tick labels live in their own margins and units are axis titles, so labels no longer
collide with data or clip at pane edges. - Trace channel numbers have a gutter, and the trace has a time axis.
- The trace is drawn in neutral grey, so selection markers stand out.
- Tick labels live in their own margins and units are axis titles, so labels no longer
- Clearer panes.
- CCG: y-axis, ±50 ms ticks, a visible refractory band and a sparse-data note.
- PSTH: step bars and the per-event breakdown.
- Raster: selected clusters in their selection colour and the rest in neutral grey.
- Stats: marks where the selected cluster falls.
- Quality: every sub-score coloured and the weakest bold.
- Drift: "no measurable drift" instead of repeated ticks.
- Contam·time: says when there is too little data.
- Waveforms: use the cell height and show a scale bar.
- Probe: drawn to scale with channel labels.
- Dialogs.
- Quit: the destructive "Quit without saving" is red, and "Save & quit" is the focused default.
- Load error: shows the full path.
- Loading: larger, readable loading screen.
- Help: scrolls instead of clipping.
- Contrast.
- Secondary text, unchecked checkboxes, and plot grid and reference lines now meet
WCAG AA in both themes (pinned by a unit test). - Light-theme window shadows are soft.
- Secondary text, unchecked checkboxes, and plot grid and reference lines now meet
0.2.1
[0.2.1] - 2026-10-28
Fixed
- A GPU backend that rejects a compute kernel no longer kills Sorrel. Kernel
creation now runs under wgpu error scopes, so a driver or shader-compiler
failure (FXC on D3D12 was the case seen) leaves trace preprocessing on the
CPU and logs one warning naming the adapter and backend, instead of
panicking at startup. Uncaptured wgpu errors on Sorrel's own devices are
logged rather than fatal. sorrel gpu-checkreports "kernels unavailable" per adapter and carries
on with the others instead of panicking. It exits non-zero on a CPU/GPU
mismatch, or when no compute-capable adapter can run the kernels.
Changed (release)
- First release on winget (
winget install Caniko.Sorrel). The release
workflow now submits the manifests through the GitHub API; 0.2.0's
submission failed becausewingetcreateneeds .NET, which hosted
runners lack under wine. - The workspace crates publish to crates.io from CI in dependency order,
through simit's trusted publisher, instead of by hand. - Every change now runs the Windows build on a real
windows-2025runner:
gpu-checkon DX12, headlessqcandreport, a GUI launch with a
screenshot, and a Python wheel install.
0.2.0
[0.2.0] - 2026-10-26
Fixed (data integrity)
-
Old SpikeInterface phy exports load. Their
amplitudes.npyis int16 and
theirchannel_positions.npyint64. Integer arrays read where floats are
expected are now widened instead of rejected. -
sorrel autochanges:- Geometry check. On recordings whose channel positions look like
indices (< 5 µm apart, e.g. tetrode sorts), it warns and tags every
unitreview:geometry. Bombcell's and UnitRefine's spatial metrics are
meaningless there. On two labelled tetrode recordings it called 58 of 65
human-kept units noise. - Reruns are reproducible. The random spike sample is seeded, and the
analyzer cache is keyed on the extension parameters. - No full recompute after a save. The cache key is now the spike-train
values rather than the file bytes. bc:*reason tags follow SpikeInterface's rules. Bounds are
inclusive and NaN metrics fail where Bombcell says they do. Previously
the tags could name a rule the unit had passed. Labels were unaffected.
- Geometry check. On recordings whose channel positions look like
-
Per-spike arrays stored as
(n, 1)columns, as written by Kilosort 2 and
SpikeInterface'sexport_to_phy, now load. They used to fail with
"expected 1-D array". -
Saving no longer corrupts the next session.
Ctrl-Son a phy /
Kilosort directory now reseals the journal against the freshly written
spike_clusters.npy, and the binary seals every journal against its
data on open, so a reopen loads the saved state once instead of
replaying every edit (and every split) a second time on top of it.
Journals sealed against other data fail closed with a message naming
--discard-journal. SortingAnalyzer, NWB andrez.matsessions keep
their journal as the source of truth and are never resealed. -
The journal file is
sorrel.journal(it was never SQLite); a legacy
sorrel.sqliteis still picked up with a warning. -
quality_metrics.csvaccepts tab- and semicolon-separated files;
cluster_KSLabel.tsvseeds labels when there is nocluster_group.tsv
(and is no longer mistaken for a numeric metric);--export-qcworks
for every backend; the QC JSON key isfiring_ratelike the TSV. -
spike_clusters.npyis saved inspike_times.npyrow order. It used to be
written in time order, which misaligned it withamplitudes.npy,
pc_features.npyand the other per-spike arrays whenever the source was
unsorted or had simultaneous spikes in different clusters.
Fixed (GPU)
- No more crashes on the OpenGL fallback. When wgpu picks a GL adapter
(old Intel iGPUs, NVIDIA without a Vulkan driver, VMs,WGPU_BACKEND=gl),
eframe gets no compute support; trace CMR and high-pass now stay on the
CPU there instead of panicking on pipeline creation. - Long trace windows no longer crash on any GPU. Windows longer than
about 2 s at 30 kHz exceeded the 65,535-workgroup and 128 MiB
storage-buffer limits; the kernels now check device limits and the trace
falls back to the CPU. - OpenGL on NVIDIA no longer loses the device. wgpu's indirect-call
validation builds a compute pipeline on every device, which NVIDIA's GL 3.3
EGL context cannot run. Sorrel issues no indirect calls, so it is off for
every Sorrel wgpu instance (WGPU_VALIDATION_INDIRECT_CALL=1restores it). - The Linux tarballs and the AppImage use the host's GPU drivers. They
used to ship a Nix-built binary (glibc 2.44,/nix/storeloader) that
either did not start on Ubuntu or Fedora or found no GPU. They are now
built with cargo-zigbuild against glibc 2.31 and load the host's
Vulkan/GL libraries, and with them its Mesa or NVIDIA driver. The
AppImage wraps that binary instead of a Nix closure. - The Windows release builds again.
aws-lc-sys(via libp2p-quic)
needs winpthreads'<sched.h>, which the MinGW compiler did not see.
Added (automatic curation)
-
sorrel auto: Kilosort output in, curated session out. An embedded
SpikeInterface (≥ 0.105) pipeline runs:- redundant-unit detection
- the
similarity_correlogramsandslaymerge presets - Bombcell and UnitRefine labels on the merged units
- with
--llm, a Claude verdict on the units the classifiers disagree on
or are unsure about, and on merges only one preset found
The structured numeric evidence and each verdict are kept in
evidence.json. Everything is applied as one undoable batch.
See Automatic curation. -
Cluster tags. Every automatic decision records its source (
src:*,
merged:*,bc:*,conf:*), and uncertain ones getreview:*.- Tags are journaled and undoable (
CurationCommand::Tag). - They are saved to
cluster_sorrel_tags.tsv(a phy column) and to a
tagscategory incuration.json. - The cluster table has a tags column and a review filter, and its
filter box matches tags. - A GUI edit clears the cluster's
review:*tags and addssrc:human.
- Tags are journaled and undoable (
-
sorrel apply --curation FILEimports a SpikeInterfacecuration.json
(labels, tags and merges) as one undoable batch. Importing the same
document again changes nothing. -
sorrel report --tag PREFIXrenders only matching clusters
(--tag review:gives the review queue). -
sorrel serveaddstagandevidence, andlist_clusterstakes a tag
filter.
Added (CLI and interchange)
- Python wheels on PyPI as
sorrel-ephys(pip install sorrel-ephys,
thenimport sorrel; PyPI'ssorrelis an unrelated project), also
attached to every GitHub release: onecp38-abi3wheel per
platform (manylinux_2_34 x86_64 / aarch64, win_amd64, macosx_11_0_arm64)
with thesorrelPython API and the GUI binary, assembled by
nix/wheel.nixfrom the release cross builds and uploaded by the release
workflow with PyPI trusted publishing.sorrel.launchalso finds
the bundled binary when the kernel's PATH lacks the environment's
scripts directory. - Windows packages on winget (
Caniko.Sorrel) and Chocolatey
(sorrel). The release workflow submits both from the release's
Windows zip on every stable tag. The repository now carries the
LICENSE-MITandLICENSE-APACHEtexts itsMIT OR Apache-2.0license
names. sorrel gpu-checklists every GPU adapter wgpu can see (vendor, backend,
driver) and checks CMR, high-pass and mean-snippet kernels against the CPU
on each, exiting non-zero on a mismatch. Headless GPU contexts (tests,
this command) honourWGPU_BACKEND,WGPU_ADAPTER_NAMEand
WGPU_POWER_PREF, like the GUI.clapcommand line with subcommands:qc,suggest [--json],
apply --rules FILE [--dry-run] [--save](QC-threshold auto-labels as
one undoable batch),report(self-contained HTML with per-cluster
metrics, template, ISI and ACG as inline SVG),serve(JSON-RPC 2.0
over stdio in MCP shape: metrics, suggestions, SVG plots, journaled
relabel / merge / split / undo / save),diff A.tsv B.tsv(confusion
table, Cohen's kappa, disagreements),journal dump|replay,
clear-cache.sorrel <DIR> [flags]still opens the GUI.- Full phy export (Cargo feature
phy-export, on by default):
sorrel export-phy <DIR> --out OUT [--copy-raw], theexport_phy
serve tool, an Export phy button andSession.export_phy(out)in
sorrel-pyall write a complete phy template-gui directory from any
backend. A phy source is copied with its curation applied. SortingAnalyzer,
NWB andrez.matsessions get mean templates computed from the raw trace.
params.pypoints at the raw file;--copy-raw(or an NWB source, whose
trace lives in memory) streams it intorecording.dat. - Every save also writes SpikeInterface's
curation.json
(format_version2) next to the phy files; labels (and, for
SortingAnalyzer folders, pending merges and splits) round-trip through
spikeinterface.curation.apply_curation. The file is read back on open
to seed labels. SortingAnalyzer unit ids are preserved. sorrel-py: in-processsorrel.Session(open, qc, suggest, labels,
set_label, merge, split, undo, redo, save, curation) sharing the GUI's
journal;open_analyzerkeeps its directory by default so the
curation survives, andread_curationloads it for SpikeInterface.- Library:
Session::version()(monotonic cache key),
Session::reseal,applied_commands,primary_template;
Journal::replay_at,n_records;sorrel_data::openand
sorrel_io::detectshared by the binary and the bindings;
DataProvider::unit_id.
Added (library, for the science views)
sorrel_compute::psth(peri-event histogram plus per-event relative
spike times) andsorrel_io::Events(events.csvtime,labelin
seconds, orevents.npy), the data side of an event-aligned view.sorrel_data::spike_depths: per-spike depth from PC-weighted centre of
mass with a template-peak fallback, the data side of a real drift map.sorrel_compute::subtract_channel_median_grouped: common-median
referencing within each shank, threaded through sorrel-render as
build_trace_vertices_{cfg,gpu}_shankedand a public
apply_preproc_cpu.
Changed (performance)
ClusterIndex::from_providermerges the per-cluster spike buckets with a
heap instead of an argmin scan: 1 M spikes at 1000 clusters 1.07 s →
75 ms, at 100 clusters 116 ms → 23 ms (bench
seed_amplitudes_cache,SORREL_BENCH_CLUSTERS)..npyfiles are memory-mapped and, when the on-disk type already
matches, copied with onememcpyinstead of decoded element by element;
peak memory per array drops from 2× to 1×.pc_features.npyand
templates.npyare shared (Arc) between the provider and the cluster
index instead of copied.- mtscomp
.cbin+.chrecordings (the IBL archive format) open
directly: pointparams.py:dat_path(or--dat) at the.cbinand
windows are inflated on demand with a small chunk cache.
Added (UI)
- Export phy b...