This repository contains code to replicate analyses from the paper "Functional reorganization is related to motor recovery and structural disruption" by Olafson and colleagues.
- Extract precision matrices from timeseries data (set diagonals to 0 prior to graph matching)
project/code/jupyter_code/extract_precision_matrices.ipynb
- Run graph matching algorithm on precision matrices
project/code/jupyter_code/graph_matching_precision_stroke.ipynb
- Calculate remapping frequencies
project/code/matlab_code/calculate_remapping_freq.m
- Perform analyses
project/code/matlab_code/rev_Fig3CD_Contra_Ipsi_Yeo_remaps.m
project/code/matlab_code/rev_Fig4_nodestrength_ChaCo_remaps.m
project/code/matlab_code/rev_Fig5_remaps_and_recovery.m
project/code/matlab_code/SuppFig5_overlap_lesion_ROIs.m
project/code/matlab_code/SuppFig6_RemappingFD.m
Estimate structural disconnection from lesion masks using the NeMo tool v2.0