First of all, thanks again for writing this useful package.
I am analysing neuropixel data of simple sensory perception experiments. However, the stimulation structure doesn't seem amenable to the ZETA test. The stimulation protocol is a series of alternating forward and backward whisker stimulations separated by 500ms. The figure below illustrates this:

My plan was to treat the first stimulation separately, and group the other stimulations in the trial together.
I would like to use the 15 second inter-trial interval as the baseline, but this necessitates using the whole 5 second window.
For the first stimulation I thought I could use the baseline before the stimulation. However, the code was not intended for this purpose. Another idea was to take each trial's stimulation time and subtract a few seconds from these times. Then, I would just subtract this time from the calculated onset latencies.
Do you have any insights on this? Apologies if I am misunderstanding something fundamental!
As an aside, I notice that the code has a harder time with onset latencies of inhibitory responses, which partly drove me to wanting to include some baseline before the stimulus time. My rationale was that if the IFR uses the spike times as anchors for the calculation, then it may be able to more accurately interpolate the firing rate in the inhibition window if some baseline was included before the stimulation.
Any clarification on this would be appreciated.
Thank you for your time and patience.
First of all, thanks again for writing this useful package.
I am analysing neuropixel data of simple sensory perception experiments. However, the stimulation structure doesn't seem amenable to the ZETA test. The stimulation protocol is a series of alternating forward and backward whisker stimulations separated by 500ms. The figure below illustrates this:
My plan was to treat the first stimulation separately, and group the other stimulations in the trial together.
I would like to use the 15 second inter-trial interval as the baseline, but this necessitates using the whole 5 second window.
For the first stimulation I thought I could use the baseline before the stimulation. However, the code was not intended for this purpose. Another idea was to take each trial's stimulation time and subtract a few seconds from these times. Then, I would just subtract this time from the calculated onset latencies.
Do you have any insights on this? Apologies if I am misunderstanding something fundamental!
As an aside, I notice that the code has a harder time with onset latencies of inhibitory responses, which partly drove me to wanting to include some baseline before the stimulus time. My rationale was that if the IFR uses the spike times as anchors for the calculation, then it may be able to more accurately interpolate the firing rate in the inhibition window if some baseline was included before the stimulation.
Any clarification on this would be appreciated.
Thank you for your time and patience.