-
Notifications
You must be signed in to change notification settings - Fork 2
2.3.6 getEventTable()
Shun Li edited this page Dec 7, 2023
·
3 revisions
Given lists of behavior events, create a event table that is used for ingestion into the Sabatini Datajoint pipeline.
Required inputs
-
events: cell, list of events. Note that the first cell ineventshave to beallTrials(i.e. start index of every trials, seegetTrials()) for more information. -
params: theparamsstruct for each session. SeeloadSessions()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 inevents.
-
eventTable: table, event table that is ready to be ingested into the Datajoint pipeline. See documentation of the Sabatini datajoint pipeline for more information.
events{1} = allTrials; events{2} = airpuffIdx;
events{3} = waterIdx; events{4} = rightLickON;
events{5} = find(leftTone); events{6} = optoCue;
eventTable = getEventTable(events,params);
