SUPPLEMENTARY INFORMATION

Similar documents
Nature Neuroscience: doi: /nn Supplementary Figure 1. Trial structure for go/no-go behavior

Nature Neuroscience: doi: /nn Supplementary Figure 1. Behavioral training.

Nature Neuroscience: doi: /nn Supplementary Figure 1. Lick response during the delayed Go versus No-Go task.

Nature Methods: doi: /nmeth Supplementary Figure 1. Activity in turtle dorsal cortex is sparse.

Summary of behavioral performances for mice in imaging experiments.

Supplementary materials for: Executive control processes underlying multi- item working memory

File name: Supplementary Information Description: Supplementary Figures, Supplementary Table and Supplementary References

Nature Neuroscience: doi: /nn Supplementary Figure 1. Large-scale calcium imaging in vivo.

Theta sequences are essential for internally generated hippocampal firing fields.

Tuning properties of individual circuit components and stimulus-specificity of experience-driven changes.

Supplementary figure 1: LII/III GIN-cells show morphological characteristics of MC

SUPPLEMENTARY INFORMATION. Supplementary Figure 1

Astrocyte signaling controls spike timing-dependent depression at neocortical synapses

Nature Neuroscience doi: /nn Supplementary Figure 1. Characterization of viral injections.

Supplementary Figure 1 Information on transgenic mouse models and their recording and optogenetic equipment. (a) 108 (b-c) (d) (e) (f) (g)

Supplementary Figure 1. GABA depolarizes the majority of immature neurons in the

Sum of Neurally Distinct Stimulus- and Task-Related Components.

Supplementary Figure 1

SUPPLEMENTARY INFORMATION

Wenqin Hu, Cuiping Tian, Tun Li, Mingpo Yang, Han Hou & Yousheng Shu

Unique functional properties of somatostatin-expressing GABAergic neurons in mouse barrel cortex

SUPPLEMENTARY INFORMATION

Supplementary Material for

Supplemental Information. A Visual-Cue-Dependent Memory Circuit. for Place Navigation

Behavioral generalization

Supplementary Information

Ube3a is required for experience-dependent maturation of the neocortex

Two distinct mechanisms for experiencedependent

Supplementary Figure 1

Early Learning vs Early Variability 1.5 r = p = Early Learning r = p = e 005. Early Learning 0.

Microcircuitry coordination of cortical motor information in self-initiation of voluntary movements

Nature Neuroscience: doi: /nn Supplementary Figure 1. Distribution of starter cells for RV-mediated retrograde tracing.

SUPPLEMENTARY INFORMATION

Supplementary Figure 1. Example of an amygdala neuron whose activity reflects value during the visual stimulus interval. This cell responded more

Supplementary Figure 1. Basic properties of compound EPSPs at

Spike Sorting and Behavioral analysis software

Supplementary Figure 1. Recording sites.

Nature Neuroscience: doi: /nn Supplementary Figure 1. Diverse anorexigenic signals induce c-fos expression in CEl PKC-δ + neurons

Supplementary Table I Blood pressure and heart rate measurements pre- and post-stroke

Nature Neuroscience: doi: /nn Supplementary Figure 1

Reward prediction based on stimulus categorization in. primate lateral prefrontal cortex

Supporting Information

Small Networks Encode Decision-Making in Primary Auditory Cortex

To Accompany: Thalamic Synchrony and the Adaptive Gating of Information Flow to Cortex Wang, Webber, & Stanley

Mnemonic representations of transient stimuli and temporal sequences in the rodent hippocampus in vitro

Supplementary Information. Gauge size. midline. arcuate 10 < n < 15 5 < n < 10 1 < n < < n < 15 5 < n < 10 1 < n < 5. principal principal

Supplementary Figure S1: Histological analysis of kainate-treated animals

Nature Neuroscience: doi: /nn Supplementary Figure 1. MADM labeling of thalamic clones.

Supplementary Figure 1. Nature Neuroscience: doi: /nn.4547

Double dissociation of value computations in orbitofrontal and anterior cingulate neurons

Nature Neuroscience: doi: /nn Supplementary Figure 1

Nature Neuroscience: doi: /nn Supplementary Figure 1

SUPPLEMENTARY INFORMATION

Supplementary Information. Staged decline of neuronal function in vivo in an animal model of Alzheimer s Disease. Supplementary Figures S1-10

SUPPLEMENTAL MATERIAL

