Integrated anatomical and functional connectivity mapping in episodic migraine: a spectral graph theory approach.
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] § 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] § 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
- 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.1186/s10194-024-01854-8 [code]
- Involvement of the cerebellum in structural connectivity enhancement in episodic migraine.Journal: The journal of headache and painIn 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 topographyIn 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 painIn 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 painIn 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 behaviorIn 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 neuroscienceIn 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 reportsIn 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 neurologyIn 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.
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:f6453a7ac914d70c…
Add the badge to the code's README
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 -->
[](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:endHTML
<!-- 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.
