You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fiber photometry from Doric system(.doric or .csv)
Session start time
The session start time is the reference time for all timestamps in the NWB file. We are using session_start_time from the Bpod output. (The start time of the session in the Bpod data can be accessed from the "Info" struct, with "SessionDate" and "SessionStartTime_UTC" fields.)
Bpod trial start time
We are extracting the trial start times from the Bpod output using the "TrialStartTimestamp" field.
frompymatreaderimportread_matbpod_data=read_mat("raw_Bpod/J069/DataFiles/J069_RWTautowait2_20230809_131216.mat")["SessionData"] # should contain "SessionData" named struct# The trial start times from the Bpod databpod_trial_start_times=bpod_data['TrialStartTimestamp']
The trial start times from the Doric acquisition can be obtained from one of the digital signals ("DigitalIO/DIO02" in .doric file, "DI/O-2" in .csv file).
Fiber Photometry Dataset
Data streams
Session start time
The session start time is the reference time for all timestamps in the NWB file. We are using
session_start_time
from the Bpod output. (The start time of the session in the Bpod data can be accessed from the "Info" struct, with "SessionDate" and "SessionStartTime_UTC" fields.)Bpod trial start time
We are extracting the trial start times from the Bpod output using the "TrialStartTimestamp" field.
Doric trial start time
The trial start times from the Doric acquisition can be obtained from one of the digital signals ("DigitalIO/DIO02" in .doric file, "DI/O-2" in .csv file).
Alignment
We are aligning the starting time of the fiber photometry, video and DLC interfaces to the Bpod interface.
We are computing the time shift from the Bpod trial start time to the Doric trial start time.
For example, the computed time shift for this session:
We are applying this time_shift to the timestamps for the raw fluorescence signals as:
The text was updated successfully, but these errors were encountered: