@@ -208,9 +208,11 @@ For dense waveforms, sparsity can also be passed as an argument.
208208
209209.. code-block :: python
210210
211- pc = sorting_analyzer.compute(input = " principal_components" ,
212- n_components = 3 ,
213- mode = " by_channel_local" )
211+ pc = sorting_analyzer.compute(
212+ input = " principal_components" ,
213+ n_components = 3 ,
214+ mode = " by_channel_local"
215+ )
214216
215217 For more information, see :py:func: `~spikeinterface.postprocessing.compute_principal_components `
216218
@@ -243,9 +245,7 @@ each spike.
243245
244246.. code-block :: python
245247
246- amplitudes = sorting_analyzer.compute(input = " spike_amplitudes" ,
247- peak_sign = " neg" ,
248- outputs = " concatenated" )
248+ amplitudes = sorting_analyzer.compute(input = " spike_amplitudes" , peak_sign = " neg" )
249249
250250 For more information, see :py:func: `~spikeinterface.postprocessing.compute_spike_amplitudes `
251251
@@ -263,15 +263,17 @@ with center of mass (:code:`method="center_of_mass"` - fast, but less accurate),
263263
264264.. code-block :: python
265265
266- spike_locations = sorting_analyzer.compute(input = " spike_locations" ,
267- ms_before = 0.5 ,
268- ms_after = 0.5 ,
269- spike_retriever_kwargs = dict (
270- channel_from_template = True ,
271- radius_um = 50 ,
272- peak_sign = " neg"
273- ),
274- method = " center_of_mass" )
266+ spike_locations = sorting_analyzer.compute(
267+ input = " spike_locations" ,
268+ ms_before = 0.5 ,
269+ ms_after = 0.5 ,
270+ spike_retriever_kwargs = dict (
271+ channel_from_template = True ,
272+ radius_um = 50 ,
273+ peak_sign = " neg"
274+ ),
275+ method = " center_of_mass"
276+ )
275277
276278
277279 For more information, see :py:func: `~spikeinterface.postprocessing.compute_spike_locations `
@@ -329,6 +331,12 @@ Optionally, the following multi-channel metrics can be computed by setting:
329331 Visualization of template metrics. Image from `ecephys_spike_sorting <https://github.com/AllenInstitute/ecephys_spike_sorting/tree/v0.2/ecephys_spike_sorting/modules/mean_waveforms >`_
330332 from the Allen Institute.
331333
334+
335+ .. code-block :: python
336+
337+ tm = sorting_analyzer.compute(input = " template_metrics" , include_multi_channel_metrics = True )
338+
339+
332340 For more information, see :py:func: `~spikeinterface.postprocessing.compute_template_metrics `
333341
334342
@@ -340,10 +348,12 @@ with shape (num_units, num_units, num_bins) with all correlograms for each pair
340348
341349.. code-block :: python
342350
343- ccg = sorting_analyzer.compute(input = " correlograms" ,
344- window_ms = 50.0 ,
345- bin_ms = 1.0 ,
346- method = " auto" )
351+ ccg = sorting_analyzer.compute(
352+ input = " correlograms" ,
353+ window_ms = 50.0 ,
354+ bin_ms = 1.0 ,
355+ method = " auto"
356+ )
347357
348358 For more information, see :py:func: `~spikeinterface.postprocessing.compute_correlograms `
349359
@@ -357,10 +367,12 @@ This extension computes the histograms of inter-spike-intervals. The computed ou
357367
358368.. code-block :: python
359369
360- isi = sorting_analyer.compute(input = " isi_histograms"
361- window_ms = 50.0 ,
362- bin_ms = 1.0 ,
363- method = " auto" )
370+ isi = sorting_analyer.compute(
371+ input = " isi_histograms"
372+ window_ms = 50.0 ,
373+ bin_ms = 1.0 ,
374+ method = " auto"
375+ )
364376
365377 For more information, see :py:func: `~spikeinterface.postprocessing.compute_isi_histograms `
366378
0 commit comments