This repository contains code and resources pertaining to:
Chang, L.J., Jolly, E., Cheong, J. H., Rapuano, K., Greenstein, N. Chen, PHA, & Manning, J.R. (Under Review). Endogenous variation in ventromedial prefrontal cortex state dynamics during naturalistic viewing reflects affective experience. Preprint bioRxiv. 10.1101/487892
The original preprint is available on bioRxiv
All code used to perform analyses from the paper are in the Notebook Folder
- Denoise preprocessed neuroimaging data
- Compute Intersubject Correlation Analyses
- Compute Autocorrelation Analyses
- Compute All HMM Analyses
- Compute Facial Expression Analyses
- Compute Emotion Rating Analyses
- Compute Inter-experiment Shared Response Model
- Compute Feature Extraction from FNL Episode 1
This code requires tools and functions from several other toolboxes developed by our lab including:
-
nltools: a Python multivariate analysis library available on PyPI
-
fnl_tools: Helper functions for working with the FNL data available on Github
-
feat: A Python package for performing facial expression analyses and visualization available on Github.
-
emotionCF: A Python package for performing collaborative filtering available on Github.
-
pymer4: A Python wrapper for running Mixed Effects regression models in LMER.
There are likely a number of python packages used across many of the analyses that you will need to have installed including:
- numpy
- scipy
- pandas
- sklearn
- nilearn
- hmmlearn
- matplotlib
- seaborn
- pliers
- nibabel
- wordcloud
Many nifti images related to this project can be found in our Neurovault collection including:
- The k=50 meta-analytic coactivation parcellation mask
- thresholded Group-HMM State Contrast Maps
- unthresholded Group-HMM State Contrast Maps
- Study 1 Neuroimaging Data - Available on OpenNeuro
- Study 2 Neuroimaging Data - Available on OpenNeuro
- Study 3 Face Expression Data - Available on OSF. We are only sharing extracted Action Unit Values. We do not have permission to share raw video data.
- Study 4 Emotion Ratings - Available on OSF. Rating data was collected on Amazon Mechanical Turk using a custom Flask web application built by Nathan Greenstein.
The authors would like to acknowledge Sushmita Sadhuka, Zainab Molani, and Antonia Hoidal who assisted in the data collection. This work was supported by funding from the National Institute of Mental Health R01MH116026 and R56MH080716 and NSF CAREER 1848370 as well as funding from the Young Scholar Fellowship Program by the Ministry of Science and Technology (MOST 109-2636-H-002-006) in Taiwan.