- A block corresponds to a recording session. Consequently, a full dataset will be composed of several blocks. A block should have annotations regarding the animal and all the dummy codes used in the different fields (e.g. if different trial types have specific numeric labels)
- Segments are used for trials. They should contain annotations regarding trial-specific variables, and event/epoch objects.
- Since this is a multi-area recording, channel indices correspond to a single area/bundle, and tetrode and channel information are ralegated to the annotations.
-
Construct a block corresponding to a single recording session. It contains annotations of the dummy codes used to trial parameters etc.
-
For every recording area, generate a
ChannelIndex
- The
ChannelIndex
es for every recording area are appended toblock.channel_indexes
.
- The
-
For every recorded neuron, generate a
unit
object with all the relevant annotations.- Append unit to the corresponding
ChannelIndex.units
- Set
unit.channel_index
to the correspondingChannelIndex
.
- Append unit to the corresponding
-
For every behavioral trial, generate a
Segment
object, with the relevant annotations (trial outcome, trial type, etc.) and anEvent
object.- Append the
Event
toSegment.events
- Append the segment to
block.segments
- Append the
-
For every unit
unit_n
, generate the spike train corresponding to a segmentsegment_m
, and construct aSpikeTrain
object.- Append the
SpikeTrain
sosegment.spiketrains
. - Append the
SpikeTrain
tounit.spiketrains
. - Set
SpikeTrain.unit=unit_n
. - Set
SpikeTrain.segment=segment_m
.
- Append the