phy
phy copied to clipboard
[HELP] Asign the waveform of a spike_time
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:
model = load_model( path/to/params.py)
cluster_id = int(271) # second argument: cluster ID
waveforms = model.get_cluster_spike_waveforms(cluster_id)
I need to know the relationship between the spike time and which points make up its concrete waveform.
Thanks for help!!!