diff --git a/preProcessing/CleanRez.m b/preProcessing/CleanRez.m index bb87bb8..f67f7bf 100644 --- a/preProcessing/CleanRez.m +++ b/preProcessing/CleanRez.m @@ -7,39 +7,81 @@ % phy format. If prior labels exist, "noise" labels will be appended to the % % existing cluster_group.tsv file % -% USAGE +% USAGE % -% cleanRez = CleanRez(rez, ) +% cleanRez = CleanRez(rez, ) % -% INPUTS +% INPUTS % -% rez rez file from kilosort (note post cleaning after sorting +% rez Rez file from Kilosort (after sorting, pre-cleaning). % -% optional list of property-value pairs (see table below) +% Optional property-value pairs (see below). % -% ========================================================================= -% Properties Values -% ------------------------------------------------------------------------- -% 'savepath' folder where phy files have already been exported -% (by default, undefined as you may run CleanRez before -% exporting the clean rez to phy). If provided, cluster -% labels will be saved in a cluster_groups.tsv file for phy -% 'mahalThreshold' spikes exceeding this threshold will be considered -% outliers and removed (set to Inf to not impose threshold, -% default = 12) -% 'minNumberOfSpikes' clusters with nSpikes