DOI: 10.6084/m9.figshare.29082671
title: Single neurons in the human substantia nigra encode social learning signals

description: Description of the data and file structureBehavioral and electrophysiological data were collected from neurosurgical patients who played a social exchange game while undergoing single-unit electrophysiological recording from the substantia nigra and globus pallidus in order to delineate the potential roles of these neurons in encoding social learning signals.Files and variablesFile: Code.zip<b>Description:</b> This compressed folder contains all scripts required to conduct the behavioral and neural analyses presented in the paper. It is organized into two subfolders: behavior and neural. The behavior folder is further organized into a prep folder and a modeling folder. The scripts in the prep folder are what were used for data cleaning, organizing, and model-free analyses. All model scripts are in the modeling folder. Scripts for carrying out neural analyses are in the neural folder. Note you will also need to download the OSORT offline sorting algorithm, which is linked as a related work here and also cited in the paper.File: Data_GP.zip<b>Description:</b> This compressed folder contains all behavioral and neural data collected from participants who underwent single unit recording in the globus pallidus. This data is split into two folders, UG1 and UG2, corresponding to the two versions of the game played by participants. In each of these folders, data is further split into one folder per session. Each session folder contains a behavior folder, which contains the raw behavioral data, and a neural folder, which contains the raw neural data (.mat files) as well as a merging spreadsheet, detailing how clusters identified with OSORT were merged into putative units for that session.File: Data_SN_morph-unit-plots.zip<b>Description:</b> This compressed folder contains the average waveforms for all putative dopaminergic units identified from neural recordings in the substantia nigra. Each waveform is stored under its unit number, corresponding to the merge sheets in the neural data folders. Any unit that is in a merge file but not listed in this folder was not classified as putatively dopaminergic.File: Data_SN_UG2.zip<b>Description:</b> This compressed folder has the same organization structure as Data_GP.zip, but corresponds to data collected for participants who underwent recording in the substantia nigra and played the version of the game that contained mood ratings and both the human and computer conditions.File: Data_SN_UG1.zip<b>Description:</b> This compressed folder has the same organization structure as Data_GP.zip, but corresponds to data collected for participants who underwent recording in the substantia nigra and played the version of the game that contained no mood ratings and only the human condition.File: Q_learning.m<b>Description:</b> This is the additional Q-learning model, compared in the manuscript to the norma adaptation models by adding to the model list in all_models_allfixedalpha.m.Code/softwareFirst, analyze the behavioral data for each cohort, beginning with the Code/behavior/prep folder and then the Code/behavior/modeling folder. Next, analyze the neural data by identifying putative units using the OSORT offline sorting algorithm (linked in related works and cited in the paper). Phenotype those putative units as putatively dopaminergic by waveform width and firing rate using the scripts in the Code/neural folder. Then, use the scripts "raster<i>s</i>teps.m" and "mpsth_AN.m" in the Code/neural folder to compute and save continuous z-scored firing rates at split reveal and mood choice for each putative unit. Lastly, use the regression scripts to relate continuous firing rates to behavioral variables and also to generate relevant visualizations. All figures in the paper were generated using the code provided in these scripts. You will need MATLAB and R to recapitulate these analyses. All required R packages are loaded in the R scripts.