-
Notifications
You must be signed in to change notification settings - Fork 158
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
[HELP] Asign the waveform of a spike_time #1279
Comments
What do you mean by concrete waveform? I think I understand the rest of your question. Like you want a vector of all voltages? |
Yes, I need a vector of all voltages to create a table similar like this: For example, in this case (the data are invented) if I plot the voltages of the first row, I could see the waveform of the spike that takes place in time 1.341 and belongs to cluster 1 |
Sorry I'm still not sure what your problem is exactly. So you have the waveforms, but based on your script you don't have the spike times? So you currently have cluster id and waveform values? |
I'm sorry, I don't think I'm explaining myself well. I have the cluster id and the peak times, so I can see the time of the first peak of a selected cluster, but I don't have the waveform of this particular peak. What I need is to know in which file the voltage points that make up a waveform are stored and to know the relationship between the waveform and the time at which that spike occurs. |
Cool. So in general those waveforms are stored in your raw data file. Often this file is the one that says If you take the waveforms that Phy is calculating they will be much rawer, which might be okay, but might not depending on the types of noise in your recording. Does that make more sense? |
More or less, but with the code I put in the first comment the waveforms variable turns out to be an array with a shape of (19041, 82, 12), which, as far as I understand, the first dimension of that three-dimensional array is the waveforms, each with 82 voltage points in 12 different channels(?). If this is correct, what I need to know is how to relate those waveforms to the time at which they occur. That is, of those 19041 waveforms, if my neuron 1 fires at second 3, which waveform is the one for that particular firing. |
Cool that's easy enough. Those should be your spikes. Which should be monotonic. So if you open the cluster 0: Sometimes people only want the peak waveform only which requires a bit more work. |
Great!!! tnaks for all your help!!! |
Hello!! I am analysing some data and I need to get a .txt file containing the neuron ID, the time at which each spike of that neuron occurs and the points that form the concrete waveform of that spike.
For this I am using phylib. I have managed to obtain for each cluster ID the points that form all the waveforms of all the spikes of that cluster ID using:
I need to know the relationship between the spike time and which points make up its concrete waveform.
Thanks for help!!!
The text was updated successfully, but these errors were encountered: