- 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
ChannelIndexes for every recording area are appended toblock.channel_indexes.
- The
-
For every recorded neuron, generate a
unitobject with all the relevant annotations.- Append unit to the corresponding
ChannelIndex.units - Set
unit.channel_indexto the correspondingChannelIndex.
- Append unit to the corresponding
-
For every behavioral trial, generate a
Segmentobject, with the relevant annotations (trial outcome, trial type, etc.) and anEventobject.- Append the
EventtoSegment.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 aSpikeTrainobject.- Append the
SpikeTrainsosegment.spiketrains. - Append the
SpikeTraintounit.spiketrains. - Set
SpikeTrain.unit=unit_n. - Set
SpikeTrain.segment=segment_m.
- Append the