RemoveCorrSpikes(d,​Fs,sptm,varargin)

removes false-positive neural spikes from a multi channel data matrix via inter-chan correlations
62 Descargas
Actualizado 17 feb 2016

Ver licencia

% --------[sptm,spam] = RemoveCorrSpikes(d,Fs,sptm,varargin)-------------
% Removes spikes from multichannel data that are highy correlated with
% other channels...usually on order of .85 or so. This technique helps eliminate
% false postivie spikes due to movement artifacts common in all channels.
%
% This code is an interpretation of:
% Paralikar et. al. 2010
%
% >>> INPUTS >>>
% Required:
% d = data matrix. note, if vector, function will end without doing
% anything. Needs to be in COLUMN format
% Fs = sampling rate
% sptm = matrix of spike times in samples. also in column format
% Optional:
% corr_thresh = correlation coefficient threshold for removing spikes.
% Default = 0.8
% spamp = matrix of spike amplitudes...doesn't contribute to the
% function, but if included indexes removed from sptm will also be
% removed from spamp.
% spsnip = matrix of spike snips...doesn't contribute to the function but if
% included indexes removed from sptm will also be removed from spsnip
%
% <<< OUTPUTS <<<
% sptm = spiketimes after eliminating bad spikes...bad spikes will have
% value of 0.
% spamp = spike amps after eliminating bad spikes (OPTIONAL)
% spsnip = matrix of spikesnips after eliminating bad spikes (optional)
%
% By JMS, 11/12/2015
%---------------------------------------------------------------

Citar como

Jordan Sorokin (2024). RemoveCorrSpikes(d,Fs,sptm,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/55439-removecorrspikes-d-fs-sptm-varargin), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2013a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0