Skip to content

2.3.6 getEventTable()

Shun Li edited this page Dec 7, 2023 · 3 revisions

Overview

Given lists of behavior events, create a event table that is used for ingestion into the Sabatini Datajoint pipeline.

Inputs and options

Required inputs

  • events: cell, list of events. Note that the first cell in events have to be allTrials (i.e. start index of every trials, see getTrials()) for more information.
  • params: the params struct for each session. See loadSessions() for more information.

Options

  • typeName: cell, default is {"trialStart","airpuff","water","lick","tone","redStim"}; stores the name of each events. Should be the same order as in events.

Outputs

  • eventTable: table, event table that is ready to be ingested into the Datajoint pipeline. See documentation of the Sabatini datajoint pipeline for more information.

Examples

events{1} = allTrials;      events{2} = airpuffIdx;
events{3} = waterIdx;       events{4} = rightLickON;
events{5} = find(leftTone); events{6} = optoCue;

eventTable = getEventTable(events,params);

image

Clone this wiki locally