-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stimulus/Response finding function #13
Comments
A later thought, maybe rather than using the Stim sheet we could use a different sheet to include/exclude certain ranges. e.g. maybe you want to average the rate over 2 time period, e.g. GRP initial response vs the later phase and want the normalization to be different than the monolithic stim window? Some maybe psuedocode: for each stim window: ##at the end you have a 2d list of Time points and stim normalized responses with jumps in time between the stimuli. Put all the data back together and sort by time ##also would need to add this double graph to plot.py (ugh) |
For stimulations which are somewhat discrete the timing is obvious (e.g. a brush stim) and the window/response is clear, but for others like GRP the response can be somewhat variable. I was thinking it would be useful to implement a function which figures out where the stimulus actually starts, i.e. within a broad window it finds the most common start time as well as the 95% confidence of the onset.
e.g. start times for responses within a broad window from the frame that the knob is turned to ~1-2 minutes after the drug is washed out could be compiled then plot them as a histogram to find the onset time?
Another possibility is to use the spikes in ones/zeros sheet and sum each time point, normalize to the max (e.g. when the max number of cells (e.g. 25) are active, that becomes 100%) and then find the start time which encompasses the 95th percentile?
Open to ideas, I just thought it would help refine the CICADA windows so that we didn't have to spend quite as much time guessing at when each population starts to become active due to the varying depth and kinetics of the drugs.
The text was updated successfully, but these errors were encountered: