Post-processed neural and behavioral data class with reward-relative cells identified
This dataset contains 2 pickled Python files containing the post-processed data used for Sosa, Plitt, Giocomo 2024. Hippocampal neurons were recorded in dorsal CA1 using 2-photon calcium imaging and synchronized with virtual reality behavior in head-fixed mice. This data is referred to as "post-processed" because shuffles have already been run to identify cells as "reward-relative" or not; therefore, the cell ID labels in this dataset will allow exact replication of figures in the paper. The pickle
or dill
package in Python is required to load this dataset. See the code base on Github for usage and additional documentation: https://github.com/GiocomoLab/Sosa_et_al_2024
File name format: m[mouse number range]_expdays[list of day numbers]_multiDayData_dff_[date saved, yyyymm]
Each pickle file is a Python dictionary, either for (1) only the experimental days where a reward zone location was switched on a virtual linear track (3-5-7-8-10-12-14) or (2) for all days, including days where the reward zone remained in the same location (1...14). In pickle (2), the data on the switch days are identical to pickle (1) -- we have provided both options to allow users to download a smaller file size if they are only interested in the "switch" days. Each entry of the dictionary corresponds to a class object for a given experimental day indexed as [3, 5, 7, 8, 10, 12, 14], for example, corresponding to the day number.
Below are the most relevant attributes of the class for analyses in the paper. Additional attributes are explained in the dayData.py docstring on the Github. Values before the '--' are defaults.
- self.anim_list: list of mouse IDs included in this day
- self.place_cell_logical: 'or' -- cells were classified as place cells by having significant spatial information in the trials before OR after the reward switch
- self.force_two_sets: True -- trials were split into "set 0" before the reward switch, and "set 1" after the reward switch. In animals without a reward switch, "set 0" and "set 1" correspond to the 1st and 2nd half of trials, respectively
- self.ts_key: 'dff' -- timeseries data type (dF/F) used to find place cell peaks
- self.use_speed_thr: True -- whether a running speed threshold was used to quantify neural activity
- self.speed_thr: 2 -- the speed threshold used, in cm/s
- self.exclude_int: True -- whether putative interneurons were excluded from analyses
- self.int_thresh: 0.5 -- speed correlation threshold to identify putative interneurons
- self.int_method: 'speed' -- method of finding putative interneurons
- self.reward_dist_exclusive: 50 -- distance in cm to exclude cells "near" reward
- self.reward_dist_inclusive: 50 -- distance in cm to include cells as "near" reward
- self.bin_size: 10 -- linear bin size (cm) for quantifying spatial activity
- self.sigma: 1 -- Gaussian s.d. in bins for smoothing
- self.smooth: False -- whether to smooth for finding place cell peaks
- self.impute_NaNs: True -- whether to impute NaN bins in spatial activity matrices
- self.sim_method: 'correlation' -- trial-by-trial similarity matrix method: 'cosine_sim' or 'correlation'
- self.lick_correction_thr: 0.35 -- threshold to detect capacitive sensor errors and set trial licking to NaN
- self.is_switch: whether each animal had a reward switch
- self.anim_tag: string of animal ID numbers
- self.trial_dict: dictionary of booleans identifying each trial as in "set 0" or "set 1"
- self.rzone_pos: [start, stop] position of each reward zone (cm)
- self.rzone_by_trial: same as above but for each trial
- self.rzone_label: label of each reward zone (e.g. 'A', 'B')
- self.activity_matrix: spatially-binned neural activity of type self.ts_key (trials x position bins x neurons)
- self.events: original spatially-binned deconvolved events (trials x position bins x neurons) (no speed threshold applied)
- self.place_cell_masks: booleans identifying which cells are place cells in each trial set
- self.SI: spatial information for each cell in each trial set
- self.overall_place_cell_masks: single boolean identifying which cells are place cells according to self.place_cell_logical
- self.peaks: spatial bin center of peak activity for each cell in each trial set
- self.field_dict: dictionary of place field properties for each cell
- self.plane_per_cell: imaging plane of each cell (all zeros if only a single plane was imaged, otherwise 0 or 1 if two planes were imaged)
- self.is_int: boolean, whether each cell is a putative interneuron
- self.is_reward_cell: boolean, whether each cell has a peak within 50 cm of both reward zone starts
- self.is_end_cell: boolean, whether each cell has a peak in the first or last spatial bin of the track
- self.is_track_cell: boolean, whether each cell's peak stays within 50 cm of itself from trial set 0 to trial set 1
- self.sim_mat: trial-by-trial similarity matrix for place cells, licking, and speed
- self.in_vs_out_lickratio: ratio of lick rate in the anticipatory zone vs. everywhere outside the anticipatory and reward zones
- self.lickpos_std: standard deviation of licking position
- self.lick_mat: matrix of lick rate in each spatial bin (trials x position bins)
- self.cell_class: dictionary containing booleans of which cells have remapping types classified as "track", "disappear", "appear", "reward", or "nonreward_remap" (see code docstrings for more details)
- self.pos_bin_centers: position bin centers
- self.dist_btwn_rel_null: distance between spatial firing peaks before the switch and the "random remapping" shuffle after the switch (radians)
- self.dist_btwn_rel_peaks: distance between spatial firing peaks before vs. after the switch (radians)
- self.reward_rel_cell_ids: integer cell indices that were identified as reward-relative after application of all criteria
- self.xcorr_above_shuf: lag, in spatial bins, of the above-shuffle maximum of the cross-correlation used to confirm cells as reward-relative (computed for all cells; NaNs indicate that the xcorr did not exceed shuffle)
- self.reward_rel_dist_along_unity: circular mean of pre-switch and post-switch spatial firing peak position relative to reward (radians)
- self.rel_peaks: spatial firing peak position relative to reward in each trial set (radians)
- self.rel_null: spatial firing peak position relative to reward, for the random-remapping shuffle post-switch (radians)
- self.circ_licks: spatially-binned licking, in circular coordinates relative to reward (trials x position bins)
- self.circ_speed: spatially-binned speed, in circular coordinates relative to reward (trials x position bins)
- self.circ_map: mean spatially-binned neural activity within each trial set, of type self.ts_key, in circular coordinates relative to reward
- self.circ_trial_matrix: spatially-binned neural activity of type self.ts_key, in circular coordinates relative to reward (trials x position bins x neurons)
- self.circ_rel_stats_across_an: metadata across the "switch" animals:
- 'include_ans': list of "switch" animal names
- 'rdist_to_rad_inc': self.reward_dist_inclusive converted to radians
- 'rdist_to_rad_exc': self.reward_dist_inclusive converted to radians
- 'min_pos': minimum position bin used
- 'max_pos': maximum position bin used
- 'hist_bin_centers': bin centers used for spatial binning
Funding
Howard Hughes Medical Institute (HHMI)
The Dynamics of Neural Representations for Distinct Spatial Contexts and Memory Episodes
National Institute of Mental Health
Find out more...Precise neuromodulation for encoding reward in the hippocampus
National Institute of Mental Health
Find out more...Interaction of external inputs with internal dynamics: influence of brain states on neural computation and behavior
National Institute of Neurological Disorders and Stroke
Find out more...Neural circuit dynamics of drug action:revealing, uncoupling, and restoring altered brain states
National Institute on Drug Abuse
Find out more...The Vallee Foundation
The James S. McDonnell Foundation
The Simons Foundation 542987SPI
Helen Hay Whitney Foundation fellowship
Champalimaud Vision Award to William Newsome
History
Research Institution(s)
Stanford UniversityContact email
msosa2@stanford.eduAssociated Preprint DOI
I confirm there is no human personally identifiable information in the files or description shared
- Yes
I confirm the files and description shared may be publicly distributed under the license selected
- Yes