radiens_core.models.spikes
Spike sorting and neural recording domain models.
| CLASS | DESCRIPTION |
|---|---|
ChannelSpikeData |
Spike timestamps and neuron labels for a single recording channel. |
NeuronInfo |
Descriptive statistics for one sorted neuron, as recorded on one site. |
NeuronSpikeData |
Spike timestamps for a single sorted neuron. |
NeuronsResult |
Neuron descriptors organized by recording channel. |
SpikesSiteSpec |
Spike-detection settings for a single recording site. |
SpikesSpec |
Metadata of a spikes fileset. |
Unit |
One sorted cell, merged from the per-site listings in |
Classes
ChannelSpikeData
Bases: BaseModel
Spike timestamps and neuron labels for a single recording channel.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ntv_chan_idx |
Native channel index.
TYPE:
|
timestamps |
Spike timestamps in seconds, shape |
labels |
Integer neuron label per spike, shape |
waveforms |
Spike waveforms in µV, shape
|
site_ntv_chan_idx |
The channel each entry of the waveform site axis was
recorded on, length |
NeuronInfo
Bases: BaseModel
Descriptive statistics for one sorted neuron, as recorded on one site.
| ATTRIBUTE | DESCRIPTION |
|---|---|
neuron_id |
Unique neuron identifier string.
TYPE:
|
site_ntv_chan_idx |
Native channel index of the site this listing is for.
TYPE:
|
spike_label |
Neuron label as a string (e.g.
TYPE:
|
spike_count |
Spikes of this neuron on this site.
TYPE:
|
spike_rate |
Mean spike rate in Hz.
TYPE:
|
mean_abs_peak_wfm |
Mean absolute peak waveform amplitude.
TYPE:
|
snr |
Signal-to-noise ratio.
TYPE:
|
pos_probe |
Probe coordinate |
pos_tissue |
Tissue coordinate |
NeuronSpikeData
Bases: BaseModel
Spike timestamps for a single sorted neuron.
| ATTRIBUTE | DESCRIPTION |
|---|---|
label |
Integer neuron label. Correlates with
TYPE:
|
ntv_chan_idx |
Native channel index of the primary recording site for this
neuron.
TYPE:
|
timestamps |
Spike timestamps in seconds, shape |
waveforms |
The neuron's spike waveforms in µV, shape
|
site_ntv_chan_idx |
The channel each entry of the waveform site axis was
recorded on, length |
detect_ntv_chan_idx |
The channel that detected each spike, shape |
NeuronsResult
Bases: BaseModel
Neuron descriptors organized by recording channel.
| ATTRIBUTE | DESCRIPTION |
|---|---|
neurons_by_channel |
Map from native channel index to a list of neuron descriptors detected on that channel.
TYPE:
|
SpikesSiteSpec
Bases: BaseModel
Spike-detection settings for a single recording site.
A threshold is None when spike detection is not active on that polarity.
| ATTRIBUTE | DESCRIPTION |
|---|---|
ntv_chan_idx |
Native channel index of the site.
TYPE:
|
pos_threshold_uv |
Positive detection threshold in microvolts.
TYPE:
|
pos_threshold_sd |
Positive detection threshold in noise standard deviations.
TYPE:
|
neg_threshold_uv |
Negative detection threshold in microvolts.
TYPE:
|
neg_threshold_sd |
Negative detection threshold in noise standard deviations.
TYPE:
|
neighbor_ntv_chan_idx |
Native channel indices of this site's detection neighborhood, ordered by distance from it. This is the order the site axis of a spike waveform follows after its own row, so it is how a waveform row is attributed to a channel. |
neighbor_distance_um |
Distance to each neighbor in microns, parallel to
|
neighbor_radius_um |
Radius the neighborhood was selected within, in microns.
TYPE:
|
SpikesSpec
Bases: BaseModel
Metadata of a spikes fileset.
Reports the detection settings the spike fileset was produced with, so a
caller holding an on-disk .spikes fileset can tell how it was generated.
| ATTRIBUTE | DESCRIPTION |
|---|---|
biointerface_id |
ID of the spikes fileset.
TYPE:
|
dataset_uid |
UID of the dataset the fileset was sorted from.
TYPE:
|
num_neurons |
Number of distinct neuron labels across all sites, not counting unclustered spikes.
TYPE:
|
num_sites |
Number of amplifier channels in the dataset.
TYPE:
|
enabled_channel_indices |
Native channel indices of enabled recording sites, sorted in ascending order. |
time_range |
Full time range of the recording in seconds |
spike_time_range |
Time range over which spike data is available in seconds
|
req_num_neighbors |
Largest number of neighbors any site's detection neighborhood holds.
TYPE:
|
neighborhood_radius_um |
Detection neighborhood radius in microns.
TYPE:
|
sites |
Per-site detection thresholds, in the dataset's channel order.
TYPE:
|
Unit
Bases: BaseModel
One sorted cell, merged from the per-site listings in NeuronsResult.
get_neurons() lists a cell under every site that recorded it, each listing with
that site's share of the spikes. spike_count and spike_rate are summed over the
listings; site_ntv_chan_idx, snr and probe_y come from the listing with the most
spikes. Unclustered spikes (label 0) and clusters marked bad or delete are
not units.
| ATTRIBUTE | DESCRIPTION |
|---|---|
label |
The sorter's integer label, which spike trains and rasters are keyed by. Unique within a probe; on a multi-probe recording two units can share it.
TYPE:
|
neuron_id |
Unique across the fileset and stable across the per-site listings.
TYPE:
|
site_ntv_chan_idx |
Native index of the site that saw the most spikes.
TYPE:
|
spike_count |
Spikes summed over the cell's listings.
TYPE:
|
spike_rate |
Mean rate in Hz summed over the cell's listings.
TYPE:
|
snr |
SNR at
TYPE:
|
probe_y |
Depth coordinate of
TYPE:
|