Supplementary Figure 1. ACE robotic platform. A. Overview of the rig setup showing major hardware components of ACE (Automatic single Cell

Supporting Information

Supplementary Figure 1. SybII and Ceb are sorted to distinct vesicle populations in astrocytes. Nature Neuroscience: doi: /nn.

Nature Neuroscience: doi: /nn Supplementary Figure 1

A genetically targeted optical sensor to monitor calcium signals in astrocyte processes

Supplementary Figure 1: Kv7 currents in neonatal CA1 neurons measured with the classic M- current voltage-clamp protocol.

OPTO 5320 VISION SCIENCE I

Nature Neuroscience: doi: /nn Supplementary Figure 1. Confirmation that optogenetic inhibition of dopaminergic neurons affects choice

Supplementary Figure 1. Localization of face patches (a) Sagittal slice showing the location of fmri-identified face patches in one monkey targeted

Dep. Control Time (min)

SUPPLEMENTARY INFORMATION. Supplementary Figures

Nature Neuroscience: doi: /nn Supplementary Figure 1. ACx plasticity is required for fear conditioning.

SUPPLEMENTARY INFORMATION

Supplementary Figure 1. SDS-FRL localization of CB 1 in the distal CA3 area of the rat hippocampus. (a-d) Axon terminals (t) in stratum pyramidale

Profound Context-Dependent Plasticity of Mitral Cell Responses in Olfactory Bulb

Feedforward Origins of Response Variability Underlying Contrast Invariant Orientation Tuning in Cat Visual Cortex

Nature Neuroscience: doi: /nn Supplementary Figure 1

Supplementary Figure 1

Supplementary material

SUPPLEMENTARY INFORMATION In format provided by Javier DeFelipe et al. (MARCH 2013)

Supplemental information Acid-sensing ion channel 1a contributes to hippocampal LTP inducibility through multiple mechanisms

SUPPLEMENTARY INFORMATION

Supplementary Figure 1

Neuroscience 201A (2016) - Problems in Synaptic Physiology

A Toolbox for Spatiotemporal Analysis of Voltage-Sensitive Dye Imaging Data in Brain Slices

Supplementary Information for Correlated input reveals coexisting coding schemes in a sensory cortex

Decoding a Perceptual Decision Process across Cortex

Nov versus Fam. Fam 1 versus. Fam 2. Supplementary figure 1

Suppl. Information Supplementary Figure 1. Strategy/latency analysis of individual mice during maze learning. a,

Structural basis for the role of inhibition in facilitating adult brain plasticity

SUPPLEMENTARY INFORMATION

Part 11: Mechanisms of Learning

Introduction to Computational Neuroscience

Neural Coding. Computing and the Brain. How Is Information Coded in Networks of Spiking Neurons?

Supplementary Materials for

Distinct Roles of Parvalbumin- and Somatostatin- Expressing Interneurons in Working Memory

Multiple Spike Time Patterns Occur at Bifurcation Points of Membrane Potential Dynamics

Supplementary Figure 1

Supplemental Information. Memory-Relevant Mushroom Body. Output Synapses Are Cholinergic

Supplementary Figure 1: Validation of labeling specificity of immature OSNs and presynaptic terminals. (A) (B) (C) (D) (E)

Hormonal gain control of a medial preoptic area social reward circuit

Nature Medicine: doi: /nm.4084

Supplementary Figure 1. Properties of various IZUMO1 monoclonal antibodies and behavior of SPACA6. (a) (b) (c) (d) (e) (f) (g) .

Changing expectations about speed alters perceived motion direction

Supplementary information - Table (1), Figures (12), and Videos (5)

Transcription:

doi:1.138/nature1139 a d Whisker angle (deg) Whisking repeatability Control Muscimol.4.3.2.1 -.1 8 4-4 1 2 3 4 Performance (d') Pole 8 4-4 1 2 3 4 5 Time (s) b Mean protraction angle (deg) e Hit rate (p (lick go)) 2 15 1 1 5-5 -1 1 2 3 4 Performance (d').5.5 1 False alarm rate (p (lick no go)) c Timing jitter first touch to lick (std, ms) f 1 Performance (d') 8 6 4 2 2.5 2 1.5 1.5 Control 1 2 3 4 Performance (d') * Muscimol in S1 Supplementary Figure 1 Learning related changes in behavior. a-c) Changes in motor parameters as a function of performance. a) Whisking repeatability, defined as the amplitude of the first peak (at one trial length) of the autocorrelation of whisking amplitude (all trials in one session were concatenated). b) Mean whisker protraction angle during the sampling period. c) Timing jitter (std) of the first lick relative to first touch. Each circle represents one behavioral session (6 sessions/mouse, 5 mice). Open circles indicate sessions with inactivated vm1. d-e) vm1 inactivation in expert mice. d) Whisker angle (gray) and setpoint (black) in Hit trials under control conditions (top) and after muscimol inactivation (bottom). e) Hit rates decrease and false alarm rates increase after inactivation of vm1 (control, solid circles; muscimol, open circles). f) Behavioral performance drops after inactivation of S1 (n = 5 mice, control, solid circles; muscimol, open circles). WWW.NATURE.COM/NATURE 1

doi:1.138/nature1139 Supplementary Figure 2 Effects of vm1 inactivation on whisking pattern. Whisking and effect of muscimol inactivation for 2 representative animals (animal 1 & 3, Supplementary Table T1). The panels represent averages of the spectrogram (1-3Hz, 1s sliding window) of the whisker angle across Hit trials (left) and Correct Rejection trials (right) before, during and after muscimol injection into vm1 (Methods). White dotted lines delineate the sampling period. WWW.NATURE.COM/NATURE 2

