This is the code used in the manuscript entitled "Including data-analytical stability in cluster-based inference", pre-print posted on (https://www.biorxiv.org/content/10.1101/844860v1)
Parts of the code are provided by Anders Eklund (resting state data validation of cluster based inference Eklund et al. 2016, PNAS)
please note that the file paths from the (save-)directories have been masked