Skip to content

Commit

Permalink
Remove duplicate channels for multiKilosort
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioFR8 committed Mar 3, 2023
1 parent 6700ece commit d4e068f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions preProcessing/preprocessSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function preprocessSession(varargin)
channels = cat(2,shanks{kilosortGroup==i});
excludeChannels = find(~ismember((1:session.extracellular.nChannels),channels));
excludeChannels = cat(2,excludeChannels,session.channelTags.Bad.channels);
excludeChannels = unique(excludeChannels);
kilosortFolder = KiloSortWrapper('SSD_path',SSD_path,'rejectchannels',excludeChannels);
if cleanRez
load(fullfile(kilosortFolder,'rez.mat'),'rez');
Expand Down

0 comments on commit d4e068f

Please sign in to comment.