Published December 15, 2023 | Version v1

Data and analysis code

  • 1. ROR icon University of Freiburg

Contributors

Project leader:

  • 1. ROR icon University of Freiburg

Description

Data and analysis code for the paper 'Neuronal tuning to threat exposure remains stable in the mouse prefrontal cortex over multiple days' (PLOS Biology).

This repository contains:

  1. The full dataset: - dataset.py
  2.  Main analysis code: fig1-fig4.py and supplemental1-supplemental7.py
  3. Function code: glm_to_predict_speed_from_neuronal_activity.py, glm_tst_50_neurons_no_iterations.py, Graphs.py, manifold.py, prediction.py, rate_coding.py, statistics_test.py, time_functions.py, time_locked_functions.py, transient.py
  4. Source data for figures: - source_data.xls

The function code is normally stored in a folder called function.

 

Structure of the dataset:

The dataset is a python dictionary with 3 levels. 

Level 1: Animal ID

  • 'animal294', dict
  • 'animal295', dict
  • 'animal329', dict
  • 'animal337', dict
  • 'animal339', dict
  • 'animal341', dict

Level 2: Recording day

  • 'day1', dict
  • 'day3', dict
  • 'day9', dict

Level 3: Variables

  • 'A', spatial coordinate of extracted neurons, csc_matrix
  • 'assignments':  assignments id of multisession registration, Numpy array
  • 'assignments_filts': assignments id of multisession registration containing only detected neurons, NumPy array
  • 'background_time': boolean array of timepoints when the behavior could not be clearly assigned to either struggle or immobility behavior, NumPy array.
  • 'baseline_speed_bodyparts': dict with multiple NumPy arrays of the animal's speed of various bodyparts during baseline, dict
  • 'baseline_speed_dlc': speed of the animal during baseline averaged for all bodyparts, NumPy array
  • 'fn_baseline': calcium activity during baseline, NumPy array
  • 'fn_tst': calcium activity during tail suspesion, NumPy array
  • 'hemis': The hemisphere of the recording was from, str
  • 'immobility_time': boolean array of timepoints the animal is immobile, NumPy array
  • 'sex': the sex of the animal, str 
  • 'struggle_time': boolean array of timepoints the animal is struggling, Numpy array
  • 'tst_speed_bodyparts': dict with multiple NumPy arrays of the animal's speed of various bodyparts during tail suspension, dict
  • 'tst_speed_dlc': speed of the animal during tail suspension averaged for all bodyparts, NumPy array

 

Files

Files (785.8 MB)

Name Size
md5:a042ad74558896ad45284a17e0ae74b1
785.6 MB Download
md5:753151ba8431b432e3fb6909d74ccaac
6.3 kB Download
md5:39bbda4fe28a9505a23e36dd0095c9c3
3.4 kB Download
md5:d54226c7300d1a86b4be6edab69ea7c3
9.6 kB Download
md5:8a5a8eab6137b286db6af11c2ab5e4f6
3.3 kB Download
md5:55792939f574c4dd1a85537df0ef9b00
8.0 kB Download
md5:c21e9efd143143c11c06f340016ca776
8.0 kB Download
md5:f16707c704f6a89f3b4082cf26a8da6c
31.1 kB Download
md5:1fb3174db75132dc7016727d349acb52
21.5 kB Download
md5:f0b7538d96ddcf951e54ba2a353e6631
12.5 kB Download
md5:5429b574c084535a7d8413fad8b9cddd
40.6 kB Download
md5:c9eae9e9f5bd4f628352ea613e32c44d
26.2 kB Download
md5:2579ff0f295950e1df27bbf8efbf5b1a
5.7 kB Download
md5:dd52b99e91f846991c9a04d25a42ac1c
5.2 kB Download
md5:1ebf44a1f9306b3523a5fb93aed2a311
471 Bytes Download
md5:84d0f4bebad36093ad245ba2ed2906e1
5.1 kB Download
md5:bded5a823f520d9b61d732b646a4bc8e
4.1 kB Download
md5:81f1dfe1f0bc1b08f4b226e8355851f4
610 Bytes Download
md5:7fd79941b354e9956e3a0bda7b1dedfb
7.7 kB Download
md5:5af503f31a8715077fb61cd4d9b97a9b
3.8 kB Download
md5:4c3933a9f6557524fd969911f7d5dfb5
11.1 kB Download
md5:d4fa514928d6f2e4df271b0a930030eb
4.0 kB Download