Integrated anatomical and functional connectivity mapping in episodic migraine: a spectral graph theory approach.
The 2 matches
- [1] § Methodology › General pipeline ↔ Code/Error_Metrics/robustnessAnalysis_PIC.m, lines 1–76 · score 0.58 · Spectral mapping, structural matrix, robustness, functional matrix, power, diagonal
- [2] § Methodology › Connectivity matrices › Individual contributions of walk lengths ↔ Code/Error_Metrics/robustnessAnalysis_PIC.m, lines 84–122 · score 0.51 · rotation matrix, polynomial, Becker, functional matrix, powers, predict
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 146 lines · 3.9 KB · no license · 2 matches
- function robustnessAnalysis()
- % Investigate the robustness of individual spectral mapping with respect to noise
- % in the structural matrices using the multiplicative perturbation model.
- add_folders();
- % Parameters
- rho_values = 0:0.02:0.5; % Range of perturbation parameter rho
- k = 7; % Maximum power for polynomial expansion
- num_runs = 10000; % Number of runs for averaging
- % Define matrix F
- F = [
- 1.0000 0.0641 0.7277 0.3484;
- 0.0641 1.0000 0.1533 0.1546;
- 0.7277 0.1533 1.0000 0.1029;
- 0.3484 0.1546 0.1029 1.0000
- ];
- % Define matrix S
- S = [
- 1.0000 0.7355 0.6143 0.1188;
- 0.7355 1.0000 0.2711 0.4548;
- 0.6143 0.2711 1.0000 0.3465;
- 0.1188 0.4548 0.3465 1.0000
- ];
- % Symmetrize matrices
- S = (S + S') / 2;
- F = (F + F') / 2;
- % Set diagonal elements to 1
- S(1:size(S, 1) + 1:end) = 1;
- F(1:size(F, 1) + 1:end) = 1;
- % Train the model
- [a, R] = individual_train(S, F, k);
- % Initialize matrix to store average correlations
- average_correlations = zeros(1, length(rho_values));
- % Loop over rho values
- for idx = 1:length(rho_values)
- rho = rho_values(idx);
- temp_correlations = zeros(1, num_runs); % Store correlations for each run
- for run = 1:num_runs
- % Perturb the structural matrix using the multiplicative model
- Delta = (2 * rho * rand(size(S)) - rho); % Uniform perturbation in [-rho, rho]
- S_perturbed = (1 + Delta) .* S; % Apply multiplicative perturbation
- S_perturbed = (S_perturbed + S_perturbed') / 2; % Ensure symmetry
- % Predict functional matrix from perturbed structural matrix
- F_perturbed = individual_predict(S_perturbed, a, R);
- % Calculate correlation between original and perturbed functional matrices
- temp_correlations(run) = smcorr(F, F_perturbed);
- end
- % Compute the average correlation for this rho
- average_correlations(idx) = mean(temp_correlations);
- end
- % Plot results
- figure;
- plot(rho_values, average_correlations, '-o', 'LineWidth', 2);
- xlabel('\rho (Perturbation Parameter)');
- ylabel('Average Correlation (u_{corr})');
- title('Robustness of Spectral Mapping to Structural Noise');
- grid on;
- end
- % Funções auxiliares
- % private function to add toolbox folders to the matlab path
- function add_folders()
- parts = strsplit(mfilename('fullpath'),filesep);
- addpath(genpath([filesep fullfile(parts{1:end-2})]));
- end
- function [a,R] = individual_train(S,F,k)
- % INDIVIDUAL_TRAIN trains a mapping for single subjects based on a vector of
- % coefficents and a rotation matrix.
- %
- % Inputs:
- % S - symmetric structural matrix
- % F - symmetric functional matrix
- % k - the maximum power of the polynomial (paths length)
- %
- % Outputs:
- % a - vector of coefficients
- % R - rotation matrix
- %
- % See also INDIVIDUAL_PREDICT.
- %
- % Author: Cassiano Becker, June 2017
- %
- % ---- BEGIN CODE ----
- % perform ordered eigendecomposition
- %compute and order eigen values(V) and eigen vectors(lam) for both Matrices
- [V,lam] = oeig(S);
- [U,phi] = oeig(F);
- %compute the vandermonde matrix
- L = vandermonde(lam,k);
- %computes the pseudoinverse matrix
- Ldag = pinv(L);
- % vector of cofficients
- a = (Ldag*phi);
- % rotation matrix
- R = U*V';
- end
- function textMatrix(M)
- % Adiciona os valores da matriz como texto no gráfico
- [rows, cols] = size(M);
- for i = 1:rows
- for j = 1:cols
- text(j, i, sprintf('%.2f', M(i, j)), ...
- 'HorizontalAlignment', 'center', 'Color', 'black', 'FontSize', 10);
- end
- end
- end
- function Fhat = individual_predict(S,a,R)
- [V,lam] = oeig(S);
- k = length(a)-1;
- L = vandermonde(lam,k);
- % apply mapping
- Fhat = R*V*diag(L*a)*(V')*(R');
- end
robustnessAnalysis_PIC.m at commit e2ddae4, no license · at the source
Overview
- Institute for Systems and Robotics – Lisboa and Department of Electrical and Computer Engineering, Instituto Superior Técnico, University of Lisbon, Lisbon, Portugal
- Institute for Systems and Robotics - Lisboa and Department of Bioengineering, Instituto Superior Técnico, University of Lisbon, Lisbon, Portugal
- Algarve Biomedical Center, Faro, Portugal
- Neurology Department, Hospital da Luz, Lisbon, Portugal
- Center for Interdisciplinary Research in Health, Universidade Católica Portuguesa, Lisbon, Portugal
Abstract
Migraine disproportionately affects women, yet how migraine physiology reshapes large-scale brain communication remains unclear. We combined diffusion-weighted imaging (DWI) and resting-state fMRI in female participants (14 patients with episodic migraine without aura; 15 matched healthy controls) to test how direct and indirect anatomical communication paths in the brain can predict brain function. We used a spectral mapping framework that isolates the contribution of communication paths of a specific length and evaluated how well brain structure predicts brain function within individuals. Analyses of individual path lengths revealed a non-monotonic dissociation: no difference at one-step (direct) paths, but higher mapping accuracy in patients at intermediate indirect scales (four and five steps). At longer scales, contributions attenuated in both groups. Spatial correspondence analyses localized patient-specific effects to default mode network subsystems across multiple atlases. These findings indicate that migraine-related dysfunction reflects altered mesoscale structure-function integration along indirect anatomical routes, and they provide a general approach to dissect structure-function coupling by communication scale in disease.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
ggoncalo02/SpectralConnectivity
e2ddae40ca73f1b0cb7179c07e09252b04d6904e, 25 September 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
17 files
- Code/
Convexity/ , MATLAB, 96 linesConvexity.m - Code/
Convexity/ , MATLAB, 107 linesConvexity2d.m - Code/
Convexity/ , MATLAB, 53 linesConvexity_toy_case_Calcu lations.m - Code/
Cummulative Contributtions/ , MATLAB, 267 linesOriginal_Approach_Optimi zation_Final_boxplot.m - Code/
Error_Metrics/ , MATLAB, 90 linesComparingPatientsandCont rols.m - Code/
Error_Metrics/ , MATLAB, 82 linesComparing_Controls.m - Code/
Error_Metrics/ , MATLAB, 126 linesComparing_Patients_.m - Code/
Error_Metrics/ , MATLAB, 257 linesError_Spectral_Controls. m - Code/
Error_Metrics/ , MATLAB, 258 linesError_Spectral_Patients. m - Code/
Error_Metrics/ , MATLAB, 216 linesError_a0_a1_Controls.m - Code/
Error_Metrics/ , MATLAB, 216 linesError_a0_a1_Patients.m - Code/
Error_Metrics/ , MATLAB, 167 linesError_a1_Controls.m - Code/
Error_Metrics/ , MATLAB, 167 linesError_a1_Patients.m - Code/
Error_Metrics/ , MATLAB, 194 linesTwoVariableOpt_WithStart Deviation.m - Code/
Error_Metrics/ , MATLAB, 146 lines, 2 matchesrobustnessAnalysis_PIC.m - Code/
Individual Contributtions/ , MATLAB, 272 linesTwoVariableOpt_individua l_contrib_boxplot_compar isson_a0_1Final.m - Code/
Spatial Localation and Brain Maps/ , Jupyter, 195 linesUsage.ipynb
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 17 scripts, each with its path and the digest of its content;
- 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability
Example structural and functional connectivity matrices that allow replication of the main analyses are available in the Spectral Connectivity repository: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 2 keywords, 10 MeSH terms, 1 funder, 59 references.
Cite
This paper
Grácio, G., Matoso, A., Esteves, I., Fouto, A. R., Ruiz-Tagle, A., Caetano, G., Gil-Gouveia, R., Figueiredo, P., Nunes, R. G., & Pequito, S. (2026). Integrated anatomical and functional connectivity mapping in episodic migraine: a spectral graph theory approach. Scientific reports, 16(1), 22871. https://
BibTeX
@article{gracio2026integ
author = {Grácio, Gonçalo and Matoso, Ana and Esteves, Inês and Fouto, Ana R and Ruiz-Tagle, Amparo and Caetano, Gina and Gil-Gouveia, Raquel and Figueiredo, Patrícia and Nunes, Rita G and Pequito, Sérgio},
title = {{Integrated anatomical and functional connectivity mapping in episodic migraine: a spectral graph theory approach}},
journal = {Scientific reports},
year = {2026},
month = may,
volume = {16},
number = {1},
pages = {22871},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/
url = {https://
pmid = {42156507},
pmcid = {PMC13388938}
}
RIS
TY - JOUR
AU - Grácio, Gonçalo
AU - Matoso, Ana
AU - Esteves, Inês
AU - Fouto, Ana R
AU - Ruiz-Tagle, Amparo
AU - Caetano, Gina
AU - Gil-Gouveia, Raquel
AU - Figueiredo, Patrícia
AU - Nunes, Rita G
AU - Pequito, Sérgio
TI - Integrated anatomical and functional connectivity mapping in episodic migraine: a spectral graph theory approach
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/
VL - 16
IS - 1
SP - 22871
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Integrated anatomical and functional connectivity mapping in episodic migraine: a spectral graph theory approach",
"container-title": "Scientific reports",
"author": [
{
"family": "Grácio",
"given": "Gonçalo"
},
{
"family": "Matoso",
"given": "Ana"
},
{
"family": "Esteves",
"given": "Inês"
},
{
"family": "Fouto",
"given": "Ana R"
},
{
"family": "Ruiz-Tagle",
"given": "Amparo"
},
{
"family": "Caetano",
"given": "Gina"
},
{
"family": "Gil-Gouveia",
"given": "Raquel"
},
{
"family": "Figueiredo",
"given": "Patrícia"
},
{
"family": "Nunes",
"given": "Rita G"
},
{
"family": "Pequito",
"given": "Sérgio"
}
],
"container-title-short":
"volume": "16",
"issue": "1",
"page": "22871",
"DOI": "10.1038/
"PMID": "42156507",
"PMCID": "PMC13388938",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
20
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1007/s10548-026-01247-x [code]
- Salience Network Dynamics Across Spontaneous Attacks, Interictal Rest and Interictal Pain Imagery in Menstrually Related Migraine.Journal: Brain topographyIn common: Statistics and Machine Learning Toolbox, pain, fMRI, 11 references, author Raquel Gil-Gouveia
- [2] doi:10.3389/fneur.2026.1796739 [code]
- Network localization of regional intrinsic neural activity alterations in migraine and their neurochemical correlates.Journal: Frontiers in neurologyIn common: Statistics and Machine Learning Toolbox, pain, fMRI, 4 references
- [3] doi:10.7554/elife.103097 [code]
- Canonical neurodevelopmental trajectories of structural and functional manifolds.Journal: eLifeIn common: Statistics and Machine Learning Toolbox, structural MRI / diffusion, 5 references
- [4] doi:10.3389/fpain.2026.1850836 [code]
- Diffusion tensor imaging in chronic tension-type headache.Journal: Frontiers in pain research (Lausanne, Switzerland)In common: pain, structural MRI / diffusion, 4 references
- [5] doi:10.1038/s41467-026-73072-6 [code]
- Mapping the spatiotemporal continuum of structural connectivity development across the human connectome in youth.Journal: Nature communicationsIn common: structural MRI / diffusion, 6 references
- [6] doi:10.1002/hbm.70533 [code]
- Trait-Relevant Tasks Improve Personality Prediction From Structural-Functional Brain Network Coupling.Journal: Human brain mappingIn common: Statistics and Machine Learning Toolbox, structural MRI / diffusion, 4 references
- [7] doi:10.1016/j.nicl.2026.104012 [code]
- Structural-functional multilayer brain network properties and outcome of combined repetitive transcranial magnetic stimulation and psychotherapy for obsessive-compulsive disorder.Journal: NeuroImage. ClinicalIn common: Statistics and Machine Learning Toolbox, fMRI, structural MRI / diffusion, 4 references
- [8] doi:10.1186/s12916-026-04903-y [code]
- Structural connectome architecture and biological vulnerability shape cortical atrophy in cocaine use disorder.Journal: BMC medicineIn common: Statistics and Machine Learning Toolbox, structural MRI / diffusion, 4 references
- [9] doi:10.1162/imag.a.1223
- Individualized structure-function coupling reveals behavioral signatures in the adolescent brain.Journal: Imaging neuroscience (Cambridge, Mass.)In common: fMRI, 4 references
- [10] doi:10.1016/j.isci.2026.116671 [code]
- A high-resolution functional network-organized atlas of human superficial white matter from ultra-high-field diffusion MRI.Journal: iScienceIn common: Statistics and Machine Learning Toolbox, structural MRI / diffusion, 3 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 17 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:eca8bcd1aff322a1…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