doi:1.138/nature1139 a b Cranial window Control Cranial window Control jf14863 jf14863 jf14534 jf14861 jf14534 jf1486 2mm jf14535.4 mm jf1486 Supplementary Figure 3 Immunohistochemical staining for glial fibrillary acidic protein (GFAP) after chronic imaging. a-b) Coronal sections through motor cortex of 5 mice at the level of the craniotomy and the site for chronic imaging (left hemisphere; 9 days after surgery). a) low magnification. b) high magnification. Immunoreactivity under the imaging window was identical to the control (right) hemisphere. WWW.NATURE.COM/NATURE 3

doi:1.138/nature1139 a VC GCaMP3 b IC CA3 DG CA1 EPSC amplitude (pa) -1-2 -3-4 -5 TBS -5 1 15 2 25 3 35 4 45 Time (min) c Baseline 1 min d Baseline 1 min TBS TBS Time (min) Time (min) e GCaMP3 Wild type Wild type, no TBS TBS Time (min) Supplementary Figure 4 Normal synaptic plasticity in GCaMP3-expressing neurons. a) Schematic of the experiment. Recordings were made from pairs of CA3-CA1 pyramidal neurons in cultured hippocampal slices. The postsynaptic CA1 cells were expressing CaMP3 and cerulean (volume marker). Parallel experiments were done with untransfected CA1 pyramidal neurons (wild-type). To probe excitatory postsynaptic currents (EPSCs) in CA1 neurons single action potentials were elicited in CA3 cells. b) Example LTP experiment in a GCaMP3- expressing CA1 pyramidal neuron. Single action potentials were evoked every 1 seconds for 5 min to establish baseline synaptic transmission. LTP was induced with a theta-burst protocol (TBS; 1 x 5 action potential bursts at 1 Hz; repeated 4x at 5 Hz) paired with temporally matched postsynaptic action potentials. After the pairing protocol, synaptic transmission was probed as during the baseline period. c-d) Average LTP in GCaMP3-expressing (n = 15) and wild-type (n = 1) CA1 pyramidal cells. Top traces: gray, single responses; black, mean response. e) Comparison of LTP between GCaMP3-expressing neurons, wild type CA1 neurons, and wild- type neurons without LTP induction. WWW.NATURE.COM/NATURE 4

a b c e d d Correlation coefficient (R) doi:1.138/nature1139 xx yy f 1% DF/F 5s 1 Ca 2+ events 5s Go stimulus No-Go stimulus Supplementary Figure 5 Alignment of ROIs across multiple imaging sessions. a) Field of view over six imaging sessions. A few ROIs were marked with colored ROIs. b) Close-up view of an individual ROI. c) Field of view after luminance normalization. d) A 5 x 5 pixels square around the ROI of interest (yellow box in c) was used to search for the best match in the next day s average image using a normalized cross-correlation. The center of the new ROI position was moved to the location with the highest correlation value (red peak). e) Displacement vectors (yellow) of individual ROIs (red) for four consecutive imaging sessions. Scale bars, 1 Pm. f) A fluorescence trace corresponding to a single ROI (top) and deconvolved event rate (bottom; see Methods). WWW.NATURE.COM/NATURE 5

doi:1.138/nature1139 a c R 2 Whisker cuvature change.8.6.4.2 5 1 15 Number of neurons.8 b d R 2 Whisking amplitude.8.6.4.2 5 1 15 Number of neurons.8 R 2 Whisking setpoint.6.4.2 5 1 15 Number of neurons R 2 Lick rate.6.4.2 5 1 15 Number of neurons e Session 1 2 3 4 5 6 2 4 6 8 Number of neurons to saturation of R 2 Supplementary Figure 6 Decoding accuracy as a function of population size a-e) Decoding accuracy (R 2 ) as a function of population size (same data as in Fig. 3a-e). Starting with the neuron with the highest Ri 2 we added neurons until saturation (95% of the Ri 2 for the full population; black dotted line). a) Whisker curvature change. b) Whisking amplitude. c) Whisking setpoint. d) Lick rate. e) Number of neurons required to achieve 95% of the full population R 2 for each behavioral variable in function of the session days. The minimum number of neurons required to reach saturation of the population R 2 did not depend on learning sessions (Two-way repeated measures ANOVA; p>.6; F 5,2 =.73) but it did depend on the decoded behavioral variable (p<1-5 ; F 3,12 =42). Error bars represent sem. Each behavioral feature required a different number of neurons to reach saturation (licking, 3. ±.3; touch, 1.4 ±.2; whisking setpoint, 4.5 ±.2; whisking amplitude; 5.5 ±.2; mean ± sem; n=3). These numbers are tiny compared to 3, L2/3 neurons in vm1; 1 5 neurons per mm 2 of cortical area; vm1 area, 3 mm 2 ; fractional thickness of L2/3,.1, ref 9), suggesting that coding is highly redundant. WWW.NATURE.COM/NATURE 6

