Skip to content

Other_analysis_methods

Nick Steinmetz edited this page May 11, 2017 · 21 revisions

Analyzing Drift

Because the Neuropixels probes sample densely of a long continuous span, movement of the brain relative to the electrode can be well detected and quantified. Methods to correct for it are under development. To observe whether there was drift in your recording, a useful type of plot is the “driftmap”. To make this plot, compute the amplitude and position on the probe of every spike, then make a scatter of position against time for all spikes, with points colored by their spike amplitude. The position can be reasonably well-estimated by taking a center of mass of principal components, and the amplitude can just be the mean amplitude of the cluster/template of the spike, or can be also derived from the PCs. When plotting this way, horizontal lines of a certain grey-level (i.e. amplitude) are immediately evident, presumably corresponding to individual neurons or small groups of similar neurons. Then the way the position of these neurons changes of time becomes clear. Methods for doing this in matlab from Kilosort-analyzed data are available in the spikes repository, see /analysis/ksDriftmap.m and /visualization/plotDriftmap.m.