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.

2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 2 matches
  1. [1] § Methodology › General pipeline ↔ Code/Error_Metrics/robustnessAnalysis_PIC.m, lines 1 to 76 · score 0.58 · Spectral mapping, structural matrix, robustness, functional matrix, power, diagonal · block oscr:b:ZBGWY2JXBJJRC-F · Report a mismatch
  2. [2] § Methodology › Connectivity matrices › Individual contributions of walk lengths ↔ Code/Error_Metrics/robustnessAnalysis_PIC.m, lines 84 to 122 · score 0.51 · rotation matrix, polynomial, Becker, functional matrix, powers, predict · block oscr:b:180ZHNKY4CK5A-U · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: 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 (how the code is found and 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 (Clinical Neurology, 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.1186/s10194-024-01854-8 [code]
Involvement of the cerebellum in structural connectivity enhancement in episodic migraine.
Journal: The journal of headache and pain
In common: Statistics and Machine Learning Toolbox, pain, structural MRI / diffusion, 18 references, author Raquel Gil-Gouveia
[2] 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
[3] doi:10.1186/s10194-025-01969-6 [code]
Uncovering longitudinal changes in the brain functional connectome along the migraine cycle: a multilevel clinical connectome fingerprinting framework.
Journal: The journal of headache and pain
In common: Statistics and Machine Learning Toolbox, pain, fMRI, 7 references, author Raquel Gil-Gouveia
[4] doi:10.1186/s10194-024-01806-2 [code]
Shifts in structural connectome organization in the limbic and sensory systems of patients with episodic migraine.
Journal: The journal of headache and pain
In common: Statistics and Machine Learning Toolbox, pain, structural MRI / diffusion, 9 references
[5] doi:10.1007/s11682-022-00690-1
Microstructural white matter alterations associated with migraine headaches: a systematic review of diffusion tensor imaging studies.
Journal: Brain imaging and behavior
In common: pain, structural MRI / diffusion, 7 references
[6] doi:10.3389/fnins.2025.1672542
Brain network properties in chronic pain-a systematic review and meta-analysis of graph-based connectivity metrics.
Journal: Frontiers in neuroscience
In common: pain, fMRI, structural MRI / diffusion, 5 references
[7] doi:10.1162/imag_a_00378 [code]
Group-common and individual-specific effects of structure-function coupling in human brain networks with graph neural networks.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: Statistics and Machine Learning Toolbox, fMRI, structural MRI / diffusion, 7 references
[8] doi:10.1038/s41598-025-23131-7 [code]
Using ECG-derived respiration for explaining BOLD-fMRI fluctuations during rest and respiratory modulations.
Journal: Scientific reports
In common: fMRI, 6 references
[9] doi:10.1007/s10334-024-01153-y [code]
Impact of truncating diffusion MRI scans on diffusional kurtosis imaging.
Journal: Magma (New York, N.Y.)
In common: structural MRI / diffusion, 3 references, author Raquel Gil-Gouveia
[10] 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

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.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41598-026-53726-7.svg)](https://openscicode.org/badge/doi/10.1038/s41598-026-53726-7)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41598-026-53726-7.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41598-026-53726-7
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41598-026-53726-7"><img src="https://openscicode.org/badge/doi/10.1038/s41598-026-53726-7.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.