How to find the the starting and ending time of the spontaneous activity - visual coding data


I just downloaded a NWB file (502974807.nwb). I am interested in the spontaneous activity and wanted to find which part of the time is involved with the spontaneous time. I tried to open the epoch and it’s empty. Appreciate any help.


The AllenSDK has a function called “get_stimulus_epoch_table” that will return a table of the start and end of all stimulus epochs. This will tell you the start and end times (aligned the the 2P fluorescence traces) of each stimulus class. Here is the result for the file you were looking at:

Got it.

Thanks a lot.