doi:1.138/nature1139 Supplementary Figure S7 Licking Whisking Touch FA Licking a b c d e Average PSTH Hits N = 22 N unique = 13 N ani = 4 N = 37 N unique = 21 N ani = 5 N = 67 N unique = 37 N ani = 5 N = 158 N unique = 79 N ani = 5 N = 74 N unique = 36 N ani = 5 N = 25 N unique = 19 N ani = 5 N = 111 N unique = 77 N ani = 5 I II III IV V VI VII VIII IX h i j k l Correct Rejections False Alarms Categories Touch Mixed Whisking Licking Unclassified 3 z-scored events/frame.71.57.61.71 f R 2 (Pearson) g 2 s 2 s -2 2 4 z-scored events/frame WWW.NATURE.COM/NATURE 7

doi:1.138/nature1139 Supplementary Figure 7 Representations of individual neurons. All highly active neurons were classified across all sessions by how well they represented specific types of behavioral features (852 neurons across all 5 sessions and all 6 animals; 286 unique neurons). a-g) PSTHs averaged across neurons with shared activity patterns. (Hits, blue; Correct Rejections, red; False Alarms, green; Misses were rare and are thus not shown. N is the number of total observations grouped in one category, N unique is the number of individual neurons in which this response has been observed neurons, N ani is the number of animals in which these neurons were observed). The vertical dashed lines mark the sampling period. Shaded curve represent sem. a) Touch cells (I) are active only during interactions with the pole during Hit trials (blue) and in Miss trials (relatively rare, not shown). They can be distinguished from licking neurons (V) because they are not active during False Alarm trials (green). b) Mixed cells (II) are strongly correlated with licking during Hit trials, but also decode additional features such as touch or whisking. In some sessions in highly performing animals there were too few False Alarm trials to determine if a neuron decoded touch or licking better, and these neurons were classified as mixed. c) Whisking cells, early (III) correlate to whisking before and during the sampling period. We focused on Correct Rejection trials to distinguish between neurons coding for licking or whisking, since licking is usually associated with large whisking amplitudes and changes in Setpoint in Hit trials. Several neurons correlated with whisking only during a specific phase of the task (e.g. the example cell in Fig. 2g, Cell A). d) Whisking cells, late (IV) correlate to the whisking features after the sampling period. e) Licking cells (V) correlate with licking and therefore show high activity during the response period in Hit and False Alarm trials. Lick neurons tend to fire after touch neurons become active (Fig. 5). Unclassified neurons (VI) are active mainly after rewarded (Hits) or unrewarded licking (False Alarms). f) A group of unclassified neurons (VII) show activity uniquely after a false alarm responses. They could signal an error signal related to the lack of an expected reward. g) Another group of unclassified neurons (VIII) increase activity during correct rejection trials. Several neurons in the unclassified category IX, show activity that predicting trial outcome. These neurons show higher firing before correct choices (Hits & Correct Rejections) compared to incorrect choices (False Alarms) before the start of the task. These activity patterns might be related to the animals attentional state. h-j) Task-aligned activity for all neuron-sessions averaged over trials, clustered by activity pattern (see note on clustering, below). Activity was normalized by computing the z-score per neuron. The white dotted lines mark the sampling period. k) Strength of correlation between the Random Forest model and different behavioral features (R 2 ). l) Classification based on heuristic rules (see above and also the main text). Notes on clustering for panels h-j: We divided neurons into five categories (see caption of and main text): Touch, Whisking, Licking, Mixed and Unclassified. Within each category we computed a similarity index between pairs of neurons based on the trialaveraged responses in Hit, Correct Rejection and False Alarms trials. For each neuron WWW.NATURE.COM/NATURE 8

doi:1.138/nature1139 we concatenated their trial-average response for these tree trial-types. The similarity index was the pairwise correlation between the concatenated trial-average responses between every neuronal pair. We computed a weighted correlation to take into account that the number of False Alarm trials is typically lower than either Hit or Correct Rejection trials. Given the two vectors and and the weight vector (by the relative number of trials in each trial type): ( ; ) = : (, ; ) = ( ; ) ( ; ) (, ; ) : (, ; ) = (, ; ) (, ; ) Neurons were re-ordered using hierarchical clustering for each category separately (using linkage and dendrogram from Matlab with unweighted average distances between clusters). WWW.NATURE.COM/NATURE 9

