-
Notifications
You must be signed in to change notification settings - Fork 22
post_merge_()
After the initial clustering using DPCLUS, units with similar event waveforms (averaged raw spike waveforms from nearby sites) are merged if their correlation score exceeds P.maxWavCor. Since the probe drift changes the spike waveforms, averaged waveforms are computed at three depth ranges per unit using the center-of-mass positions. The spike position is computed by the center of mass (CoM) using the site positions and the peak spike amplitude at each site (spk_pos_()). Three depth ranges are set using 1/3, 2/3 quantiles as boundaries. Since each unit has three average waveforms, maximum correlation score is taken from the 3x3 correlation matrix for each unit pair. Time shift is applied between a pair of unit (P.spkRefrac_ms = 0.25 ms) to find the maximum cross-correlation value.
Clusters are merged with most similar cluster recursively.
- [S_clu, S0] = post_merge_(S_clu, P, fPostCluster)
- S_clu
- P
- fPostCluster: flag to call postCluster_() function. Defauult: 1. This function assigns the cluster membership
- S_clu: Cluster index S_clu.viClu gets updated, as well as cluster quality metrics, mean unit waveforms and waveform correlation matrix (S_clu.mrWavCor).
- S0
- postCluster_(): Assign spike memberships based on Rho and Delta values (DPCLUS)
- post_merge_wav_(): Apply automated merging based on the waveform similarity
- S_clu_position_(): Compute cluster positions by computing the center of mass
- S_clu_quality_(): Compute the cluster quality scores
Home
JRCLUST pipeline
Performance benchmark
Step-by-step tutorial
Video tutorials
Command line interface
Requirements and Installation
Tetrodes sorting
Command listing
Code listing
Function listing
Main GUI
Preview GUI
Probe GUI
Traces GUI
Manual GUI
PSTH view
Input and output files
Probe file
Batch file
Supported recording format
User configuration file
Combining multiple files
Generating trial files
Master struct (S0)
Parameters struct (P)
Cluster struct (S_clu)
Global variables
Variable naming convention