Skip to content

Commit

Permalink
duplicate spikes - gui loading bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie-Fabre committed Oct 29, 2023
1 parent 5b011e8 commit bb82695
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 350 deletions.
2 changes: 1 addition & 1 deletion loading/bc_loadMetricsForGUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
~, rawWaveforms.average, rawWaveforms.peakChan, signalToNoiseRatio] = ...
bc_removeDuplicateSpikes(ephysData.spike_times_samples, ephysData.spike_templates, ephysData.template_amplitudes,...
[], rawWaveforms.average, rawWaveforms.peakChan,[],...
param.removeDuplicateSpikes, param.duplicateSpikeWindow_s, ...
qMetric.maxChannels, param.removeDuplicateSpikes, param.duplicateSpikeWindow_s, ...
param.ephys_sample_rate, param.saveSpikes_withoutDuplicates, savePath, param.recomputeDuplicateSpikes);

% load other gui stuffs
Expand Down
2 changes: 1 addition & 1 deletion qualityMetrics/bc_checkParameterFields.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
%% Default values for fields
% duplicate spikes
defaultValues.removeDuplicateSpikes = 0;
defaultValues.duplicateSpikeWindow_s = 0.00005;
defaultValues.duplicateSpikeWindow_s = 0.0001;
defaultValues.saveSpikes_withoutDuplicates = 1;
defaultValues.recomputeDuplicateSpikes = 0;

Expand Down
2 changes: 1 addition & 1 deletion qualityMetrics/bc_qualityParamValues.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

% duplicate spikes parameters
param.removeDuplicateSpikes = 1;
param.duplicateSpikeWindow_s = 0.0000025; % in seconds
param.duplicateSpikeWindow_s = 0.00001; % in seconds
param.saveSpikes_withoutDuplicates = 1;
param.recomputeDuplicateSpikes = 0;

Expand Down
147 changes: 0 additions & 147 deletions qualityMetrics/bc_removeDuplicateSpikes.asv

This file was deleted.

3 changes: 2 additions & 1 deletion qualityMetrics/bc_removeDuplicateSpikes.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
batch_templateAmplitudes = templateAmplitudes(start_idx:end_idx);

[~, ~, batch_removeIdx] = removeDuplicates(batch_spikeTimes_samples, ...
batch_spikeTemplates, batch_templateAmplitudes, duplicateSpikeWindow_samples, spikeTemplates_flat);
batch_spikeTemplates, batch_templateAmplitudes, duplicateSpikeWindow_samples, ...
maxChannels, spikeTemplates_flat);

duplicateSpikes_idx(start_idx:end_idx) = batch_removeIdx;

Expand Down
199 changes: 0 additions & 199 deletions qualityMetrics/bc_runAllQualityMetrics.asv

This file was deleted.

0 comments on commit bb82695

Please sign in to comment.