doi:1.138/nature1139 Supplementary Figure S8 Animal 3 (jf2677), Session: 5, Neuron: 162 Beam break rate Mean whisker amplitude C2 Whisker max. curvature change Pearson Correlation Coefficient: Beam break rate: R All Lick=.36 R Hit Lick=.5 R Miss Lick=. R CR Lick=.1 R FA Lick=.2 Best whisking-related feature: Mean whisker amplitude R All Whisk=.15 R Hit Whisk=.8 R Miss Whisk=. R CR Whisk=.27 R FA Whisk=.25 Best touch-related feature: C2 whisker max. curvature change R All Touch=.22 R Hit Touch=.27 R Miss Touch=. R CR Touch=.7 R FA Touch=NaN 1. DF/F 2 sec jf27332, Neuron 162, Session 5 CR FA Hit WWW.NATURE.COM/NATURE 1

doi:1.138/nature1139 Supplementary Figure S9 Animal 1 (jf2567), Session: 6, Neuron: 183 Beam break rate Whisker setpoint C2 Whisker, max. change in curvature Pearson Correlation Coefficient: Beam break rate: R All Lick=.65 R Hit Lick=.63 R Miss Lick=. R CR Lick=. R FA Lick=.1 Best whisking-related feature: Whisker setpoint R All Whisk=.28 R Hit Whisk=.19 R Miss Whisk=.19 R CR Whisk=.2 R FA Whisk=.8 Best touch-related feature: C2 whisker, max. change in curvature R All Touch=.34 R Hit Touch=.39 R Miss Touch=.5 R CR Touch=. R FA Touch=NaN 1. DF/F 2 sec jf2567, neuron 183, session 6 CR FAMiss Hit WWW.NATURE.COM/NATURE 11

doi:1.138/nature1139 Supplementary Figure S1 Animal 3 (jf2677), Session: 3, Neuron: 13 Beam break rate Max whisker amplitude Pole C2 whisker, max. negative curvature change during pole period Pearson Correlation Coefficient: Beam break rate: R All Lick=.22 R Hit Lick=.25 R Miss Lick=. R CR Lick=. R FA Lick=.2 Best whisking-related feature: Max whisker amplitude Pole R All Whisk=.3 R Hit Whisk=.6 R Miss Whisk=. R CR Whisk=. R FA Whisk=. Best touch-related feature: C2 whisker, max. negative curvature change during pole period R All Touch=.8 R Hit Touch=.9 R Miss Touch=NaN R CR Touch=NaN R FA Touch=NaN 1. DF/F 2 sec jf2677, neuron 13, session 3 CR FA Miss Hit WWW.NATURE.COM/NATURE 12

doi:1.138/nature1139 Supplementary Figure S11 Animal 3 (jf2677), Session: 5, Neuron: 13 Beam break rate Max whisker amplitude Pole C2 Whisker max. curvature change during touch Pearson Correlation Coefficient: Beam break rate: R All Lick=.33 R Hit Lick=.39 R Miss Lick=. R CR Lick=.1 R FA Lick=.11 Best whisking-related feature: Max whisker amplitude Pole R All Whisk=.9 R Hit Whisk=.8 R Miss Whisk=. R CR Whisk=.7 R FA Whisk=.7 Best touch-related feature: C2 whisker max. curvature change during touch R All Touch=.15 R Hit Touch=.18 R Miss Touch=. R CR Touch=.1 R FA Touch=NaN 1. DF/F 2 sec jf2677, Neuron 13, Session 5 CR FA Hit WWW.NATURE.COM/NATURE 13

doi:1.138/nature1139 Supplementary Figure S12 Animal 5 (jf116), Session: 2, Neuron: 12 Beam break rate Max whisker amplitude All whiskers, max. change in curvature Pearson Correlation Coefficient: Beam break rate: R All Lick=.46 R Hit Lick=.48 R Miss Lick=. R CR Lick=.1 R FA Lick=.33 Best whisking-related feature: Max whisker amplitude R All Whisk=.14 R Hit Whisk=.16 R Miss Whisk=.3 R CR Whisk=.5 R FA Whisk=.12 Best touch-related feature: All whiskers, any max. change in curvature R All Touch=.21 R Hit Touch=.26 R Miss Touch=.18 R CR Touch=. R FA Touch=.1 CR FA Miss Hit WWW.NATURE.COM/NATURE 14

doi:1.138/nature1139 Supplementary Figure S13 Animal 5 (jf116), Session: 5, Neuron: 12 Beam break rate Max whisker amplitude All whiskers absolute max. change in curvature Pearson Correlation Coefficient: Beam brake rate: R All Lick=.52 R Hit Lick=.56 R Miss Lick=.2 R CR Lick=.1 R FA Lick=.33 Best whisking-related feature: Max whisker amplitude R All Whisk=.5 R Hit Whisk=.2 R Miss Whisk=.3 R CR Whisk=.5 R FA Whisk=.1 Best touch-related feature: All whiskers absolute max. change in curvature R All Touch=.26 R Hit Touch=.26 R Miss Touch=.26 R CR Touch=NaN R FA Touch=NaN 1. DF/F 2 sec jf116, neuron 12, session 5 CR FA Miss Hit WWW.NATURE.COM/NATURE 15

