OSCR

Salience Network Dynamics Across Spontaneous Attacks, Interictal Rest and Interictal Pain Imagery in Menstrually Related Migraine.

Code ↔ Paper

11 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 11 matches · 9 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Materials and Methods › MRI Data Preprocessing ↔ main2.sh, lines 1–57 · score 0.83 · spatial smoothing, middle volume, Brain Extraction, Linear, distortion, BET
  2. [2] § Materials and Methods › MRI Data Preprocessing ↔ perform_bet_fast.sh, the whole file · a weak match · score 0.81 · bias field, Brain Extraction, FAST, tissue, BET, FNIRT
  3. [3] § Materials and Methods › Dynamic Functional Connectivity (dFC) › Extraction of Dynamic Functional Connectivity (dFC) Eigenvectors ↔ utilities/analyses_scripts/EigenVectors_VoxelSpace.m, the whole file · a weak match · score 0.63 · phase coherence, leading eigenvector, LEiDA, analysing, scans, matrices
  4. [4] § Materials and Methods › Dynamic Functional Connectivity (dFC) ↔ LEiDA_Start.m, the whole file · a weak match · score 0.63 · fractional occupancy, leading eigenvector, cluster centroid, repetition, fMRI, TRs
  5. [5] § Materials and Methods › Dynamic Functional Connectivity (dFC) › dFC State Assignment to SN ↔ utilities/analyses_scripts/Overlap_LEiDA_Yeo.m, the whole file · a weak match · score 0.58 · cluster centroid, LEiDA, zero, clustering solutions, overlap, correlation
  6. [6] § Materials and Methods › MRI Data Acquisition ↔ preprocess_mig.sh, lines 47–88 · score 0.56 · Fieldmap magnitude, MPRAGE, EPI, head, volumes, phase
  7. [7] § Materials and Methods › Dynamic Functional Connectivity (dFC) › Extraction of Dynamic Functional Connectivity (dFC) Eigenvectors ↔ utilities/analyses_scripts/EigenVectors_VoxelSpace.m, the whole file · a weak match · score 0.54 · Hilbert Transform, phase coherence, Eigenvectors
  8. [8] § Materials and Methods › Dynamic Functional Connectivity (dFC) ↔ LEiDA_Start.m, the whole file · a weak match · score 0.54 · leading eigenvector dynamic, LEiDA toolbox, MATLAB, temporal
  9. [9] § Materials and Methods › Dynamic Functional Connectivity (dFC) › Extraction of Dynamic Functional Connectivity (dFC) Eigenvectors ↔ utilities/analyses_scripts/LEiDA_data.m, the whole file · a weak match · score 0.53 · Hilbert Transform, phase coherence, Eigenvectors
  10. [10] § Materials and Methods › Dynamic Functional Connectivity (dFC) › Extraction of Dynamic Functional Connectivity (dFC) Eigenvectors ↔ utilities/analyses_scripts/LEiDA_data.m, the whole file · a weak match · score 0.53 · Hilbert transform, brain areas, scan, Eigenvectors, phase
  11. [11] § Materials and Methods › Dynamic Functional Connectivity (dFC) ↔ LEiDA_AnalysisCentroid.m, the whole file · a weak match · score 0.53 · leading eigenvector dynamic, LEiDA toolbox, MATLAB

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 · 149 lines · 5.4 KB · MIT · 2 matches

  1. function EigenVectors_VoxelSpace(data_dir,save_dir,leida_dir,selectedK)
  2. %
  3. % This function loads the fMRI signal in each voxel of a brain template.
  4. % Resizes the template to the 10mm MNI space. Computes the fMRI phase
  5. % leading eigenvectors for each TR for all participants. Then computes the
  6. % mean leading eigenvector for each LEiDA state across conditions.
  7. %
  8. % INPUT:
  9. % data_dir directory where the fMRI data in NIFTI format is saved
  10. % save_dir directory to save the new data
  11. % leida_dir directory where the results from running LEiDA are saved
  12. % selectedK value of K to be further analysed
  13. %
  14. % OUTPUT:
  15. % V1_MNI10mm leading eigenvectors in MNI 10mm space
  16. % mean_V1 mean leading eigenvectors based on the time courses of PL
  17. % states obtained from running the K-means algorithm
  18. %
  19. % Author: Joana Cabral, University of Minho, [email hidden]
  20. % Miguel Farinha, University of Minho, [email hidden]
  21. % INPUT EXAMPLES:
  22. % data_dir = 'D:/LEiDA_Toolbox/Outputs/dparsf/nofilt_noglobal/func_preproc/';
  23. % save_dir = 'D:/LEiDA_Toolbox/ABIDE_dparsf_MNI10mm/';
  24. % leida_dir = 'D:/LEiDA_Toolbox/LEiDA_Results_ABIDE_dparsf_AAL120/';
  25. % selectedK = 15;
  26. % File with the Kmeans results (output from LEiDA_cluster.m)
  27. file_cluster = 'LEiDA_Clusters.mat';
  28. % Load required data:
  29. if isfile([leida_dir file_cluster])
  30. load([leida_dir file_cluster], 'Kmeans_results', 'rangeK');
  31. end
  32. % Gather the PL state time courses across all participants
  33. state_time_idxs = Kmeans_results{rangeK == selectedK}.IDX;
  34. % Get number of files in folder
  35. data_info = dir([data_dir '*.nii.gz']);
  36. num_subjs = numel(data_info);
  37. % Load 10mm MNI voxel space
  38. MNI10mm_Mask = niftiread('MNI152_T1_10mm_brain_mask.nii');
  39. sz = size(MNI10mm_Mask); % size of the 10mm MNI mask
  40. ind_voxels = find(MNI10mm_Mask(:) > 0); % find the non-zero elements in the mask
  41. n_voxels = length(ind_voxels);
  42. % Matrix to store the leading eigenvectors of all subjects at each TR
  43. V1_all = zeros(length(state_time_idxs)*2,n_voxels);
  44. t_all = 0;
  45. for s = 1:num_subjs
  46. file = data_info(s).name;
  47. [~, baseFileName, ~] = fileparts(file);
  48. ix = strfind(baseFileName,'_'); % get the underscore locations
  49. if length(ix) == 4 % File with names like CMU_a_0050
  50. saveFileName = baseFileName(1:ix(3)); % return the substring up to 3rd underscore
  51. else
  52. saveFileName = baseFileName(1:ix(2)); % return the substring up to 2nd underscore
  53. end
  54. if size(file,1)
  55. disp(['Participant ' saveFileName(1:end-1) ':']);
  56. % Read the nii file
  57. fMRI_MNI = niftiread([data_dir file]);
  58. T = size(fMRI_MNI,4); % number of volumes
  59. disp('- Resizing NIFTI file to MNI 10mm space');
  60. % Files will be resized in order to be accomodated to the MNI10mm template
  61. fMRI_MNI10mm = zeros(sz(1), sz(2), sz(3), T);
  62. for t = 1:T
  63. fMRI_MNI10mm(:,:,:,t) = imresize3(fMRI_MNI(:,:,:,t),sz);
  64. end
  65. clear fMRI_MNI
  66. disp('- Computing the fMRI signal phases using the Hilbert transform');
  67. % Store the fMRI signal phase using the Hilbert transform
  68. fMRI_ts = zeros(n_voxels,T);
  69. for v = 1:n_voxels
  70. [I1,I2,I3] = ind2sub(sz,ind_voxels(v));
  71. fMRI_ts(v,:) = squeeze(fMRI_MNI10mm(I1,I2,I3,:))';
  72. end
  73. clear fMRI_MNI10mm
  74. disp('- Saving fMRI time series in MNI 10mm space');
  75. save([save_dir saveFileName 'MNI10mm'], 'fMRI_ts')
  76. disp('- Computing the leading eigenvectors');
  77. % De-meaning the fMRI signal
  78. for v = 1:n_voxels
  79. fMRI_ts(v,:) = fMRI_ts(v,:) - mean(fMRI_ts(v,:));
  80. end
  81. % Get the fMRI signal phase using the Hilbert transform
  82. for v = 1:n_voxels
  83. fMRI_ts(v,:) = angle(hilbert(fMRI_ts(v,:)));
  84. end
  85. % Compute leading eigenvector of each phase coherence matrix
  86. for t = 2:T-1 % exclude 1st and last TR of each fMRI signal
  87. % Save the leading eigenvector for time t
  88. [v1,~] = eigs(cos(fMRI_ts(:,t) - fMRI_ts(:,t)'),1);
  89. if sum(v1) > 0 % for eigenvectors with sum of entries > 0
  90. v1 = -v1;
  91. end
  92. t_all = t_all + 1; % time point in V1_all
  93. % row t_all correponds to the computed eigenvector at time t for subject s
  94. V1_all(t_all,:) = v1;
  95. end
  96. end
  97. end
  98. % Reduce size in case some scans have less TRs than tmax
  99. % In this case, these lines of code will not result in changes
  100. V1_all(t_all+1:end,:) = [];
  101. disp(' ');
  102. disp('- Saving leading eigenvectors in MNI 10mm space');
  103. save([leida_dir 'V1_all_MNI10mm'], 'V1_all', '-v7.3')
  104. % Save the mean PL states in MNI 10mm space
  105. mean_V1 = zeros(selectedK,n_voxels);
  106. disp(' ');
  107. if size(V1_all,1) ~= size(state_time_idxs,2)
  108. error('- Number of leading eigenvectors and length of state time courses do not coincide');
  109. else
  110. for k = 1:selectedK
  111. disp(['- Computing mean leading eigenvector for PL state ' num2str(k)]);
  112. idx_k = state_time_idxs == k;
  113. mean_V1(k,:) = mean(V1_all(idx_k,:),1);
  114. end
  115. end
  116. disp(' ');
  117. disp(['- Saving the mean leading eigenvectors for K = ' num2str(selectedK)]);
  118. % Create a directory to store results for defined value of K
  119. if ~exist([leida_dir 'K' num2str(selectedK) '/'], 'dir')
  120. mkdir([leida_dir 'K' num2str(selectedK) '/']);
  121. end
  122. K_dir = [leida_dir 'K' num2str(selectedK) '/'];
  123. save([K_dir 'V1_VoxelSpace'], 'mean_V1', 'ind_voxels', 'MNI10mm_Mask');

EigenVectors_VoxelSpace.m at commit ab03cbb, under MIT · at the source

Overview

Authors: Inês Esteves1, Alexandre Perdigão1, Ana R Fouto1,2, Amparo Ruiz-Tagle1,3, Gina Caetano1, Joana Cabral1, Isabel Pavão Martins4, Raquel Gil-Gouveia5,6, César Caballero-Gaudes7,8, Patrícia Figueiredo1
  1. Institute for Systems and Robotics - Lisboa and Department of Bioengineering, Instituto Superior Técnico – Universidade de Lisboa, Lisbon, Portugal
  2. Algarve Biomedical Center, Faro, Portugal
  3. Faculdade de Ciências da Saúde, Universidade Europeia, Lisbon, Portugal
  4. Centro de Estudos Egas Moniz e Instituto de Medicina Molecular João Lobo Antunes, Faculdade de Medicina da Universidade de Lisboa (FMUL), Lisbon, Portugal
  5. Neurology Department, Hospital da Luz, Lisbon, Portugal
  6. Center for Interdisciplinary Research in Health, Universidade Católica Portuguesa, Lisbon, Portugal
  7. Basque Center on Cognition, Brain and Language, Donostia - San Sebastian, Spain
  8. Ikerbasque, Basque Foundation for Science, Bilbao, Spain
Journal: Brain topography, volume 39, issue 6, article 94
Dates: received 26 March 2026; accepted 21 August 2026; published online 4 September 2026; in print 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1007/s10548-026-01247-x · PMID 42693231 · PMCID PMC13541788 · OpenAlex W7207652057
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism), epilepsy (population), pain (population)
Methods: Spectral & time-frequency, Statistics, Machine learning, Connectivity, fMRI & imaging
Keywords: Pain imagery, fMRI, Migraine, Resting state, Dynamic functional connectivity, LEiDA
MeSH: Brain*, Imagination*, Migraine Disorders*, Nerve Net*, Pain*, Adult, Brain Mapping, Female, Humans, Magnetic Resonance Imaging, Rest, Young Adult (* major topic)
Topic: Migraine and Headache Studies (Psychiatry and Mental health, Medicine), according to OpenAlex
Funding: LARSyS FCT funding (DOI: 10.54499/LA/P/0083/2020, 10.54499/UIDP/50009/2020, and 10.54499/UIDB/50009/2020); PRR project Center for Responsible AI (grant C645008882-00000055); Fundação para a Ciência e a Tecnologia (grants PTDC/EMD-EMD/29675/2017, LISBOA-01-0145-FEDER-029675, grants PD/BD/150356/2019, PTDC/EMD-EMD/29675/2017)
Citations: not cited yet (Europe PMC); 83 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

Its files are read in the Code ↔ Paper reader above, with 11 matches between paragraphs and lines of code.

martaxavier/fMRI-Preprocessing

License: none: the authors keep all their rights
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: 44551d735d8193b571348d5b0c59d2422acc47ca, 27 January 2026
Languages: Shell (28), MATLAB (2)
Size: 45 files, 30 scripts
Software Heritage: not archived
Found in: the text, “MRI Data Preprocessing”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: FSL (19 files), FreeSurfer (1 file)
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
31 files, not copied: shown from their source

OSCR keeps no copy of these files: this repository has no license that allows it. The reader above shows each one from its source, fetched by your browser at commit 44551d7, when its fingerprint is the one OSCR verified. How this works.

PSYMARKER/leida-matlab

License: MIT
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: ab03cbb6f987a80fd65ed1aebe75419b660b907e, 29 January 2025
Languages: MATLAB (49)
Size: 55 files, 49 scripts
Software Heritage: not checked
Found in: the text, “Dynamic Functional Connectivity (dFC)”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
51 files

martaxavier/fmri-preprocessing](https:

License: none: the authors keep all their rights
State: the link is dead, verified on 26 September 2026
Evidence: found in the paper
Software Heritage: not archived
Found in: “Data Availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 26 September 2026: the link is dead
  • 26 September 2026: the link is dead

psymarker/leida-matlab](https:

License: none: the authors keep all their rights
State: the link is dead, verified on 26 September 2026
Evidence: found in the paper
Software Heritage: not checked
Found in: “Data Availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 26 September 2026: the link is dead
  • 26 September 2026: the link is dead

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:

  • 4 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 79 scripts, each with its path and the digest of its content;
  • 11 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.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1007/s10548-026-01247-x.

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 3, 28 September 2026

  • Publisher: — → Springer Science+Business Media

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 6 keywords, 12 MeSH terms, 3 funders, 78 references.

Cite

This paper

Esteves, I., Perdigão, A., Fouto, A. R., Ruiz-Tagle, A., Caetano, G., Cabral, J., Martins, I. P., Gil-Gouveia, R., Caballero-Gaudes, C., & Figueiredo, P. (2026). Salience Network Dynamics Across Spontaneous Attacks, Interictal Rest and Interictal Pain Imagery in Menstrually Related Migraine. Brain topography, 39(6), 94. https://doi.org/10.1007/s10548-026-01247-x

BibTeX

@article{esteves2026salience,
author = {Esteves, Inês and Perdigão, Alexandre and Fouto, Ana R and Ruiz-Tagle, Amparo and Caetano, Gina and Cabral, Joana and Martins, Isabel Pavão and Gil-Gouveia, Raquel and Caballero-Gaudes, César and Figueiredo, Patrícia},
title = {{Salience Network Dynamics Across Spontaneous Attacks, Interictal Rest and Interictal Pain Imagery in Menstrually Related Migraine}},
journal = {Brain topography},
year = {2026},
month = sep,
volume = {39},
number = {6},
pages = {94},
publisher = {Springer Science+Business Media},
issn = {0896-0267},
doi = {10.1007/s10548-026-01247-x},
url = {https://doi.org/10.1007/s10548-026-01247-x},
pmid = {42693231},
pmcid = {PMC13541788}
}

RIS

TY - JOUR
AU - Esteves, Inês
AU - Perdigão, Alexandre
AU - Fouto, Ana R
AU - Ruiz-Tagle, Amparo
AU - Caetano, Gina
AU - Cabral, Joana
AU - Martins, Isabel Pavão
AU - Gil-Gouveia, Raquel
AU - Caballero-Gaudes, César
AU - Figueiredo, Patrícia
TI - Salience Network Dynamics Across Spontaneous Attacks, Interictal Rest and Interictal Pain Imagery in Menstrually Related Migraine
T2 - Brain topography
J2 - Brain Topogr
PY - 2026
DA - 2026/09/04
VL - 39
IS - 6
SP - 94
SN - 0896-0267
PB - Springer Science+Business Media
DO - 10.1007/s10548-026-01247-x
UR - https://doi.org/10.1007/s10548-026-01247-x
LA - en
ER -

CSL-JSON

{
"id": "10.1007/s10548-026-01247-x",
"type": "article-journal",
"title": "Salience Network Dynamics Across Spontaneous Attacks, Interictal Rest and Interictal Pain Imagery in Menstrually Related Migraine",
"container-title": "Brain topography",
"author": [
{
"family": "Esteves",
"given": "Inês"
},
{
"family": "Perdigão",
"given": "Alexandre"
},
{
"family": "Fouto",
"given": "Ana R"
},
{
"family": "Ruiz-Tagle",
"given": "Amparo"
},
{
"family": "Caetano",
"given": "Gina"
},
{
"family": "Cabral",
"given": "Joana"
},
{
"family": "Martins",
"given": "Isabel Pavão"
},
{
"family": "Gil-Gouveia",
"given": "Raquel"
},
{
"family": "Caballero-Gaudes",
"given": "César"
},
{
"family": "Figueiredo",
"given": "Patrícia"
}
],
"container-title-short": "Brain Topogr",
"volume": "39",
"issue": "6",
"page": "94",
"DOI": "10.1007/s10548-026-01247-x",
"PMID": "42693231",
"PMCID": "PMC13541788",
"ISSN": "0896-0267",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.1007/s10548-026-01247-x",
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
4
]
]
}
}

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.1038/s41598-026-53726-7 [code]
Integrated anatomical and functional connectivity mapping in episodic migraine: a spectral graph theory approach.
Journal: Scientific reports
In common: Statistics and Machine Learning Toolbox, pain, fMRI, 11 references, author Raquel Gil-Gouveia
[2] doi:10.1002/hbm.70602 [code]
Neuroimaging Correlates of Post-Stroke Pain After Ischemic Stroke: Secondary Analysis of the INSPiRE-TMS Trial.
Journal: Human brain mapping
In common: FreeSurfer, Image Processing Toolbox, Signal Processing Toolbox, 1 other tool, pain, 3 references
[3] doi:10.1162/imag.a.1278 [code]
Young and old adult brains experience opposite effects of acute sleep restriction on the functional connectivity network.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: FSL, Image Processing Toolbox, Signal Processing Toolbox, 1 other tool, fMRI, 4 references
[4] doi:10.1016/j.bpsgos.2026.100753 [code]
Dynamic Repertoire of Brain Networks in Mindfulness-Based Cognitive Therapy During Rumination: A Randomized Controlled Trial.
Journal: Biological psychiatry global open science
In common: Image Processing Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, fMRI, 4 references
[5] doi:10.1038/s41467-026-73668-y [code]
Convergent and divergent brain-cognition development in early adolescence.
Journal: Nature communications
In common: FreeSurfer, FSL, Image Processing Toolbox, 2 other tools, fMRI, 2 references
[6] doi:10.1038/s41467-026-74565-0 [code]
The functional neurobiology of dispositions towards negative emotions.
Journal: Nature communications
In common: FreeSurfer, FSL, Image Processing Toolbox, 2 other tools, 2 references
[7] doi:10.1002/epi.70323 [code]
Individual-specific resting-state networks predict language dominance in drug-resistant epilepsy.
Journal: Epilepsia
In common: FreeSurfer, FSL, Image Processing Toolbox, 1 other tool, epilepsy, fMRI, 2 references
[8] doi:10.1038/s41586-026-10631-3 [code]
A prognostic human brain network for diffuse midline glioma.
Journal: Nature
In common: FreeSurfer, FSL, Image Processing Toolbox, 2 other tools, 2 references
[9] doi:10.1038/s41467-026-76011-7 [code]
Human cortex organizes dynamic co-fluctuations along the sensorimotor-association axis.
Journal: Nature communications
In common: FreeSurfer, FSL, Image Processing Toolbox, 2 other tools, 2 references
[10] doi:10.1016/j.cub.2026.05.068 [code]
An abstract relational map emerges in the human medial prefrontal cortex with consolidation.
Journal: Current biology : CB
In common: FreeSurfer, FSL, Image Processing Toolbox, 2 other tools, fMRI, 1 reference

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.