Abstract
Grid and head direction codes in the medial entorhinal cortex represent cognitive spaces for navigation and memory 1,2. In grid cells the expression of the grid code is thought to be independent of head direction, whereas in conjunctive cells the grid code is tuned to a single head direction 3. This distinction between non-directional grid cells and unidirectional conjunctive cells is also present in models and proposed functions for grid codes 4–11. However, while grid cells are not tuned to a single direction, whether their firing is independent of direction is less clear. Here we demonstrate location-dependent modulation of grid cell firing by head direction. Individual firing fields recorded from mouse and rat grid cells have multiple and different preferred directions. This local directionality of grid firing is accounted for by models in which grid cells integrate inputs from conjunctive cells with co-aligned, spatially non-uniform firing fields. Thus, the firing of grid cells is consistent with their integration of upstream grid codes. For downstream neurons in the dentate gyrus that receive input from grid cells, integration of rich directional information within the grid code may contribute to pattern separation computations by decorrelating different points of view from the same spatial location 12–14.
Grid codes are thought to provide a metric for spatial and conceptual representations used for navigation, learning and memory 1,15,16. In the spatial domain grid codes have six-fold rotational symmetry, with individual fields appearing as the vertices of tessellating triangles that tile the floor of an environment 15. Grid codes are generated by two functionally defined cell types found in the medial entorhinal cortex (MEC). Grid cells have grid firing fields that are thought to lack selectivity for head direction or other navigational variables 3,17. In contrast, conjunctive cells have grid fields that manifest only when an animal moves in a particular direction 3. Established models for grid firing assume that neurons with grid fields have either an absence of directional tuning, as suggested for grid cells, or selectivity for a single direction, as described for conjunctive cells 4,5, 8–10,18. Analyses of the coding properties of grid cells make similar assumptions 6,7. The possibility that grid cell activity is modulated by head direction, but in a manner that is qualitatively distinct from the directional tuning of conjunctive cells has received little attention.
To investigate directionality of grid cell firing we recorded from 324 neurons in the medial entorhinal cortex (MEC) of 15 mice across 179 recording sessions (2 - 16 sessions per animal, mean = 11.2, SD = 4.1 sessions). We identified 12 % of the recorded neurons (38 / 324) as having grid-like spatial firing fields using a metric based on the rotational symmetry of the autocorrelogram of their firing rate map 15 (see Methods). Evaluation of the directional firing of these neurons, using a metric that detects directional bias (see Methods), identified conjunctive cells, which were tuned to a single heading direction (n = 4), and grid cells (n = 34), which across the whole environment were active during head orientation in all directions (Extended Data). Because a low directional bias might nevertheless be compatible with a neuron encoding multiple directions, we compared the distribution of head directions when action potentials fired with the distribution of directions throughout the animal’s trajectory (Figure 1a-c). The differences were significant for all grid cells (p < 0.001, n = 34, two-sample Watson U2 test) arguing against the null hypothesis of independence between grid cell firing and head direction (Figure 1b-c). This directional firing was correlated between the first and second half of recording sessions indicating that it is stable over time (Figure S1). Analyses of grid cells recorded previously from rats (n=68)3 gave similar results (Figure 1a-c).
To better understand the apparent directionality of grid cell firing, and because the Watson U2 test would not rule out directional bias that could be introduced through variation in the time animals spend in different parts of a firing field (cf. 19), we compared experimental recordings of spike rate binned by the animal’s head direction with data that was shuffled while maintaining the location-dependent average firing rate (Figure 1d and Figure S2). For almost all grid cells, the number of directional bins in which the mean rate was outside the 95% confidence interval for the shuffled distribution was greater than expected given the shuffled data (p < 10-16 for mice and rats, Mann-Whitney U test)(Figure 1e). When we tested whether the experimental rate for each bin differed significantly from the shuffled data (threshold p < 0.05 after correcting for multiple comparisons made across bins), we found 7.3 ± 3.9 and 4.1 ± 4.5 significant bins / cell for mice and rats respectively (Figure 1e). Significant bins were found at peaks and troughs in the firing rate histograms, which did not show clear unimodal tuning observed for conjunctive cells (cf. 3). The orientation of the peaks differed substantially between grid cells indicating that they were not driven by common external cues (Figure S3). Variation in running speed between different parts of the environment is also unlikely to account for directional tuning as firing of most grid cells was independent from running speed (Extended Data). Together, these analyses indicate that firing of grid cells has directional structure that is qualitatively distinct from the unidirectional tuning of conjunctive cells.
If firing by grid cells encodes head direction then we expect this to also manifest at the level of individual firing fields. We therefore isolated spikes from each field using a watershed algorithm (44 fields isolated from 13 grid cells in 4 mice and 83 fields from 25 grid cells in 5 rats)(Figure 2a) and analysed directional firing separately for each field (Figure 2b-c). Directional histograms for single fields demonstrated clearer peaks than for the arena as a whole suggesting a greater degree of directional modulation at smaller spatial scales (cf. Figure 1a and 2b). When firing was binned by head direction (Figure 2x), we found that for experimental data the number of bins outside the 95 % confidence intervals of the corresponding shuffled distribution differed substantially from the number expected from the shuffled data (for mice and rats p < 10-16, Mann-Whitney U test)(Figure 2e), and many bins differing significantly from the shuffled data (mice: 4.3 ± 3.2 bins / cell; rats: 2.1 ± 2.8 bins / cell, for mice and rats p < 10-16 vs shuffled data)(Figure 2d). Directional modulation was correlated between the first and second half of each recording session indicating that it is stable at behaviourally relevant time scales (Figure S4). Because shuffled data maintained the position-dependent firing rate (Figure S2), the directional modulation could not be explained by the distributive hypothesis, which predicts directional modulation on the basis of time spent in different parts of the firing field 19. Thus, directional modulation of grid cell firing manifests at the level of individual firing fields.
Inspection of individual fields from the same cell suggests that their directional modulation differs from one another (Figure 2b). Consistent with this, fields from grid cells did not on average show any correlation in their directional firing (median correlation for mice: −0.02 ± 0.3; for rats: 0.1 ± 0.3)(Figure 3a-b). This lack of correlation appeared not to be a result of undersampling of the field as correlations between fields from similarly sampled conjunctive cells were clearly detectable (median correlation for mice: 0.9 ± 0; rats: 0.6 ± 0.1)(Figure 3a-b). Furthermore, when comparing fields from the first and second half of the recording session correlations were detectable for the same field, but again were absent between different fields (Figure 3c and Figure S5). Directional firing remained uncorrelated between fields when considering only fields adjacent to the walls of the arena, or only fields in the centre of the arena, indicating that the location dependence of directional tuning is also not related to the proximity of fields to the borders of the arena (Figure 3d). As directional modulation within each grid field is independent of direction modulation of other fields from the same grid cell, these data indicate that directional modulation of grid cell firing is location specific.
Our analyses imply that spatially specific multi-directional firing is a core feature of the grid code. This feature is not predicted by existing models for grid firing 5, 8–10,18,20 (Supplemental Table 1). For example, a requirement of many continuous attractor models is that each grid cell has a single preferred direction of input 8,10. An alternative possibility is that grid cell firing fields are generated through summation of inputs from co-aligned conjunctive cells 21. While summation of spatially uniform conjunctive cell fields is insufficient to explain the directional biases of individual grid fields 21, recent analyses suggest that for a given grid cell its individual fields have large and stable differences in their amplitude 22. We reasoned that incorporating this non-uniformity into the grid fields of conjunctive cells might allow integration of conjunctive cell inputs to account for the directionality of grid firing. In this case each of a grid cell’s fields would be driven by input from a different combination of conjunctive cells with different head direction preferences. This scheme is consistent with projections from deeper layers of MEC, where conjunctive cells are found, to superficial layers where a greater proportion of grid cells are found 3,21,23.
To explore this idea we built models in which co-aligned theoretical conjunctive cell firing fields were convolved with experimentally recorded movement trajectories to generate spatially non-uniform conjunctive cell firing patterns (Figure 4a). Spike times from the simulated conjunctive cells were then used to generate inputs to a compartmental model of a layer 2 stellate cell (Figure S6 and 25). Summation of aligned conjunctive cell inputs causes the postsynaptic neuron to have a grid firing field (Figure 4b). Crucially, when the activity of the co-aligned conjunctive cells was non-uniform across their different fields, the directional tuning of the postsynaptic cells across the whole environment was also non-uniform (Figure 4b) and individual firing fields were modulated by head direction (Figure 4c). These simulated firing patterns resembled the experimentally recorded directional tuning of grid cells (cf. Figure 4c with 2b). In contrast, when we simulated conjunctive cells with spatially uniform firing fields the firing fields of the downstream grid cells were not directionally modulated (Figure S7). The directional tuning of individual firing fields in simulations with spatially non-uniform, but not spatially uniform, conjunctive cell inputs differed significantly from the corresponding shuffled data (Figure S8). Thus, integration of input from co-aligned non-uniform conjunctive cells can account for the local direction selectivity of grid cell firing.
Embedding of location-dependent directional information within grid cell firing fields has implications for the organisation of spatial and conceptual computations in entorhinal circuits and downstream structures. While more complex models that account for location-dependent directional firing of grid cells could be envisaged (Table S1), by showing how the firing fields of grid cells can result from integration of input from conjunctive cells 21,26, our results provide a parsimonious explanation that resolves discrepancies between functionally and anatomically defined cell types in MEC 27. Entorhinal stellate cells, which are the major input to the hippocampal dentate gyrus and are required for spatial memory 28,29, appear to be the most numerous grid cell type, but less than half of stellate cells are grid cells 30. This functional divergence is consistent with all stellate cells implementing similar cellular computations, but with the emergence of grid firing patterns depending on the identity of their dominant synaptic inputs. A key future question is how directional information encoded by grid cells is then used by downstream neurons. One possibility is that by disambiguating different views at the same location, directional firing by grid cells may facilitate pattern separation functions of the immediately downstream dentate gyrus 12–14. Such view-dependent representations could also be a powerful computational feature of grid representations of visual and conceptual scenes1,31,32.
Author contributions
KG and MFN conceptualised the study. KG performed experiments, developed code and performed analyses. JP developed and analysed simulations. KG, YP and MN contributed to statistical design. HS performed histology and imaging. MN obtained funding, supervised the project and wrote the manuscript. All authors contributed to review and editing of the manuscript.
Methods
Animals
All animal procedures were performed under a UK Home Office project license (PC198F2A0) in accordance with The University of Edinburgh Animal Welfare committee’s guidelines. All procedures complied with the Animals (Scientific Procedures) Act, 1986, and were approved by the Named Veterinary Surgeon and local ethical review committee.
Sixteen p038 mice 33 (8 males and 8 females) 7-13 weeks (mean = 10.6, SD = 1.7 weeks) old at surgery were used. Before surgery animals were group housed (3-5 mice per cage) in a standard holding room on a standard 12 hour on/off light cycle (dark from 7 pm to 7 am). After surgery, mice were singly housed in a different holding room in otherwise similar conditions (average temperature 20°C, relative humidity 50%). Mice were kept in individually ventilated cages containing sawdust, tissues, chewing sticks and cardboard tubes, which after surgery were replaced by a larger cardboard igloo. Two days after the surgery, a running wheel was placed in the cages. Standard laboratory chow and water were given ad libitum.
Microdrive design
We modified previous designs for 16-channel microdrives consisting of 4 tetrodes and an optic fiber 34,35. We glued a 21 gauge 9 mm long inner cannula (Stainless Tube & Needle Co.LTD) to the hole next to the ground pin of an EIB-16 board (Neuralynx) using epoxy (RS components 132-605). Tetrodes were made with 18 µm HML-coated 90 % platinum 10 % iridium wire (Neuralynx). We connected two grounding wires (1.5 cm long insulated part) to the reference and ground pins of the EIB, threaded 4 tetrodes through the inner cannula and connected each tetrode wire to one of the pinholes of the EIB-16 board, fixing them with gold pins (Neuralynx, EIB Pins). A 13 mm long optic fibre stub (Plexon, PX.OPT-FS-Flat-200/230-13L) was threaded through the inner cannula, in between the tetrodes. We covered the wires on the board and the optic ferrule up to about 2/5th with epoxy and glued (RS components, 473-455) the tetrodes to four sides of the optic fibre. The next day we cemented a poor lady frame (Axona) to the side of the board. Finally, we put Vaseline around the base of the inner cannula, put the 17 gauge 7 mm long outer cannula (Stainless Tube & Needle Co.LTD) on the inner cannula.The tip of the outer cannula was sanded down diagonally so one side was 6 mm to fit the curvature of the skull. We trimmed the tetrodes using ceramic scissors (Fine Science Tools, Germany) to be 0.5 mm long from the tip of the optic fibre. The tips of the tetrodes were plated in a non-cyanide gold plating solution (Neuralynx). Tetrodes were cleaned, by applying three 1 second 4 µA pulses with the tetrodes as an anode and then plated by passing 2 µA 1 second pulses with the tetrodes as a cathode until their impedance was between 150 and 200 KΩ.
Microdrive implantation
We washed the tips of the tetrodes before the surgery with ethanol and then with sterile saline by holding them into a drop using a syringe. General surgical procedures and stereotaxic viral injections were carried out as described previously 24. We induced inhalation anaesthesia using 5 % isoflurane / 95 % oxygen, and sustained at 1 – 2 % isoflurane / 98-99 % oxygen throughout the procedure (1 L / minute). Before implanting the drive, we injected AAV9-tre-ChR2-mCherry (Gene Therapy Center, University of Massachusetts Medical School)(800 −2000 nl total injection volume, 3-5 injections sites, 200 - 400 nl / site) for additional opto-tagging experiments (data not shown). All animals were injected 3.4 mm lateral relative to Bregma (Table S2). For electrical grounding, we drilled two small craniotomies, and implanted M1 x 4 mm screws (AccuGroup SFE-M1-4-A2) on both sides about 3.4 mm lateral, and 1 mm rostral relative to Bregma.
To implant the microdrive we attached it to an Omnetics to Mill-Max adaptor (Axona, HSADPT-NN1) held by a crocodile clip attached to the stereotaxic frame. We lowered the tetrodes 1.5 mm into the brain, beginning 3.4 mm lateral from Bregma (right hemisphere of two mice, and left hemisphere of 14 mice) and targeting the dorsal third of the medial entorhinal cortex. We sealed the outer cannula with sterile Vaseline and fixed the implant by putting dental acrylic (Simplex Rapid powder) up to three quarters of the outer cannula, and around the foot of the frame, leaving the grounding screws uncovered. After the cement set, we carefully wrapped the grounding wires around the grounding screws (the reference wire was connected to the right side screw, and the ground wire to the left screw), and fixed the wires with silver paint (RS components 101-5621). After the silver paint dried, we applied another layer of dental acrylic to cover the skull and the grounding screws, but not the insulated part of the grounding wires, or the board, to ensure that the drive is able to move. We left mice to recover on a heat mat for approximately 20 minutes, moved them back to the holding room and gave them Vetergesic jelly (0.5 mg / kg of body weight buprenorphine in raspberry jelly) for 12 hours after surgery.
Open field exploration task
All recordings were performed in an open field arena consisting of a box made from a metal frame (parts from Kanya UK, C01-1, C20-10, A33-12, B49-75, B48-75, A39-31, ALU3), with removable metal walls, a polarizing cue on one wall, and a floor area of 1 m2. A camera (Logitech B525, 1280 x 720 pixels Webcam, RS components 795-0876) was mounted on the top of the frame for motion tracking. To record head direction we used a custom Bonsai script 36 to track red and green polystyrene balls attached to either side of the mouse’s head.
Mice were handled three times a week for 5 - 10 minutes for four weeks following surgery. For 3 consecutive days before recording we habituated the mice by allowing them to explore the open field arena for 5 −10 minutes. For recording sessions, mice explored the open field arena unrewarded until they covered the whole area, or for a maximum of 90 minutes. An opto-tagging experiment was performed at the end of each session (data not shown). After each recording session we lowered the tetrodes by 50 µm using the drive mechanism on the implant.
For electrophysiological recording, the 16 channel optetrode was connected to an Open Ephys acquisition board 37 and computer (HP Z440 Tower Workstation i7, 16GB, 512GB SSD, Cat.: J9CO7EA#ABU) using an SPI cable (Intan Technologies, RHD2000 6-ft (1.8 m) Ultra Thin SPI interface cable C3216) and via a commutator (SPI cable adapter board, Intan Technologies C3430 and custom 3D printed holder). Signals were filtered between 2.5 Hz - 7603.8 Hz using a second order Butterworth filter implemented in Open Ephys. We aligned position and electrophysiology data using light pulses generated at random intervals (20 s to 60 s) by an LED (light-emitting diode) attached to the side of the open field arena hidden from the mouse but in the field of view of the camera. An Arduino script controlled delivery of pulses to the LED and the Open Ephys acquisition board.
Post recording assessment of tetrode locations
To enable determination of tetrode locations, after the last recording day we applied a 2 second ∼20 µA current to burn the tissue at the tip of the electrodes. We then anesthetized the mice using isoflurane and pentobarbital, intracardially perfused PBS (phosphate buffered saline, Gibco, 70011044, 10 times diluted with distilled water) for 2 minutes, then 4 % PFA (paraformaldehyde, Sigma Aldrich, 30525-89-4) in 0.1 M PB (phosphate buffer, Sigma Aldrich, P7994) for 4 minutes at a 10 mL / minute flow rate. We left the brains in 4 % PFA in 0.1 M PB for 16 hours, then transferred them to 30 % sucrose (Sigma Aldrich, S0389) in PBS until they sank.
We cut 50 µm sagittal sections of the fixed brains using a freezing microtome. Sections were processed to label them with primary antibody rat anti-mCherry (Invitrogen M11217, 1:1000) followed by secondary antibody goat anti-rat alexa 555 (Invitrogen A-21434,1:1000) and stained with either NeuroTrace 640/660 (Invitrogen N21483, 1:500) or NeuroTrace 435/455 (Invitrogen N21479, 1:500) following procedures described previously 24. Images were taken on a Zeiss Axio Scan Z1 using a 10x objective and visually inspected to determine the final position of the recording electrodes (see Extended Data). We classified recording sites to be in the deep MEC, superficial MEC, parasubiculum or not possible to determine.
Data analyses
Analyses were carried out using Python (version 3.5.1 in Anaconda environment 4.0) and R version: 3.3.1 (2016-06-21). All code will be available at https://github.com/MattNolanLab.
Spike sorting
To isolate spikes from electrophysiological data we used an automated analysis and clustering pipeline based around MountainSort (v 0.11.5 and dependencies)38. Python scripts pre-processed the data by converting Open Ephys files to mda format and organized these files together with spike sorting input parameter files. We defined the four channels of each tetrode to be in the same ‘sorting neighbourhood’. We excluded broken channels identified during data acquisition from the geometry files.
MountainSort filtered the data from 600 Hz - 6000 Hz using a bandpass filter and then performed spatial whitening over all 16 channels to remove correlated noise. Events with peaks three standard deviations above average and at least 0.33 ms away from other events on the same channel were detected. The first 10 principal components of the detected waveforms were calculated, creating a 10-dimensional feature space. A spike sorting algorithm, ISO SPLIT, was applied on the feature space 38. The algorithm first over-clusters the data, and then performs pair-wise checks on clusters to ensure that the two main assumptions are met, and regroups spikes if necessary.
Cluster quality was evaluated using metrics for isolation, noise-overlap, and peak signal to noise ratio 38. Units that had a firing rate higher than 0.5 Hz, isolation more than 0.9, noise overlap less than 0.05, and peak signal to noise ratio more than 1 were accepted for further analysis. Any units that did not have a refractory period or hyperpolarization component of their spike waveform were discarded. These exclusions were based on visually assessing output figures generated for sorted clusters. No additional manual curation was done to modify the assignment of individual firing events to clusters.
Classification of functional cell types
To classify recorded neurons we used established grid and head direction scores 3. Grid scores were defined as the difference between the minimum correlation coefficient for rate map autocorrelogram rotations of 60 and 120 degrees and the maximum correlation coefficient for autocorrelogram rotations of 30, 90 and 150 degrees 39. The firing rate map was calculated by summing the number of spikes in each location and dividing that by the time the animal spent there and then smoothing the surface with a Gaussian centred on each location bin (12). Autocorrelograms were calculated by shifting the binned firing rate map 12 into every possible binned position along both horizontal and vertical axes and calculating correlation scores for each of these positions. This rate map was converted into a binary array using a 20 % threshold on normalized data. If the binary array had more than 7 local maxima, a grid score was calculated. Subsequent parts of the analysis, where correlations between the rotated autocorrelograms were calculated, only included the ring containing 6 local maxima closest to the centre of the binary array, excluding the maximum at the centre. The ring was detected based on the average distance of the 6 fields near the centre of the autocorrelogram (middle border = 1.25* average distance, outer border = 0.25 * average distance).
To calculate head direction scores, the head direction angles corresponding to the firing events of each neuron were first binned into 360 bins between 0 and 2π. The obtained polar histogram was smoothed by calculating a rolling sum over a 23 degree window. For angles between −179 and 180 degrees in steps of 1 degree, dx and dy were calculated in a unit circle (radius = 1), as and . To obtain the x and y components of the head direction vector, the head direction polar histogram was multiplied by the dx and dy values, respectively, and normalized to the number of observations in the polar head direction histogram, so that and . The head direction score was then calculated using the Pythagorean theorem as head direction .
We defined grid cells as cells with a grid score ≥ 0.4, which was chosen as a conservative threshold (cf. 22). We defined head direction cells as cells with a head direction score ≥ 0.5. We defined conjunctive grid cells as cells that passed both head direction and grid cell criteria.
Identification and analysis of individual fields
We identified individual firing fields using methods similar to those used previously to detect place fields 40. The open field arena was divided into 42 x 42 bins, where each bin contained a smoothed firing rate value calculated by summing the number of spikes at the locations corresponding to each bin, dividing this by the time the animal spent in the bin and then smoothing the surface with a Gaussian centred on each bin 12. We next identified the bin of the rate map with the highest firing rate. If the rate was higher than the average firing rate plus the standard deviation of the rest of the rate map, we added bins with adjacent sides that had a firing rate higher than 35 % of the local field maximum to the field. We recursively added to the field further bins that satisfied these criteria with respect to the newly added bins. We accepted a detected field if it had more than 45 bins, but it was smaller than half of the arena. After successfully detecting a field, it was removed from the rate map by replacing the values with zeros and the analysis was repeated until we found no more fields. All detected fields were visually assessed and if a detected field appeared to be a combination of two fields or only part of a field, it was tagged as a false positive to be excluded from the analyses.
Analysis of head direction
Two-sample Watson test
To evaluate whether head direction when the cell fired differed from the head direction of the animal during the time spent in a field, or arena, we performed Watson’s two sample test 41,42 for homogeneity on the two distributions using R package circular.
Bootstrap tests
Shuffled head direction locations were generated by random selection with replacement of locations from the trajectory of the animal, either inside the whole environment or in a given field. The randomization was weighted with the firing rate of the bin where the spike happened to rule out that directional firing is a result of different sampling of directions in different bins of the rate map 19. The number of selected random locations was equal to the number of times the neuron fired in the environment or field.
Analyses compared the observed data with 1000 shuffled data sets. The range of possible head directions was segmented into 18 degree bins. For each shuffled data set, the head direction associated with each randomized event was binned. To obtain a simulated firing rate, the total number of spikes for each bin was normalized to the amount of time the animal spent facing the range of directions associated with the bin. Two analyses were carried out. First, for each 18 degree interval, the bins where the observed frequency was outside the 95% confidence interval of the randomized data were counted. Second, for each bin the percentile position of the observed data relative to the randomized data was used to calculate a p value. The twenty p values within a field were corrected for multiple comparisons using the Benjamini-Hochberg procedure and the number of intervals where the corrected p values were < 0.05 were counted. To obtain null distributions the same analyses were performed for each of the 1000 randomized data sets, where each shuffle was treated like the observed data and was compared to the distributions from the 1000 shuffles.
Correlation between directional firing histograms
Pearson correlation coefficients were calculated (scipy.stats.pearsonr) for pairs of histograms of head direction dependent firing rates. Histograms used in these analyses were generated by dividing the histogram of heading directions when the cell fired by the histogram of head directions from the trajectory to obtain a firing rate (Hz) for each angle. The histograms were smoothed using a 23 degree rolling window. Bins with 0 Hz firing rates were excluded from the correlation analyses.
Rat data
Data from rats 3 was downloaded from the Kavli Institute’s online database (https://www.ntnu.edu/kavli/research/grid-cell-data). The data was available in a format that contained the trajectory of the animal and firing times of sorted cells in MATLAB files. The MATLABfiles were converted into a spatial data frame similar to the mouse data so the same analysis scripts could be used to perform all analyses.
Stellate cell model
All simulations were performed in the NEURON simulation environment 43. Simulation code will be available at https://github.com/MattNolanLab.
The model stellate cell used a previous morphological reconstruction of a mouse MEC layer 2 stellate cell 25. Voltage-gated sodium and potassium channels were inserted into the soma and axons (channel models from 44), HCN channels were inserted into the dendrites and soma (channel models from (Schmidt-Hieber and Häusser, 2013)) and leak channels were inserted into all compartments. Maximum channel conductances were adjusted so that electrophysiological properties of the neuron were similar to the experimentally determined properties of stellate cells 45, with the resting membrane potential (RMP), input resistance, sag, rheobase spike peak and half-width fit within the range of experimental values 46. The best fit for voltage threshold that could be achieved was within 30% of the mean experimentally determined values. RMP was defined as the average membrane potential over 4 s with no current input. Spike peak and half-width were determined from a single suprathreshold response to a 20 ms depolarizing current, where peak potential was the maximum voltage and half-width was the width of the spike at a voltage halfway between RMP and the peak. Sag ratio was determined in response to a 40 pA hyperpolarizing current step and defined as the ratio between the peak decrease and steady state decrease in voltage. Voltage threshold was defined as the highest voltage reached without spiking and was determined from responses to a series of 3 s duration current steps with progressively increasing amplitude. Rheobase was defined as the current required to initiate a spike and was determined using a current ramp increasing linearly from 0 - 150 pA over 2 s. Input resistance was determined as the slope of the line fitted to the voltage increase resulting from current injections between 0.0016 nA to 0.048 nA.
The modeled cell received simulated synaptic input from conjunctive cells. Synapses were randomly localized to dendritic locations with 9 synapses per input cell. The probability of synapse placement on a dendrite was given by the ratio of the dendrite length to the total basal or apical dendritic length. Synapses generated fast conductance changes with an instantaneous rise and exponential decay of 2 ms (cf. 25). All synapses had the same maximal conductance, which was determined for each number of conjunctive cell inputs simulated (Nc). To do so we measured the model response to Nc inputs activated at 12 Hz across a range of maximal conductances. The conductance that achieved a maximal postsynaptic firing rate of 12 Hz was selected by fitting the responses as a function of conductance with a second order polynomial.
Simulation of conjunctive cell firing
To simulate firing of conjunctive cells we first generated for each cell a grid pattern and a head direction tuning curve. For the grid pattern, the centre of each field was specified from the vertices of equilateral triangles with a length of 50 cm that were aligned to tessellate the simulated environment. Each cell had the same spatial phase. Each firing field was described by a circular Gaussian distribution with a full width at half maximum (FWHM) of 20.0 cm. To generate non-uniform field maxima (cf. 22), the peak for each field was scaled by a random value from a uniform distribution between 0 and 1. The grids were then scaled to have a peak height of 1. The head direction tuning curve consisted of a Gaussian centered around a preferred direction with a FWHM of 141 degrees and a height of 1. The preferred head direction was dependent on the total number of inputs to the downstream grid cell, such that the preferred head directions were evenly distributed between 0 and 360 degrees. For each simulated conjunctive cell, firing probability distributions were calculated from the grid pattern and a head direction tuning curve at a spatial resolution of 1 cm. The probability of firing was determined by multiplying the individual probabilities of the grid and head direction components by a factor of 0.28 and 0.12 respectively. These values were chosen to generate peak spatial firing rates around 12 Hz and peak head direction firing rates around 5 Hz, which are comparable to experimental data 3.
Conjunctive cell spike times were generated for a behavioural trajectory within a 1 x 1 m open field. The x and y position was determined every ms and if the probability of each cell firing was greater than a random number between 0 and 1 the cell spiked. For 100 simulated conjunctive cells, the peak spatial firing rate was 12.3 ± 2.71 Hz and the normalized peak head direction firing rate was 4.94 ± 1.04 Hz.
Each conjunctive cell was connected at 9 synapses to the downstream stellate cell. To evaluate representations generated in the stellate neuron model, we simulated 20 trials for each Nc.
Each trial differed in the randomly determined synapse placement of each conjunctive input and in the randomly determined peaks of the conjunctive cell fields.
Supplementary Figures
Extended data
1. Area of tetrode recording location for each experimental animal from in vivo open field experiments. 50 um sagittal sections were stained with NeuroTrace and expression of AAV-TRE-ChR2-mCherry was enhanced with anti-mCherry. Sections were imaged at 10x objective by Zeiss Axio Scan Z1. Scale bar is 500 µm.
2. Mouse grid cells with more than two successfully detected firing fields. Each series of plots summarises data from a single grid cell. Top row left to right: action potential waveforms overlaid for the four channels of the tetrode, autocorrelograms of spike times, histogram of firing times over time, histogram of speed during firing events. Second row left to right: trajectory of the animal (black line) and firing events (red dots), firing rate map, autocorrelation matrix for rate map, coverage heat map based on the position of the animal, smoothed polar histogram of head direction when the cell fired (red, Hz) and from the whole session (black), scatter plot of firing events colour-coded for head direction on trajectory. Third row left to right: Detected firing fields on rate map and polar histograms of head direction in detected fields. The animal ID is indicated above the plots.
Acknowledgements
We thank Emma Wood, Michael Allerhand and members of the Nolan lab for helpful discussions, Derek Garden for comments on the manuscript, and Elizabeth Allison for assistance with set up of open field recordings and initial analysis. This work was supported by grants to MN from the Wellcome Trust (200855/Z/16/Z) and the BBSRC (BB/L010496/1), to YP and MN from the Centre for Statistics at the University of Edinburgh, and by a College of Medicine and Veterinary Medicine PhD Studentship, funded by the Thomas Work Fellowship, to KG.