OSCR

Integrated anatomical and functional connectivity mapping in episodic migraine: a spectral graph theory approach.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches
  1. [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. [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

  1. function robustnessAnalysis()
  2. % Investigate the robustness of individual spectral mapping with respect to noise
  3. % in the structural matrices using the multiplicative perturbation model.
  4. add_folders();
  5. % Parameters
  6. rho_values = 0:0.02:0.5; % Range of perturbation parameter rho
  7. k = 7; % Maximum power for polynomial expansion
  8. num_runs = 10000; % Number of runs for averaging
  9. % Define matrix F
  10. F = [
  11. 1.0000 0.0641 0.7277 0.3484;
  12. 0.0641 1.0000 0.1533 0.1546;
  13. 0.7277 0.1533 1.0000 0.1029;
  14. 0.3484 0.1546 0.1029 1.0000
  15. ];
  16. % Define matrix S
  17. S = [
  18. 1.0000 0.7355 0.6143 0.1188;
  19. 0.7355 1.0000 0.2711 0.4548;
  20. 0.6143 0.2711 1.0000 0.3465;
  21. 0.1188 0.4548 0.3465 1.0000
  22. ];
  23. % Symmetrize matrices
  24. S = (S + S') / 2;
  25. F = (F + F') / 2;
  26. % Set diagonal elements to 1
  27. S(1:size(S, 1) + 1:end) = 1;
  28. F(1:size(F, 1) + 1:end) = 1;
  29. % Train the model
  30. [a, R] = individual_train(S, F, k);
  31. % Initialize matrix to store average correlations
  32. average_correlations = zeros(1, length(rho_values));
  33. % Loop over rho values
  34. for idx = 1:length(rho_values)
  35. rho = rho_values(idx);
  36. temp_correlations = zeros(1, num_runs); % Store correlations for each run
  37. for run = 1:num_runs
  38. % Perturb the structural matrix using the multiplicative model
  39. Delta = (2 * rho * rand(size(S)) - rho); % Uniform perturbation in [-rho, rho]
  40. S_perturbed = (1 + Delta) .* S; % Apply multiplicative perturbation
  41. S_perturbed = (S_perturbed + S_perturbed') / 2; % Ensure symmetry
  42. % Predict functional matrix from perturbed structural matrix
  43. F_perturbed = individual_predict(S_perturbed, a, R);
  44. % Calculate correlation between original and perturbed functional matrices
  45. temp_correlations(run) = smcorr(F, F_perturbed);
  46. end
  47. % Compute the average correlation for this rho
  48. average_correlations(idx) = mean(temp_correlations);
  49. end
  50. % Plot results
  51. figure;
  52. plot(rho_values, average_correlations, '-o', 'LineWidth', 2);
  53. xlabel('\rho (Perturbation Parameter)');
  54. ylabel('Average Correlation (u_{corr})');
  55. title('Robustness of Spectral Mapping to Structural Noise');
  56. grid on;
  57. end
  58. % Funções auxiliares
  59. % private function to add toolbox folders to the matlab path
  60. function add_folders()
  61. parts = strsplit(mfilename('fullpath'),filesep);
  62. addpath(genpath([filesep fullfile(parts{1:end-2})]));
  63. end
  64. function [a,R] = individual_train(S,F,k)
  65. % INDIVIDUAL_TRAIN trains a mapping for single subjects based on a vector of
  66. % coefficents and a rotation matrix.
  67. %
  68. % Inputs:
  69. % S - symmetric structural matrix
  70. % F - symmetric functional matrix
  71. % k - the maximum power of the polynomial (paths length)
  72. %
  73. % Outputs:
  74. % a - vector of coefficients
  75. % R - rotation matrix
  76. %
  77. % See also INDIVIDUAL_PREDICT.
  78. %
  79. % Author: Cassiano Becker, June 2017
  80. %
  81. % ---- BEGIN CODE ----
  82. % perform ordered eigendecomposition
  83. %compute and order eigen values(V) and eigen vectors(lam) for both Matrices
  84. [V,lam] = oeig(S);
  85. [U,phi] = oeig(F);
  86. %compute the vandermonde matrix
  87. L = vandermonde(lam,k);
  88. %computes the pseudoinverse matrix
  89. Ldag = pinv(L);
  90. % vector of cofficients
  91. a = (Ldag*phi);
  92. % rotation matrix
  93. R = U*V';
  94. end
  95. function textMatrix(M)
  96. % Adiciona os valores da matriz como texto no gráfico
  97. [rows, cols] = size(M);
  98. for i = 1:rows
  99. for j = 1:cols
  100. text(j, i, sprintf('%.2f', M(i, j)), ...
  101. 'HorizontalAlignment', 'center', 'Color', 'black', 'FontSize', 10);
  102. end
  103. end
  104. end
  105. function Fhat = individual_predict(S,a,R)
  106. [V,lam] = oeig(S);
  107. k = length(a)-1;
  108. L = vandermonde(lam,k);
  109. % apply mapping
  110. Fhat = R*V*diag(L*a)*(V')*(R');
  111. end

robustnessAnalysis_PIC.m at commit e2ddae4, no license · at the source

Overview

Authors: Gonçalo Grácio1, Ana Matoso2, Inês Esteves2, Ana R Fouto2,3, Amparo Ruiz-Tagle2, Gina Caetano2, Raquel Gil-Gouveia4,5, Patrícia Figueiredo2, Rita G Nunes2, Sérgio Pequito1
  1. Institute for Systems and Robotics – Lisboa and Department of Electrical and Computer Engineering, Instituto Superior Técnico, University of Lisbon, Lisbon, Portugal
  2. Institute for Systems and Robotics - Lisboa and Department of Bioengineering, Instituto Superior Técnico, University of Lisbon, Lisbon, Portugal
  3. Algarve Biomedical Center, Faro, Portugal
  4. Neurology Department, Hospital da Luz, Lisbon, Portugal
  5. Center for Interdisciplinary Research in Health, Universidade Católica Portuguesa, Lisbon, Portugal
Journal: Scientific reports, volume 16, issue 1, article 22871
Dates: received 17 September 2025; accepted 13 May 2026; published online 20 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41598-026-53726-7 · PMID 42156507 · PMCID PMC13388938 · OpenAlex W4414994944
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), fMRI (modality), human (organism), pain (population)
Methods: Spectral & time-frequency, Connectivity, Statistics, Machine learning, fMRI & imaging
Keywords: Neurology, Neuroscience
MeSH: Brain*, Brain Mapping*, Migraine Disorders*, Adult, Case-Control Studies, Diffusion Magnetic Resonance Imaging, Female, Humans, Magnetic Resonance Imaging, Nerve Net (* major topic)
Topic: Migraine and Headache Studies (Psychiatry and Mental health, Medicine), according to OpenAlex
Funding: Fundação para a Ciência e a Tecnologia (2023.03810.BDANA)
Citations: not cited yet (Europe PMC); 63 references in the paper

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

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: e2ddae40ca73f1b0cb7179c07e09252b04d6904e, 25 September 2025
Languages: MATLAB (16), Jupyter (1)
Size: 26 files, 17 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: 1 notebook
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
17 files

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://github.com/ggoncalo02/SpectralConnectivity. The full neuroimaging dataset analysed during the current study is not publicly available due to patient privacy restrictions but is available from the corresponding author on reasonable request.

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://doi.org/10.1038/s41598-026-53726-7

BibTeX

@article{gracio2026integrated,
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/s41598-026-53726-7},
url = {https://doi.org/10.1038/s41598-026-53726-7},
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/05/20
VL - 16
IS - 1
SP - 22871
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/s41598-026-53726-7
UR - https://doi.org/10.1038/s41598-026-53726-7
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41598-026-53726-7",
"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": "Sci Rep",
"volume": "16",
"issue": "1",
"page": "22871",
"DOI": "10.1038/s41598-026-53726-7",
"PMID": "42156507",
"PMCID": "PMC13388938",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41598-026-53726-7",
"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 topography
In 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 neurology
In 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: eLife
In 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 communications
In 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 mapping
In 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. Clinical
In 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 medicine
In 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: iScience
In 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.

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.