Skip to content

Commit 3d4fd91

Browse files
authored
Improve spike sorting docs (#11)
1 parent abb62d2 commit 3d4fd91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

neuroplatform-docs/np_utils/spikesorting.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"metadata": {},
127127
"outputs": [],
128128
"source": [
129-
"events_df = sorter.run_spike_sorting(\n",
129+
"processed_spike_events_df = sorter.run_spike_sorting(\n",
130130
" start, start + timedelta(minutes=20), fs_id=EXP_NAME, electrode_nb=ELECTRODE\n",
131131
")"
132132
]
@@ -234,9 +234,9 @@
234234
"\n",
235235
"You may also use some of the attributes of the SpikeSorting object to make your own plots :\n",
236236
"\n",
237-
"- `raw_spikes_df` : DataFrame containing the raw spikes, with clustering results.\n",
238-
"- `processed_spike_events_df` : DataFrame containing the spike events with clustering results.\n",
239-
"- `dimred_method_spikes.fit_data_df` : DataFrame containing the dimensionality reduction, with clustering results.\n",
237+
"- `sorter.raw_spikes_df` : DataFrame containing the raw spikes, with clustering results. Each time point is a row, as such the number of points per event will vary depending on the specified time window.\n",
238+
"- `sorter.processed_spike_events_df` : DataFrame containing the spike events with clustering results (also returned by `sorter.run_spike_sorting()`). Each row corresponds to a spike event.\n",
239+
"- `sorter.dimred_method_spikes.fit_data_df` : DataFrame containing the dimensionality reduction, with clustering results. Each column corresponds to a component, along with the cluster assignment. Each row corresponds to a (processed) spike.\n",
240240
"\n",
241241
"```{hint}\n",
242242
"Make sure to copy those DataFrames before modifying them, as they are directly linked to the SpikeSorting object.\n",

0 commit comments

Comments
 (0)