Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] add UnitSeries neurodata_type #245

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions core/nwb.ecephys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ groups:
- name: electrodes
neurodata_type_inc: DynamicTableRegion
doc: DynamicTableRegion pointer to the electrodes that this time series was generated from.
links:
- name: electrode_group
target_type: ElectrodeGroup
quantity: '?'

- neurodata_type_def: SpikeEventSeries
neurodata_type_inc: ElectricalSeries
Expand Down Expand Up @@ -83,6 +87,11 @@ groups:
dtype: text
value: seconds
doc: Unit of measurement for timestamps, which is fixed to 'seconds'.
links:
- name: unit_series
target_type: UnitSeries
doc: Link to the UnitSeries that holds the unit ids for each waveform.
quantity: '?'

- neurodata_type_def: FeatureExtraction
neurodata_type_inc: NWBDataInterface
Expand Down Expand Up @@ -213,6 +222,10 @@ groups:
- name: device
target_type: Device
doc: Link to the device that was used to record from this electrode group.
- name: spike_event_series
target_type: SpikeEventSeries
doc: Link to the SpikeEventSeries that holds the recorded spike snippets for this electrode group.
quantity: '?'

# The types below have been deprecated
- neurodata_type_def: ClusterWaveforms
Expand Down
30 changes: 30 additions & 0 deletions core/nwb.misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,33 @@ groups:
- null
doc: Spike waveform standard deviation for each spike unit.
quantity: '?'

- neurodata_type_def: UnitSeries
neurodata_type_inc: TimeSeries
doc: Unit spike times - a stream of IDs of spiking units.
datasets:
- name: data
dtype: int
doc: The index of the spike unit in the DynamicTableRegion "units".
attributes:
- name: resolution
dtype: float
value: -1.0
doc: Value is -1.0. Indices do not have resolution.
- name: unit
dtype: text
value: index
doc: Value is 'index'
dims:
- num_times
shape:
- null
links:
- name: units
target_type: Units
doc: Link to the Units table that is being indexed.
- name: spike_event_series
target_type: SpikeEventSeries
doc: Link to the SpikeEventSeries that holds the recorded spike snippets for each spike event.
quantity: '?'