Problems with spike-sorting

Dear tema behind Brainstormer I highly appriciate you
detailed manual for single unit spike sorting. However, I keep getting error massages when I want to do the supervised spike sorting. For the Waveclus I cannot save the result after I rejected or accepted the clusters.
See error massage below:

Brace indexing is not supported for variables of this type.

Error in wave_clus_aux>wave_clus_aux_OutputFcn (line 84) par =
USER_DATA{1};

Error in gui_mainfcn (line 262)
[varargout{1:nargout}] = feval(gui_State.gui_OutputFcn,
gui_hFigure, [], gui_Handles);

Error in wave_clus_aux (line 36)
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

Error in plot_spikes (line 354)
opened_figs{1} = wave_clus_aux('Visible', 'off');

Error in wave_clus>save_clusters_button_Callback (line 515)
plot_spikes(handles)

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in wave_clus (line 63)
gui_mainfcn(gui_State, varargin{:});

Error in process_spikesorting_supervised>SaveElectrode (line 332)
wave_clus('save_clusters_button_Callback', save_button, ...

Error in process_spikesorting_supervised (line 28) eval(macro_method);

Error in panel_spikes>CreatePanel/ButtonSaveAndNextElectrode (line 91)
process_spikesorting_supervised('SaveElectrode');

For the UltraMegaSort2000 I get the message that there is no detected spikes, even though it is the same recording as I used for the WaveClus.

Error: [process_spikesorting_supervised] Electrophysiology >
Supervised spike sorting
** No spikes found. Make sure to run the unsupervised Spike Sorter first.
** File:
29_VGlut2xChR2_PPN/@rawRec_treadmill_xx_xx_-210929/data_0raw_Rec_tread
mill_xx_xx_-210929.mat

I appreciate any feedback.
Kind regards Michael Andersen

@mpompolas @Sylvain ?

Hi @mian,

from this message I think this is a Brainstorm issue.
I couldn't reproduce it on my machine so it might be dataset specific.
Maybe @Francois can help you with it if you send him your dataset.
Hopefully it's not going to be too big.

The fact that one spike sorter detects spikes doesn't necessarily mean that the others will do as well.
There is a config file with a very big list of parameters to play with on each spike-sorter. The threshold for the spike-detection is a very important one, you should probably make sure that it is set properly.
More information regarding the spike-sorters can be found on their GitHub repository.

Just to make sure, since we encountered this in the past:
are your recordings from invasive, highly sampled electrodes (>=20kHz)?

The new version of the ephys toolbox is out!

Github commit: https://github.com/brainstorm-tools/brainstorm3/commit/f402a427f5d3a89eb59e28d3c107ab18005bdce1

Updated tutorials: https://neuroimage.usc.edu/brainstorm/Tutorials#Multiunit_electrophysiology