This repository contains the code for
Chen, Y., Zada, Z., Nastase, S. A., Ashby, F. G., & Ghosh, S. S. (2025). Context modulates brain state dynamics and behavioral responses during narrative comprehension. bioRxiv, 2025-04.
.
├── README.md
├── TREE.md
├── environment.yml
├── generate_tree.sh
├── notebooks
│ ├── RR_figure5_supplement.ipynb
│ ├── behav.ipynb
│ ├── figure1.ipynb
│ ├── figure2.ipynb
│ ├── figure3.ipynb
│ ├── figure4.ipynb
│ ├── figure4_RR.ipynb
│ └── figure5.ipynb
├── results
│ ├── behavioral_content_analysis.md
│ ├── behavioral_content_analysis_supplement.md
│ ├── cluster1_combined_2states_deviation_th080.md
│ ├── cluster2_combined_7states_deviation_th080.md
│ ├── cluster3_combined_2states_deviation_th080.md
│ └── cluster4_combined_6states_deviation_th080.md
└── script
├── 01_postproc.py
├── 01_postproc.sh
├── 02_extract_parcels.py
├── 03_get_networks.py
├── 04_single_group_hmm_ntw.py
├── 04_single_group_hmm_ntw.sh
├── 05_model_comp.py
├── 06_state_pattern_cluster.py
├── 07_RR_cluster_stability.py
├── 07_RR_cluster_viz.py
├── 07_RR_correlation.py
├── 07_RR_individual_states.py
├── 07_extract_cluster_data.py
├── 07_map_cluster2stateseq.py
├── 08_behav_proc.py
├── 08_behav_proc_bin_1s.py
├── 08_stimuli_annot.py
├── 08_stimuli_annot_bin_1s.py
├── 09_behavior_content_glmm.py
├── 09_behavior_content_glmm_bin_1s.py
├── 09_brain_content_glmm.py
├── 09_brain_content_glmm.sh
├── 10_result2md.py
├── __init__.py
└── utils
├── __init__.py
├── glmm.py
├── pattern_cluster.py
└── result2md.py
5 directories, 46 files