openreadout_spikes
Detect extracellular spikes per channel in raw electrophysiology recordings: band-pass filter, threshold by MAD noise, and return spike counts, rates, and times.
Instructions
Extracellular spike detection per channel: band-pass, threshold at K x MAD noise, spike counts, rates and times.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "openreadout_spikes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file or data-set directory. | |
| sign | No | `neg` (default), `pos` or `both`. | |
| trace | No | Trace index (default 0; pick the broadband stream). | |
| strict | No | Refuse values the file's assurance does not validate (exit_code 6). Default: the server's. | |
| sweeps | No | Sweeps/segments (default all). | |
| band_hz | No | Band-pass `[low, high]` Hz (default [300, 6000]). | |
| channels | No | Channels (default all). | |
| max_times | No | Spike times per channel returned (default 200). | |
| threshold | No | Threshold in MAD noise units (default 5). | |
| max_seconds | No | Only the first N seconds of each sweep. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Input path. | |
| notes | No | Remarks. | |
| trace | Yes | Trace analysed. | |
| format | Yes | Format id. | |
| sweeps | Yes | Sweeps analysed. | |
| channels | Yes | One entry per channel. | |
| settings | Yes | Settings used (the high edge after clamping to 0.45 × the sampling rate). | |
| sample_rate_hz | Yes | Sampling rate, Hz. | |
| spike_count_total | Yes | Spikes on all channels. |