Data and code from: Amyloid pathology compresses dynamic range and degrades spatial coding in an Alzheimer’s mouse model
Data files
Oct 12, 2026 version files 261.55 MB
-
data_and_code.zip
261.53 MB
-
README.md
17.44 KB
Abstract
Alzheimer’s disease (AD) disrupts neural circuits vital for memory and cognition. Using two-photon calcium imaging in behaving 5xFAD mice, we examined how amyloid pathology alters hippocampal CA1 activity and spatial coding. We found elevated baseline activity but reduced locomotion-driven firing, leading to a diminished neuronal dynamic range. To our knowledge, this is the first direct experimental evidence for reduced dynamic range in an AD model. These abnormalities were strongest near amyloid plaques and became more widespread with age. We also observed altered network synchrony, degraded spatial coding, and increased neuronal response variability. Furthermore, place fields emerged more slowly in both familiar and novel environments, indicating impaired recall and learning. By showing a link between local plaque pathology and impaired flexible modulation of CA1 activity and progressive deficits in spatial memory coding, our study offers new insights into the circuit basis of cognitive decline in AD.
Dataset DOI: 10.5061/dryad.rr4xgxdqg
Description of the data and file structure
Using two-photon calcium imaging in 5xFAD mice running around a circular track, we investigated how amyloid pathology alters hippocampal CA1 activity and spatial coding. Neural activity was extracted from the imaging data using non-negative matrix factorization (Giovannucci et al., 2019) and deconvolved into event trains with the OASIS algorithm (Friedrich et al., 2017).
This dataset contains event trains from 22,908 cells recorded across 118 experimental sessions, pooled from 6 young wild-type mice, 6 young 5xFAD mice, 8 old wild-type mice, and 6 old 5xFAD mice. For each of the 118 sessions, position-tracking data are provided, along with several derived quantities generated by computationally intensive scripts and/or analyses originally performed for one figure but reused in others.
A representative two-photon image, shown in Fig. 1b of the associated manuscript, is also included in the dataset.
Files and variables
File: data_and_code.zip
Description:
The file paper_data.mat contains all data required to generate Figures 1–5. To generate Figure 6, the mat file and two additional files are needed:
- Cumming_data_young.csv
- Cumming_data_old.csv
Abbreviations
The file paper_data.mat contains 42 variables. The following abbreviations are commonly used as structure-array field names:
-
wy: young wildtype group
-
ty: young 5xFAD group
-
wo: old wildtype group
-
to: old 5xFAD group
-
rest: resting state (mouse speed < 1 cm/s)
-
run: running state (mouse speed > 2 cm/s)
-
fam: familiar circular track (track on which mouse was trained)
-
nov: novel circular track (track first encountered by mouse on imaging day)
Note: The speed interval from 1 cm/s through 2 cm/s is not analyzed.
Variables in paper_data.mat
The following descriptions use MATLAB data-type terminology where it is provided
1. image_gcamp: 512 × 512 single array containing a two-photon jGCaMP7s image showing cells.
2. image_plaq: 512 × 512 double array containing a two-photon Methoxy-X04 image showing plaques.
3. image_rois: 512 × 512 × 267 logical array corresponding to 267 ROIs segmented from image_gcamp.
4. image_dff: 267 × 37,100 double array; each row contains the calcium time series (ΔF/F) for one ROI in image_rois. The recording frequency is 30 Hz.
5. cells: Structure with fields grp, exp, and mouse. These fields represent pooling by group, experiment, and mouse, respectively. Each field is a structure with fields wy, ty, wo, and to. In grp, the nested fields wy, ty, wo, and to are double arrays containing unique cell numbers (22,908 in total), corresponding to row or cell indices for neuron-level variables. In exp and mouse, the nested fields wy, ty, wo, and to are cell arrays, with each cell a double array corresponding to an experiment or mouse, respectively.
6. exps: Structure with fields wy, ty, wo, and to. Each field is a double array containing unique experiment numbers (118 in total), grouped by experimental condition. The values correspond to row or cell indices for experiment-level variables.
7. mice: Structure with fields wy, ty, wo, and to. Each field is a cell array, with each cell a character array, containing unique animal identifiers (26 in total), grouped by experimental condition.
8. xcorr_mean: Structure with fields rest and run. Each field is a structure with fields wy, ty, wo, and to. The nested fields are 51 × 1 double arrays containing the mean pairwise cross-correlogram of CA1 event-rate activity during resting and running periods.
9. xcorr_sem: Structure with the same field hierarchy as xcorr_mean. The nested fields are 51 × 1 double arrays containing the standard error of xcorr_mean.
10. lag: 51 × 1 double array containing the lag values, in seconds, over which the cross-correlogram of CA1 event-rate activity was calculated.
11. stats_boot: Structure with fields info_bits_s, coherence, rangeloc, var_exp, fieldSize, and frac_pcs. These fields contain the results of the hierarchical bootstrapping test for each of the spatial tuning metrics given by the neuron-level variables by the same names. Each field is a structure with fields bootmean, bootmedian, and signif. bootmean and bootmedian are structures with fields wy, ty, wo, and to, each of which are double arrays containing bootstrap means and medians, respectively, based on 1,000 samples for each group. signif is a structure with fields wy_vs_ty, wo_vs_to, wy_vs_wo, and ty_vs_to. Each comparison contains the output decision h_boot and the p values pboot_1less_than2 (WT < 5xFAD), and pboot_1greater_than2 (WT > 5xFAD), all of which are type double.
12. appearance_lap: Structure with fields cells and exps. cells contains the first lap at which each place cell’s activity within its identified place field differs substantially from background firing. Its fields are to_nov, wo_nov, ty_nov, wy_nov, to_fam, wo_fam, ty_fam, and wy_fam; each is a double array, with one value per place cell in the corresponding group and environment. exps contains experiment-level median lap values and has the same group/environment fields as cells. exps also contains stats, a structure with the output decision (h_boot, type double), p values (pboot, type double), significance symbols (psymb, type character), and written interpretations of hypothesis tests (results_string, type character). These nested fields are 8 x 8 in size with the rows and columns corresponding to the fields of cells in the order they appear, showing the different pairwise comparisons between the experimental conditions.
13. colour: Structure with fields wy, ty, wo, and to. Each field is a 3 x 1 double array containing normalized RGB values (0 to 1) for the group colour codes.
14. maps: Structure with fields ty and to. Each field is a double array containing experiment numbers with amyloid-mapping data. ty is 1 x 8 double while to is 1 x 5 double.
Neuron-level variables
These variables contain one value per neuron, for 22,908 neurons.
15. mouseid: 22,908 × 1 cell array; each cell contains a character array with the mouse identifier. This is the same as T.mouseid (see experiment-level variables).
16. ageMOS: 22,908 × 1 double array containing the animal age, in months, at the first imaging session. This is the same as T.ageMOS (see experiment-level variables).
17. genotype: 22,908 × 2 character array; each row contains a two-character code for either wildtype (‘wt’) or 5xFAD (‘tg’). This is the same as T.genotype (see experiment-level variables).
18. fov: 22,908 × 1 double array containing the field-of-view (FOV) number for each mouse. Each mouse had one to three imaged FOVs. For mice with only one imaged FOV, the value is numeric 0. This is the same as T.fov (see experiment-level variables).
19. expnum: 22,908 × 1 double array containing the unique experiment number identifying the mouse, FOV, and recording day. This is the same as T.expnum (see experiment-level variables).
20. include: 22,908 × 1 logical array; true indicates that the neuron should be included based on manual assessment of its calcium trace, deconvolved activity, or location in the two-photon image.
21. active: 22,908 × 1 double array; 1 indicates that the neuron has activity and 0 that the neuron has no activity
22. rate_act: Structure with fields rest, run, and grp. rest and run are 22,908 × 1 double arrays containing calcium activity rates with amplitude included, in arbitrary units/s. grp is a structure with fields rest and run, each further containing fields wy, ty, wo, and to, with one value per neuron in the corresponding group.
23. rate_event: Structure with fields rest, run, and grp. rest and run are 22,908 × 1 double arrays containing calcium event rates, in events/s, without amplitude. grp has the same nested group structure described for rate_act.
24. spikes: 22,908 × 1 cell array; each cell contains a double array of neuronal activity deconvolved from fluorescence traces using OASIS. The double arrays vary in length, reflecting recording length. Sampling rate is 30 Hz.
25. range: Structure with fields all and grp. This is the dynamic range of neuronal activity, calculated as the maximum of the speed-tuning curve divided by its non-zero minimum. We used 1 cm/s speed bins and calculated speed tuning curves for each cell by dividing the total activity for a speed bin by the total time spent in it, then smoothing using a boxcar average over 3 bins. Only speed bins in which the animal spent at least 4 seconds were included in the tuning curve. all is a 22,908 × 1 double array. grp contains the fields wy, ty, wo, and to, with one value per neuron in each group. When the speed-tuning curve is entirely zero, dynamic range is defined as zero. Some neurons have NaN values. These neurons have activity in speed bins in which the animal spent < 4s. NaN values are excluded in analysis.
26. scs_shuffle: 22,908 × 1 logical array; true indicates that a neuron is classified as speed-modulated because its speed-response modulation depth exceeds the chance level.
27. dtoPlaqs: 22,908 × 1 cell array containing distance to plaques. Distances are measured in microns from a neuron to all plaques in the amyloid-mapping volume. Some neurons contain missing values (i.e. their corresponding cell is empty) when plaque data are unavailable, including wildtype animals and 5xFAD animals without plaque data. Nonempty cells are double arrays which vary in length, reflecting the number of imaged plaques.
28. pcs: 22,908 × 1 logical array; true indicates that a neuron is classified as a place cell because calcium transient events were present on at least 60% of laps and the cell’s spatial information exceeded chance.
29. info_bits_s: Structure with fields all and grp. This is spatial (Skaggs) information, in bits/s, calculated using the amplitude rate. all is a 22,908 × 1 double array. grp contains the fields wy, ty, wo, and to, with one value per neuron in the corresponding group.
30. spkRaster: 22,908 × 1 cell array; each cell contains a double array of amplitude-inclusive neuronal activity across laps around the circular track. The double arrays have 50 columns corresponding to 50 spatial bins, and vary in the number of rows, reflecting the number of laps around the circular track. Note: Analysis was limited to the first 50 laps.
31. rateMap: 22,908 × 50 double array containing event rate, in events/s, across 50 spatial bins; each bin is 2.5 cm.
32. rateMap_sm: 22,908 × 50 double array containing event rate across 50 spatial bins, each 2.5 cm, smoothed with a four-bin boxcar average.
33. coherence: Structure with fields all and grp. Spatial coherence quantifies how spatially contiguous a neuron’s activity is. It is obtained by calculating the correlation coefficient between the neuron’s rate map and the same rate map smoothed with a four-bin boxcar average, and taking the Fisher’s transform of the Pearson’s r value. all is a 22,908 × 1 double array; grp contains the fields wy, ty, wo, and to, with one value per neuron in the corresponding group. Some neurons have NaN values. These correspond to cases when the neuron’s rate map is a constant line. NaN values are excluded in analysis.
34. rangeloc: Structure with fields all and grp. This is the spatial response dynamic range, calculated as the maximum rate-map value divided by the non-zero minimum rate-map value. all is a 22,908 × 1 double array; grp contains the fields wy, ty, wo, and to, with one value per neuron in the corresponding group. When the rate map is entirely zero, spatial response dynamic range is defined as zero.
35. var_mu: 22,908 × 50 double array containing mean calcium event rate across 50 spatial bins, each 2.5 cm, around the circular track.
36. var_v: 22,908 × 50 double array containing calcium event-rate variance across 50 spatial bins, each 2.5 cm, around the circular track.
37. var_exp: Structure with fields all and grp. This is the variability exponent obtained by fitting a power-law model, using total least squares linear regression, to the relationship between calcium event-rate variance (var_v) and mean (var_mu) for each neuron. all is a 22,908 × 1 double array; grp contains the fields wy, ty, wo, and to, with one value per neuron in the corresponding group.
38. var_int: Structure with fields all and grp. This is the y-intercept parameter obtained from the same power-law fit relating calcium event-rate variance (var_v) to mean (var_mu) for each neuron. all is a 22,908 × 1 double array; grp contains the fields wy, ty, wo, and to, with one value per neuron in the corresponding group.
39. fieldSize: Structure with fields all and pcs. This is place field width, in cm. all is a 22,908 × 1 double array. pcs contains the fields wy, ty, wo, and to, with one value per neuron in the corresponding group.
Experiment-level variables
These variables contain one value per experiment, for 118 experiments.
40. T: Structure with fields mouseid, ageMOS, genotype, fov, expnum, speed, time, phi, x, and y. Each field contains one element per experiment. The fields mouseid (118 x 1 cell), ageMOS (118 x 1 double), genotype (118 x 2 character), fov (118 x 1 double), and expnum (118 x 1 double) identify the mouse and experiment and are the same as the neuron-level variables by the same names. The fields speed, time, phi, x, and y are position-tracking data; each is a cell array with each cell a double array. The double arrays vary in length, reflecting varying recording times for the different experiments. Units are speed (mm/s), time (s), phi (degrees), and x and y (mm). The original recording frequency was 100 Hz; tracking data were downsampled to 30 Hz to match the image-sampling frequency. The timestamps apply to all position-tracking data.
41. sync: Structure with fields rest, run, and grp. This is synchrony, quantified as the mean pairwise Pearson correlation among all neurons in an imaged FOV. rest and run are 118 × 1 double arrays corresponding to the two mobility states. grp contains the fields wy, ty, wo, and to, with one value per experiment in each group.
42. frac_pcs: Structure array with fields all and grp. This is the fraction of cells in each experiment classified as place cells. all is a 118 × 1 double array. grp contains the fields wy, ty, wo, and to, with one value per experiment in each group.
Supporting CSV files
Cumming_data_young.csv contains two space-delimited columns: Identifiers and Values. Values are numeric and correspond to intra-session place-field stability, measured as a correlation between place fields from two halves of the session. Identifiers contain text labels identifying the different groups and environments: FAMyoungWT, FAMyoungAD, NOVyoungWT, and NOVyoungAD. The abbreviation AD here denotes 5xFAD.
Cumming_data_old.csv contains two columns: Identifiers and Values. Values are numeric and correspond to intra-session place-field stability, measured as a correlation between place fields from two halves of the session. Identifiers contain text labels identifying the different groups and environments: FAMoldWT, FAMoldAD, NOVoldWT, and NOVoldAD. The abbreviation AD here denotes 5xFAD.
Code/software
The MATLAB scripts used to generate Figures 1–6 are:
generate_figure1.m
generate_figure2.m
generate_figure3.m
generate_figure4.m
generate_figure5.m
generate_figure6.m
Each script corresponds to the figure with the same number and was written in MATLAB R2025a. The scripts and the folder required_functions\ must be in the same directory. The following third‑party plotting tools are also required and may be placed in the folder required_functions\:
- Violin : download from https://github.com/bastibe/Violinplot-Matlab
- shplot : download from https://uk.mathworks.com/matlabcentral/fileexchange/64990-shplot
- multiwaveplot : download from https://github.com/IoSR-Surrey/MatlabToolbox
- daboxplot : download from https://github.com/povilaskarvelis/DataViz
- dabest : https://github.com/ACCLAB/DABEST-Matlab
Access information
Other publicly accessible locations of the data:
- None
Data was derived from the following sources:
- N/A