doi:1.138/nature1139 Supplementary Figure 8-13 Example neurons to illustrate neuron classification. The upper panels represent from left to right: event rate (events / frame) of an individual neuron, licking (beam break rate), whisking related feature (based on whisker setpoint or amplitude), touch related feature (based on curvature change). Each line represents one trial, grouped vertically by trial type. The red lines mark the sampling period. The lower row of panels shows the model of the best feature within a behavioral category (see Methods) based on the activity of the single neuron, derived from Random Forests. The numbers on the right are the Pearson correlation coefficients between the behavioral feature and the prediction from the model. Only the whisking and touch related features with the highest correlation coefficients are shown. The panel on the right lower corner is a PSTH of the neuron s responses to multiple Go -positions (different hues of blue, light blue is most posterior, see Supplementary Fig. S14) and Correction Rejections (red). 8 Mixed neuron with good prediction for touch (overall R 2 value for touch is.22), but also whisking-related signals in Correction Rejection trials (red arrows). 9 Mixed neuron which decodes licking with high accuracy, but is position-dependent. 1-12 Changes in classification from touch to mixed. 1) Touch neuron could be disambiguated from licking by the lack of activity during False Alarm trials (red arrow). In addition, this neuron shows position dependence. 11) The same neuron was classified as a mixed type two sessions later. The neuron now shows activity during the sampling period on Correct Rejection and False Alarm trials (red arrow), permitting accurate decoding of whisking during Correct Rejectiontrials. The neuron remained positiondependent. 12-13 Changes in classification from licking neuron to mixed type. 12) Licking neuron with showing activity during the Hits and False Alarms (red arrows). 13) Same neuron 2 sessions later classified as mixed type, since it shows less activity during False Alarms, but strong position dependence (inset lower right). WWW.NATURE.COM/NATURE 16

doi:1.138/nature1139 Supplementary Figure S14 a b c d e Events/Frame Lick rate R 2 =.89 CoV of R2 per trial =.68 Trials Number of trials 2 15 1 5 R 2 =.7.2.4.6.8 1 R 2 per trial 1.2 Events/Frame Lick rate 9 R 2 1 f g h i j Events/Frame Lick rate R 2 =.66 CoV of R2 per trial =1.82 Trials Number of trials 4 3 2 1 R 2 =.3.2.4.6.8 1 R 2 per trial k.8 Events/Frame Lick rate l 12 m R 2 1 25.7 3 Number of cells 2 15 1 5.5 1 1.5 2 2.5 >3 std (R 2 per trial ) Unshuffled R 2.6.5.4.3.2.1.1.2.3.4 Shuffled R 2 Number of Cells 25 2 15 1 5 5 1 15 Z-Score mean(r 2 per trial ) WWW.NATURE.COM/NATURE 17

doi:1.138/nature1139 Supplementary Figure 14 Single neuron decoding algorithms capture the trialby-trial dynamics of motor and sensory variables. a) Calcium events in hit trials for a cell classified as a licking neuron in a highly performing mouse (d >2). Red bars represents the period where the pole was up. b) Lick-rate. c) Decoded Lick-rate. d) R 2 between lick-rate and the decoded lick-rate in each trial (R 2 pertrial). We sorted trials from the highest to the lowest R 2. The upper and lower panels show two examples of trials with high and low R 2 pertrial respectively. e) Distribution of R 2 pertrial for all trials. The dotted red line represents the median of R 2 pertrial. To summarize how reliable the cell was able to decode licking trial-by-trial we computed the coefficient of variation of R 2 pertrial (COV = standard deviation of R 2 pertrial divided by its mean value). f-j) Same as (a-e) but for an unreliable lick cell in a highly performing mouse (d >2). k) Distribution of reliability coefficients (i.e. CoV of R 2 pertrial) for all the classified neurons in highly performing mouse (d >2) computed only for hit trials (N=111). The median CoV was 1.33 (dotted red) and ranged from.39 (most reliable) to 3.3 (least reliable). l) Trial-shuffled bootstrap test of the individual neuron s decoder. To assess whether the correlations between measured behavioral variables and the decoded variables appeared by chance, we shuffled trials (1 times) and recomputed the Pearson correlation coefficient between data and model (R 2 ). The p-value was calculated as the proportion of trial-shuffled bootstrap replicates that were higher than the unshuffled R 2. This test indicates whether the decoder extracts information beyond a given trial-averaged behavioral variable. We performed this test in all the classified neurons (N=358) in the hit trials for the behavioral variable that the neuron codes for. Only 7 neurons (~2%) were non-significant (P>.5; red dots). m) Distribution of the z- score converted R 2 values:([ ( )]/ ( ) ).The dotted red line represents the median z-score and the green line represents Z=1.64 that corresponds to a significance value of.5. WWW.NATURE.COM/NATURE 18

