phy icon indicating copy to clipboard operation
phy copied to clipboard

[HELP] Asign the waveform of a spike_time

Open Lorena-J opened this issue 8 months ago • 8 comments

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!!!

Lorena-J avatar Jun 03 '24 11:06 Lorena-J