detectSpikesTetrodes: Detect spikes on the channels of a tetrode.

Description Usage Arguments Value

View source: R/SpikeExtraction.R

Description

This loop for each channel of a tetrode, detect the spikes by calling detectSpikesFromTrace(). The spikes occurring almost simultaneously on different channels are merged with mergeSimultaneousSpikes(). Assumes any low frequency components were filtered out before calling this function.

Usage

1
2
3
detectSpikesTetrodes(data, samplingRate, powerWindowSizeMs, powerWindowSlideMs,
  SDThreshold, simultaneousSpikeMaxJitterMs, spikeDetectionRefractoryMs,
  noDetectionBeginEndMs = 0.5)

Arguments

data

Matrix containing the spikes and some noise, one channel per column

samplingRate

Sampling rate of the trace

powerWindowSizeMs

Window size when calculating power (root mean square)

powerWindowSlideMs

Shift of the window in ms between estimation of power

SDThreshold

Power threshold for spike detection.

simultaneousSpikeMaxJitterMs

Use to join spikes detected across tetrode as near the same time

spikeDetectionRefractoryMs

Refractory period in spike detection on a single channel

noDetectionBeginEndMs

Period at beginning and end of trace where nothin is detected because we can't get the waveform

Value

list containing the spikeTimes and powerThreshold


kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.