This repository contains code used in:
Xing Qian et al. (2026)
Altered salience network structure–function integration underlies the decline in cognitive flexibility during aging
PLOS Biology
This implementation is based on:
Medaglia et al. (2018), Nature Human Behaviour
Instead of selecting a fixed number of eigenmodes, we use a variance-based criterion to determine:
- Coupling (alignment; smooth components)
- Decoupling (liberality; rough components)
This approach:
- Is data-driven
- Is robust across parcellations
- Avoids arbitrary selection of k
Steps:
-
Divide eigenvalues into:
- Smooth (positive eigenvalues)
- Rough (negative eigenvalues)
-
For each group:
- Compute total energy = sum of absolute eigenvalues
- Sort eigenvalues (descending)
- Compute cumulative energy
-
Define kA and kL as:
- Minimum number of eigenvalues explaining 95% energy
-
Average across time → KA, KL
Structural matrix:
A = V Λ V^T
- V: eigenvectors
- Λ: eigenvalues
Interpretation:
- Smooth modes → coherent activity
- Rough modes → abrupt variation
x_hat = V^T x
Reconstruction:
x = V x_hat
- Coupling = projection onto smooth modes
- Decoupling = projection onto rough modes
Use KA and KL to select components.
- This is NOT SC–FC correlation
- It is graph spectral decomposition
Please cite:
- Qian et al., 2026 (PLOS Biology) DOI 10.5281/zenodo.19316674
- Medaglia et al., 2018