Skip to content
jamesjun edited this page Dec 18, 2017 · 9 revisions

Detect spikes from each site and group coincident spikes (within time range P.spkRefrac_ms) from nearby sites (within spatial range P.maxDist_site_um, r1 in the figure). Coincident spikes are removed if there exists larger spikes within the spatiotemporal range, but spike waveforms occurring in adjacent sites are later captured (mn2tn_wav_()) by including the sites within a fixed radius (P.maxDist_site_spk_um, r2 in the figure).

Syntax

  • [viTime_spk, vrAmp_spk, viSite_spk] = detect_spikes_(mnWav3, vnThresh_site, vlKeep_ref, P)

Input

  • mnWav3: filtered traces (nSamples_load x nSites: int16)
  • vnThresh_site: Detection threshold for each site (nSites x 1: int16).
  • vlKeep_ref: logical vector to enable spike detection (nSamples_load x 1: logical)
  • P: Parameters struct (P)

Output

  • viTime_spk: Spike times
  • vrAmp_spk: Spike amplitudes
  • viSite_spk: Spike sites

Operations

See also

wav2spk_(), file2spk_(), detect_()

Clone this wiki locally