doi:1.138/nature1139 a b Pole.5 F/F 2 s jf116, cell 12, day 5 c jf116, cell 12, day 5.8 d.8 Average DF/F.6.4.2 Average DF/F.6.4.2 -.2 5 1 Object position (mm) -.2 -.4 -.2.2.4 Curvature change (1/mm) e 5 Number of neurons 4 3 2 1 1 2 3 1/2 (s) Supplementary Figure 15 Neural activity modulated by object location. a) Schematic of object locations. b) Activity as a function of object location (same color code as in a, lines are mean, shading standard error of the mean). The grey region indicates the sampling period. Note that object location dependent activity outlasts the presence of the pole by several seconds. c) The activity of an example neuron represented as a function of object object location. d) Activity as a function of whisker curvature change. e) Persistent object locationdependent activity. Activity (as in b) was deconvolved with the GCaMP3 decay time (ref 34) to correct for the dynamics of calcium and GCaMP3. Activity was then normalized to the value at the time of last touch and the decay time of the signal was computed. The histogram indicates the decay time of persistent activity after last touch. The dashed vertical line indicates 1/2 (384ms) expected for GCaMP3 fluorescence without persistent activity (ref 34). WWW.NATURE.COM/NATURE 19

doi:1.138/nature1139 Animal 1 Animal 2 Animal 3 Animal 4 Animal 5 Session 6 Session 5 Session 4 Session 3 Session 2 Session 1 1.4 (p>.1) 1.9 (p=.44) 1.1 (p>.1) 1.18 (p>.1) 1.11 (p>.1) 1.15 (p=.1) 1.9 (p=.54) 1.2 (p>.1).96 (p>.1).98 (p>.1) 1.2 (p>.1).96 (p>.1) 1.2 (p>.1).93 (p>.1).97 (p>.1) 1.17 (p=.3).92 (p>.1).91 (p>.1).95 (p>.1).97 (p>.1).96 (p>.1) 1.1 (p>.1).98 (p>.1) 1.6 (p>.1) 1.7 (p>.1) 1.62 (p<.1) 1.1 (p>.1).95 (p>.1).95 (p>.1) jf2567 jf2569 jf2677 jf27332 Supplementary Figure 16 Spatially intermingled representations. 1.8 (p>.1) jf161 Spatial locations of classified neurons. Individual regions of interest (ROIs) colored according to the scale in a. ROIs with yellow boundaries correspond to non-classified, task-related neurons. Numbers below images denote the spatial clustering index (SCI; > 1, clustering; 1, unclustered) and the p-value of clustering. We measured the center coordinates of each active cell (including active but unclassified cells). SCI is the ratio of the mean distance between neuronal pairs belonging to different representations divided by the mean distance between neuronal pairs belonging to the same representations exclusively. Under the null hypothesis that different representations are intermingled, SCI ~ 1. SCI > 1 indicates spatial clustering. To test for statistical significance we shuffled the cell s labels and computed SCI on the shuffled data 1 times; the p-value is the fraction of shuffled SCI higher than the unshuffled SCI. Significant clustering was not detected. WWW.NATURE.COM/NATURE 2

doi:1.138/nature1139 Supplementary Figure S17 a Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 Animal 5 Animal 4 Animal 3 Animal 2 Animal 1 2 events / frames 3 sec Unclassified Neurons Unclassified Neurons Proportion of cells firing b c d 5 1 15 2 25 3 35 4 45 1 2 3 4 5 6 7 8.16.12.8.4 Naïve (first session) 2 4 6 Time (s) Expert (fourth session) 2 4 6 Time (s) 2 4 6 Time (s) 4 2-2 4 2-2 Z-scored events / frame Z-scored events / frame - Unclassified neurons - Classified neurons Naïve Expert e Population activity (events / frame) f Population activity (events / frame) g Mean number of licks per trial 4 3 2 1 4 3 2 1 3 25 2 15 1 5 Naïve (first session) - Licking - Whisking - Touch - Mixed 1 2 3 4 5 6 Time (s) Expert (fourth session) 1 2 3 4 5 6 Time (s) 1 2 3 4 Performance(d') WWW.NATURE.COM/NATURE 21

doi:1.138/nature1139 Supplementary Figure 17 Temporal structure of neuronal activity. a) Average event rate. Each line represents the mean number of events per frame across all trial types and summed across all neurons. b-c) Trial averages of unclassified neurons ordered by their peak activity (for classified neurons see Fig. 5). b) Neurons in naïve animals (first session). The arrowhead indicates an enhanced activation of neurons during the reward period in naive animals. c) Neurons in expert animals (fourth session). d) Fraction of neurons with peak firing rate during the trial. Dotted lines indicate first day, the solid lines the fourth day in classified (brown) and unclassified neurons (black). In naïve mice there was an over-representation of neurons active during the reward period (red arrowhead). In expert mice these effects disappeared for classified and unclassified neurons (see Fig. 5). These neuronal dynamics are consistent with an unexpected reward delivery in naïve animals and a predicted future reward delivery after pole contact in trained animals. Note also that unclassified neurons have peak activity spread out throughout the entire trial. These neurons could serve to assign the appropriate temporal credit to the performed motor actions based on actual and/or expected reward delivery. Alternatively, these neurons could play a role in orchestrating the appropriate sequence of motor actions during learning. e-f) Temporal structure of the sum of activity of different classified neuron types (licking, red; touch, blue; mixed, magenta; whisking, green). e) Naive animals. f) Expert animals (fourth session). Whisking cells are active early, followed by touch (or mixed neurons conveying contact information) and then lick neurons. Whisking neurons exhibit a second peak that is correlated with high-amplitude post-reward whisking (see Fig. 2g). Skilled performance in a sensorimotor task is linked to a reorganization of neuronal firing of specific response-types in an appropriate sequence.g) Average number of licks per trial as a function of behavioral performance (each symbol corresponds to an animal; lines are linear fits). d is a measure of behavioral performance (expert > 1.75, corresponding to approximately 8 %). WWW.NATURE.COM/NATURE 22

