Code for running simulations and data analysis from:
Cole MW, Ito T, Schultz D, Mill R, Chen R, Cocuzza C (2019). "Task activations produce spurious but systematic inflation of task functional connectivity estimates". NeuroImage. doi:10.1016/j.neuroimage.2018.12.054 https://authors.elsevier.com/a/1YNWs3lc~r3Jbx https://doi.org/10.1016/j.neuroimage.2018.12.054
Minimal model: A simple model with easy-to-read Python code to demonstrate the basic activation-based task-state FC inflation effect and an effective way to correct the issue.
Neural mass model: Jupyter Notebook implementing the neural mass model reported in the paper.
empiricalfMRIAnalyses directory: MATLAB code used for empirical fMRI analyses. Start with masterscript.m. Please note that the code has not been tested for use on other servers, versions of MATLAB, etc. Feel free to contact the corresponding author with questions.