Replies: 9 comments 6 replies
-
It sounds like you want to plot the histogram: https://jonescompneurolab.github.io/hnn-core/stable/generated/hnn_core.viz.plot_spikes_hist.html#hnn_core.viz.plot_spikes_hist ? Or is this different from that? I am a little lost why you would want to do time-frequency though ... you would get steps in your continuous signal, which will create artifacts in the time-frequency. Or am I missing something? |
Beta Was this translation helpful? Give feedback.
-
We can certainly implement if this is something that the comp neuro community typically look at ... an example figure from a paper would be helpful |
Beta Was this translation helpful? Give feedback.
-
@jasmainak |
Beta Was this translation helpful? Give feedback.
-
humm ... an example plot would really help! we also have this: https://jonescompneurolab.github.io/hnn-core/stable/generated/hnn_core.CellResponse.html#hnn_core.CellResponse.mean_rates @ntolley any suggestion how we could incorporate this in our API? |
Beta Was this translation helpful? Give feedback.
-
@jasmainak, Thanks for prompt response. What we need is more of the collective (or sum) of cells activity rather than the mean - hope that explains it. |
Beta Was this translation helpful? Give feedback.
-
There's quite a few ways to achieve this. In the most general sense what you're looking to do is convolve the spike train with a kernel to calculate an "instantaneous spike rate". The choice of convolution kernel is up to you because instantaneous spike rate is a bit of an arbitrary term. In the simplest case you use a square kernel with a predefined length, this gives you you a moving average/sliding window. But you could also consider an exponential kernel, or alternative shapes that don't produce a hard cutoff that is susceptible to artifacts in the output time series. The |
Beta Was this translation helpful? Give feedback.
-
It's a bit unclear to me how much functionality we should add to hnn-core since this is handled by existing packages, and there's a lot of degrees of freedom in how you carry it out. @wagdy88 take a look at the link above and see if it fits your needs. I think with |
Beta Was this translation helpful? Give feedback.
-
Thanks @ntolley, will take a look at the link :) |
Beta Was this translation helpful? Give feedback.
-
package looks decent. @ntolley do you use it yourself? We could provide a function to export the spike train to their format? |
Beta Was this translation helpful? Give feedback.
-
Hello,
We would like to plot a time frequency analysis from the raster. We thought of calculating/adding the spikes within a sliding window to get a continuous signal from the discrete raster signals. Is there a way to do so in hnn_core?
Thanks
Mohamed
Beta Was this translation helpful? Give feedback.
All reactions