Published June 17, 2024 | Version v1

1p_BLA_sync_permutation_social_valence

  • 1. ROR icon Max Planck Society

Description

Genetically- and spatially-defined basolateral amygdala neurons control food consumption and social interaction

Highlights:

  1. Classification of molecularly-defined glutamatergic neuron types in mouse BLA with distinct spatial expression patterns.
  2. BLALypd1 neurons are positive-valence neurons innately responding to food and promoting normal feeding.
  3. BLAEtv1 neurons innately respond to aversive and social stimuli.
  4. BLAEtv1 neurons promote fear learning and social interactions.

 

"Step by step" for codes for BLA neuron calcium imaging analysis

  1. Either using our demo files or your calcium imaging and behavior CSV files need to be used: Demo lists: 1. Figure4_food, 2. Figure5_social, 3. Figure5_fear_conditioning, 4. suppl.fig10_longitudinal_footshock_social.

Note

Demo files are already preprocessed H5 files, so you can skip 2-3steps.

  1. you need to download "core_codes" (logger.py, preprocessing.py, util.py) to synchronize the extracted behavior statistics with calcium traces (The TTL emission-reception delay is negligible (less than 30ms), therefore the behavioral statistics time series can be synchronized with calcium traces by the emission/receival time on both devices) and it would generate combined one H5 file (behavior+calcium data)
  2. Run Synchrnoize_h5generation.py code to apply core-codes (preprocessing) to your data:
import core.preprocessing as prep
 
  1. You can run each code (5 codes) described in the paper to generate the results: 1. Fear Conditioning, 2.social, 3. food, 4. permutation, 5, suppl.10 social_footshock.py code number 4 is the percentage comparison with shuffling of data in Figure4-5 as bar graph you can reproduce using the code: Figure4_5_permutation_bargraph.

required

Note

-System requirements Python (3.10.8): we used a Python IDE for professional developers by JetBrains, Pycharm. Packages: suite2p : https://github.com/MouseLand/suite2p

pip install git+https://github.com/MouseLand/suite2p.git
 

matplotlib

pip install matplotlib
pip install PyQt5
 

numpy

Warning

our code included : matplotlib Qt5Agg An Error is happening because Google Colab and Jupyter run on virtual environments which do not support GUI outputs as you cannot open new windows through a browser. Running it locally on a code editor(Spyder, or even IDLE) ensures that it can open a new window for the GUI to initialize.

Tip

  • "our analysis pipeline is based on basic python packages:"
>  import numpy as np
>import h5py as h5
>import pandas as pd
 

Installation guide above

  • Demo -Demo_data.zip

Acknowledgement

Yue Zhang

 

https://github.com/limserenahansol/1p_BLA_sync_permutation_social_valence

Github link for this 

Files

demo_Data.zip

Files (24.1 MB)

Name Size Download all
md5:177d6a3cca57e415469b4043885b8d6b
23.9 MB Preview Download
md5:a460f3fbc3de1018cacd472c8fee6c0c
21.4 kB Download
md5:7a4b477a463ee5810ac2f970880b4542
15.7 kB Download
md5:fc0f98dcd5ad5d46d34ffce1d0661da1
4.3 kB Download
md5:419d8ba60ac0b6bbc25fe7697260bc4c
9.1 kB Download
md5:aef30759a8f797a1352bbaadc22f3976
75.8 kB Preview Download
md5:19c147bdce87b7b459a1c244b628438f
32.6 kB Download
md5:6e5996d175874318ef4e2a8ea537d1d0
2.9 kB Preview Download
md5:2833cf1f8a407d6a339790f68a8f8e90
13.4 kB Download
md5:d9cf20e0b1bdbe6f8aec0543c0ce607f
787 Bytes Download
md5:378faf2c39d742144eca1ffab9110571
2.5 kB Download

Additional details