Fig. 6: Sorting trials in a visual discrimination task.
From: Rastermap: a discovery method for neural population recordings

a, Top, mice were trained to discriminate between left and right contrast and to turn a wheel to report their choice (diagram from ref. 61). Bottom, locations of all neurons used, projected onto the sagittal plane (brain slice shape from ref. 62). b, Two example neuron trials sorted by time (top) or by Rastermap (bottom). c, PCs sorted by Rastermap for the same example recording as used in b, in z-scored units. d, Quantification of average reaction time and reward in the Rastermap sorting across sessions (error bars are s.e.m.; n = 78 sortings for left/right trials in 39 sessions). x axis represent trial index in Rastermap ordering, divided by total number of trials. e, Behavioral variables illustrated using the trial order obtained by Rastermap on the neural activity in an example session (top) and quantified across all sessions (bottom), in arbitrary units. Error bars are s.e.m. (n = 78). f, Trial number in session versus trial index in Rastermap ordering (top) and for a time-rolled shuffle of the ordering (bottom). The Rastermap order was flipped if the first 10 trials were on average later than the last 10 trials, and the same operation was applied to the shuffle. Error bars are s.e.m. (n = 78). g, Fraction of neurons with differential responses on trials early versus late in the session. Error bars represent s.e.m. (n = 50, 54, 58, 56, 40, 34 and 12 per brain region). norm., normalized (normalized by total number of trials); ctx, cortex.