Days post-injection Active neurons (total neurons) Present whiskers Performance in d (trials) Pole position Event rate (events/sec/roi) Animal Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 #1 (jf 2567) 14 C1,C2, C3 Single go 15 C1,C2, C3 Single go 16 C1,C2, C3 Single go 17 C1,C2, C3 Multi go 21 C1,C2, C3 Multi go 23 C1,C2, C3 Multi go 32 (29) d (322)=.83 3.4*1-4 4 (29) d (389)=1.9 3.9*1-4 31 (29) d (329)=3.13 4.8*1-4 32 (29) d (277)=3.59 6.4*1-4 33 (29) d (232)=3.52 4.5*1-4 39 (29) d (215)=3.22 6.8*1-4 #2 (jf 2569) 14 C1,C2, C3 Single go 15 C1,C2, C3 Single go 16 C1,C2, C3 Single go 17 C1,C2, C3 Multi go 21 C1,C2, C3 Multi go 23 C1,C2, C3 Multi go 18 (285) d (361)=1.66 3.6*1-4 25 (285) d (27)=3.2 6.8*1-4 22 (285) d (373)=3.19 6.4*1-4 17 (285) d (247)=2.77 5.5*1-4 11 (285) d (21)=3.16 1*1-4 17 (285) d (143)=3.58 6.6*1-4 # 3 (jf 2677) 14 C1,C2, C3 Single go 15 C1,C2, C3 Multi go 16 C1,C2, C3 Multi go 18 C1,C2, C3 Multi go 2 C1,C2, C3 Multi go 22 C1,C2, C3 Multi go 14 (184) d (224)=.93 12*1-4 15 (184) d (288)=1.96 11*1-4 17 (184) d (278)=2.76 12*1-4 14 (184) d (29)=2.74 17*1-4 14 (184) d (327)=3.35 11*1-4 21 (184) d (3)=2.69 15*1-4 #4 (jf 27332) 14 C1,C2, C3 Single go 15 C1,C2, C3 Single go 16 C1,C2, C3 Single go 18 C1,C2, C3 Multi go 2 C1,C2 Multi go 22 C1,C2 Multi go 23 (38) d (267)=.39.2*1-4 39 (38) d (261)=.86 3.5*1-4 37 (38) d (272)=.89 2.9*1-4 52 (38) d (45)=1.8 4*1-4 52 (38) d (259)=1.6 4.2*1-4 55 (38) d (21)=2.6 1.6*1-4 # 5 (jf 116) 14 C1,C2, C3 Single go 15 C1,C2 Single go 16 C1,C2 Multi go 17 C2 Multi go 18 C2 Multi go 19 C2 Multi go 16 (197) d (384)=1.23 9.4*1-4 21 (197) d (226)=1.93 1.6*1-4 37 (197) d (426)=1.66 6.1*1-4 35 (197) d (364)=1.54 7.9*1-4 36 (197) d (228)=2.69 7.7*1-4 37 (197) d (166)=2.69 1*1-4 Supplementary Table 1 Summary data for all 5 animals and 6 behavioral sessions. Top row, left to right: Number of days after window surgery; remaining whiskers; pole position (single go position, multiple go positions). Bottom row, left to right: Number of active neurons (total number of cells); behavioral performance expressed as d ; mean event rate across all measured ROIs (Hz). WWW.NATURE.COM/NATURE 23

doi:1.138/nature1139 Day(n+1) Day(n) Silent Lick Touch Whisk Mixed Unclassified Silent 57 23 2 29 7 179 Lick 18 3 1 7 7 Touch 7 7 6 2 Wisk 33 1 114 46 Mixed 2 2 3 1 14 1 Unclassified 114 7 44 3 213 Supplementary Table 2 Dynamics of classified neurons. Matrix of changes in response classification across subsequent days. Only neurons that were at least one day categorized as Touch, Licking, Whisking, Mixed or Unclassified are shown (n=286 unique neurons, across 5 animals and 6 sessions). WWW.NATURE.COM/NATURE 24