OSCR

Transcriptional correlates of structure-function coupling plasticity in trigeminal neuralgia: unveiling the synaptic and metabolic associations.

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] § Materials and methods › Structural-functional coupling: the graph harmonic model ↔ 01_SF_Coupling/lowhigh.m, lines 46–95 · score 0.68 · graph harmonic model, structural Laplacian, structural connectome, eigenmodes, SC, FC
  2. [2] § Materials and methods › Structural-functional coupling: the graph harmonic model ↔ 01_SF_Coupling/lowhigh.m, lines 97–146 · score 0.55 · functional connectivity profile, predictors, fit, linear, Laplacian, SC

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 · 208 lines · 8.1 KB · no license · 2 matches

  1. % =========================================================================
  2. % Structural-Functional (S-F) Coupling Calculation using Graph Harmonic Model
  3. % =========================================================================
  4. clear all; clc;
  5. % -------------------------------------------------------------------------
  6. % 1. Set Directory Paths (Please update these relative paths to your local data)
  7. % -------------------------------------------------------------------------
  8. FCdirpath = './Data_Sample/Fmri_fc'; % Path to functional connectivity matrices
  9. SCdirpath = './Data_Sample/DTI_data_sym'; % Path to structural connectivity matrices
  10. FCfiles = dir(FCdirpath); % List all files in the FC directory
  11. SCfiles = dir(SCdirpath); % List all files in the SC directory
  12. % Initialize variables
  13. allrsq = zeros(400, length(FCfiles)-2);
  14. allxx = zeros(400, length(FCfiles)-2);
  15. numflag = 0;
  16. % -------------------------------------------------------------------------
  17. % 2. Main Loop: Iterate through subjects and match multimodal data
  18. % -------------------------------------------------------------------------
  19. for ii = 1:length(FCfiles)
  20. flagsc = 0;
  21. flagfc = 0;
  22. flagmn = 1; % Status flag
  23. % Skip directories (. and ..)
  24. if FCfiles(ii).isdir
  25. continue;
  26. end
  27. fc_file_name = FCfiles(ii).name;
  28. % Extract FC subject ID
  29. tokens = regexp(fc_file_name, 'sub-(\d+)-FC', 'tokens');
  30. if isempty(tokens)
  31. continue;
  32. end
  33. fc_id = tokens{1}{1};
  34. fc_id_padded = sprintf('%05d', str2double(fc_id)); % e.g., '00009'
  35. subID = fc_id_padded;
  36. FCfiledir = fullfile(FCdirpath, fc_file_name);
  37. flagfc = 1;
  38. % Match corresponding SC file
  39. for ij = 1:length(SCfiles)
  40. if SCfiles(ij).isdir
  41. continue;
  42. end
  43. sc_file_name = SCfiles(ij).name;
  44. sc_tokens = regexp(sc_file_name, '^(\d+)_StructuralConnectome', 'tokens');
  45. if isempty(sc_tokens)
  46. continue;
  47. end
  48. sc_id = sc_tokens{1}{1};
  49. if strcmp(fc_id_padded, sc_id)
  50. SCfiledir = fullfile(SCdirpath, sc_file_name);
  51. flagsc = 1;
  52. break
  53. end
  54. end
  55. % Check if both modalities are successfully matched
  56. if flagfc * flagsc * flagmn == 1
  57. fc = importdata(FCfiledir);
  58. W = importdata(SCfiledir);
  59. Sc = W; Sc(Sc>0) = 1; % Structural binary matrix
  60. N = size(W,1); % Node number (e.g., 400 for Schaefer)
  61. disp(['Processing Subject ID: ', subID]);
  62. disp('Multimodal data matched successfully.');
  63. numflag = numflag + 1;
  64. fc(fc<0) = 0; % Exclude negative functional connections
  65. else
  66. continue
  67. end
  68. % Load nodal coordinates
  69. load coor.mat
  70. % coor represents x,y,z node coordinates | N x 3 matrix
  71. % ---------------------------------------------------------------------
  72. % 3. Graph Harmonic Model & Laplacian Eigenmodes
  73. % ---------------------------------------------------------------------
  74. A = W; A = -A;
  75. for i = 1:N
  76. A(i,i) = -sum(A(i,:));
  77. end
  78. B = A / max(eig(A)); % Structural Laplacian matrix
  79. [BEC, BE] = eig(B); % BEC-eigenvectors, BE-eigenvalues
  80. [a, b] = sort(diag(BE));
  81. BE_sort = diag(a);
  82. BEC_sort = BEC(:, b);
  83. % Diffusion map algorithm on functional network
  84. mappedX = diffusion_maps(fc, 10, 0.5, 1);
  85. x = mappedX(:, 1); % Node weights for first eigenvector
  86. xx = x * -1; % Reverse weights: positive = top of hierarchy
  87. allxx(:, numflag) = xx;
  88. % ---------------------------------------------------------------------
  89. % 4. Prediction Model (S-F Coupling Calculation)
  90. % ---------------------------------------------------------------------
  91. % A multilinear model is used to predict the functional connection profile
  92. % of every node based on the 2nd-14th eigenmodes of structural Laplacian network.
  93. rsq = zeros(N, 1); % Node-wise vector
  94. % Define FC response (y) and SC predictors (x)
  95. for jj = 1:N
  96. y = fc(:, jj);
  97. x1 = zscore(BEC_sort(:, 2:14)); % Standardize predictors of 2nd-14th eigenmodes
  98. % Fit multiple regression (OLS, main effects only), excluding self-connections
  99. lm = fitlm(x1, y, 'Exclude', jj);
  100. rsq(jj) = lm.Rsquared.Ordinary; % Record R-squared for node jj
  101. end
  102. rsq1 = sqrt(real(rsq)); % Calculate S-F coupling value
  103. allrsq(:, numflag) = rsq1;
  104. end % End of subject loop
  105. % -------------------------------------------------------------------------
  106. % 5. Visualization & Statistics
  107. % -------------------------------------------------------------------------
  108. figure(3)
  109. rsq1 = BEC_sort(:,1);
  110. rsq1 = rsq1';
  111. x = coor(:,1); y = coor(:,2); z = coor(:,3);
  112. N1 = ceil(max(rsq1)*10000) - floor(min(rsq1)*10000);
  113. S = 200 * ones(size(x));
  114. % Color mapping (Red-Blue)
  115. mycolorpoint = [[255 135 158];[255 191 204];[250 235 214];[239 255 255];[64 104 224];[20 48 135]]/255;
  116. mycolorpoint = flipud(mycolorpoint);
  117. mycolorposition = [1 1000 round(N1/2)-100 round(N1/2)+100 N1-1000 N1];
  118. mycolormap_r = interp1(mycolorposition, mycolorpoint(:,1), 1:N1, 'linear', 'extrap');
  119. mycolormap_g = interp1(mycolorposition, mycolorpoint(:,2), 1:N1, 'linear', 'extrap');
  120. mycolormap_b = interp1(mycolorposition, mycolorpoint(:,3), 1:N1, 'linear', 'extrap');
  121. C = [mycolormap_r', mycolormap_g', mycolormap_b'];
  122. colormap(C);
  123. scatter3(x, y, z, S, C(round((rsq1-min(rsq1))*10000)+1,:), 'filled')
  124. axis off; colorbar('Ticks',[])
  125. figure(6); imagesc(rsq1);
  126. % -------------------------------------------------------------------------
  127. % Figure: R values anticorrelated with functional gradient
  128. % -------------------------------------------------------------------------
  129. figure;
  130. allrsq(:, numflag+1:end) = [];
  131. allxx(:, numflag+1:end) = [];
  132. y1 = mean(allrsq, 2);
  133. rsq1 = y1;
  134. xx = mean(allxx, 2);
  135. [rho, pval] = corr(xx, y1);
  136. lm = fitlm(xx, y1);
  137. xhat = linspace(min(xx), max(xx), 100);
  138. yhat = lm.Coefficients.Estimate(1) + (lm.Coefficients.Estimate(2) * xhat);
  139. plot(xx, y1, '.', 'Markersize', 10); hold on
  140. plot(xhat, yhat, 'LineWidth', 2)
  141. title(['rho = ' num2str(rho) ', p = ' num2str(pval)]);
  142. axis square
  143. xlabel('Gradient'); ylabel('S-F Coupling (R)');
  144. % -------------------------------------------------------------------------
  145. % Boxplot of R across functional networks
  146. % -------------------------------------------------------------------------
  147. load lab.mat
  148. load('rsn_mapping.mat');
  149. R_name = rsn_names; % Total region names
  150. R_n = length(R_name); % Total region number
  151. Rn_Ind = lab; % Network index for each node
  152. Rn_name = cell(length(rsq1), 1); % Network name for each node
  153. R_R = zeros(R_n, 1); % Median R
  154. R_A = zeros(R_n, 1); % Average R
  155. for i = 1:R_n
  156. R_R(i) = median(rsq1(Rn_Ind==i));
  157. R_A(i) = mean(rsq1(Rn_Ind==i));
  158. Rn_name(Rn_Ind==i) = R_name(i);
  159. end
  160. [temp, I] = sort(R_R, 'descend'); % Sort networks by R median
  161. a = rsq1; b = Rn_name;
  162. c = R_name(I); % Sorted network names
  163. Color = [219 2 10; 231 95 27; 238 146 43; 246 191 65; 246 236 84; 202 222 169; 147 205 137; 76 177 99]/255;
  164. Color = flipud(Color);
  165. figure;
  166. valid_idx = ~cellfun(@isempty, b);
  167. boxplot(a(valid_idx), b(valid_idx), 'Orientation', 'horizontal', 'GroupOrder', c, ...
  168. 'Colors', Color, 'BoxStyle', 'filled', 'Whisker', 0, 'OutlierSize', 2.5, ...
  169. 'Symbol', '.', 'MedianStyle', 'target');
  170. title('Structural-Functional Coupling across Networks');
  171. % -------------------------------------------------------------------------
  172. % 6. Save output variables to CSV
  173. % -------------------------------------------------------------------------
  174. csv_file_path = 'Output_SFC_Values.csv'; % Specify output CSV file path
  175. dlmwrite(csv_file_path, allrsq);
  176. disp('---------------------------------------------------');
  177. disp('Analysis completed. S-F coupling data successfully saved to CSV.');
  178. disp('---------------------------------------------------');

lowhigh.m at commit 7924672, no license · at the source

Overview

Authors: Jian Zhang1, Xujing Nie1, Shuyue Fu1, Yinping Lu2, Tiantian Liu1, Zhilin Zhang2, Jinglong Wu1, Xuezhi Tong3, Tianyi Yan1
  1. School of Medical Science and Engineering, Beijing Institute of Technology, Beijing, 100081 China
  2. Research Center for Medical Artificial Intelligence, Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences, Shenzhen, Guangdong 518055 China
  3. Department of Neurosurgery, China-Japan Friendship Hospital, Beijing, 100029 China
Journal: The journal of headache and pain, volume 27, issue 1, article 154
Dates: received 6 January 2026; accepted 2 June 2026; published online 6 June 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1186/s10194-026-02419-7 · PMID 42251257 · PMCID PMC13251101 · OpenAlex W7163739652
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), structural MRI / diffusion (modality), human (organism), pain (population), cellular / molecular (subfield)
Methods: Spectral & time-frequency, Statistics, Preprocessing, Connectivity, fMRI & imaging, Smoothing, state filtering, decompositions, Machine learning
Keywords: Structural-functional coupling, Graph harmonic model, Brain network, Multimodal MRI, Trigeminal neuralgia, Adaptive reorganization
MeSH: Brain*, Nerve Net*, Neuronal Plasticity*, Transcriptome*, Trigeminal Neuralgia*, Adult, Aged, Female, Humans, Longitudinal Studies, Magnetic Resonance Imaging, Male, Middle Aged (* major topic)
Topic: Trigeminal Neuralgia and Treatments (Pathology and Forensic Medicine, Medicine), according to OpenAlex
Funding: Key-Area Research and Development Program of Guangdong Province (2023B0303030002); the National Natural Science Foundation of China (62406025, 62373056, 62306035, 62336002); STI2030-Major Projects (2022ZD0208500); Shenzhen Basic Research Program (JCYJ20241202124804007)
Citations: not cited yet (Europe PMC); 58 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.

Repository

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

starz0275/TN_SF_Code

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 792467264236fd6c11ba671b2933efe3d9ae173c, 9 March 2026
Languages: MATLAB (3)
Size: 10 files, 3 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
4 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;
  • 3 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

Datasets cited

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.1186/s10194-026-02419-7.

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, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 6 keywords, 13 MeSH terms, 4 funders, 56 references.

Cite

This paper

Zhang, J., Nie, X., Fu, S., Lu, Y., Liu, T., Zhang, Z., Wu, J., Tong, X., & Yan, T. (2026). Transcriptional correlates of structure-function coupling plasticity in trigeminal neuralgia: unveiling the synaptic and metabolic associations. The journal of headache and pain, 27(1), 154. https://doi.org/10.1186/s10194-026-02419-7

BibTeX

@article{zhang2026transcriptional,
author = {Zhang, Jian and Nie, Xujing and Fu, Shuyue and Lu, Yinping and Liu, Tiantian and Zhang, Zhilin and Wu, Jinglong and Tong, Xuezhi and Yan, Tianyi},
title = {{Transcriptional correlates of structure-function coupling plasticity in trigeminal neuralgia: unveiling the synaptic and metabolic associations}},
journal = {The journal of headache and pain},
year = {2026},
month = jun,
volume = {27},
number = {1},
pages = {154},
publisher = {BMC},
issn = {1129-2369},
doi = {10.1186/s10194-026-02419-7},
url = {https://doi.org/10.1186/s10194-026-02419-7},
pmid = {42251257},
pmcid = {PMC13251101}
}

RIS

TY - JOUR
AU - Zhang, Jian
AU - Nie, Xujing
AU - Fu, Shuyue
AU - Lu, Yinping
AU - Liu, Tiantian
AU - Zhang, Zhilin
AU - Wu, Jinglong
AU - Tong, Xuezhi
AU - Yan, Tianyi
TI - Transcriptional correlates of structure-function coupling plasticity in trigeminal neuralgia: unveiling the synaptic and metabolic associations
T2 - The journal of headache and pain
J2 - J Headache Pain
PY - 2026
DA - 2026/06/06
VL - 27
IS - 1
SP - 154
SN - 1129-2369
PB - BMC
DO - 10.1186/s10194-026-02419-7
UR - https://doi.org/10.1186/s10194-026-02419-7
LA - en
ER -

CSL-JSON

{
"id": "10.1186/s10194-026-02419-7",
"type": "article-journal",
"title": "Transcriptional correlates of structure-function coupling plasticity in trigeminal neuralgia: unveiling the synaptic and metabolic associations",
"container-title": "The journal of headache and pain",
"author": [
{
"family": "Zhang",
"given": "Jian"
},
{
"family": "Nie",
"given": "Xujing"
},
{
"family": "Fu",
"given": "Shuyue"
},
{
"family": "Lu",
"given": "Yinping"
},
{
"family": "Liu",
"given": "Tiantian"
},
{
"family": "Zhang",
"given": "Zhilin"
},
{
"family": "Wu",
"given": "Jinglong"
},
{
"family": "Tong",
"given": "Xuezhi"
},
{
"family": "Yan",
"given": "Tianyi"
}
],
"container-title-short": "J Headache Pain",
"volume": "27",
"issue": "1",
"page": "154",
"DOI": "10.1186/s10194-026-02419-7",
"PMID": "42251257",
"PMCID": "PMC13251101",
"ISSN": "1129-2369",
"publisher": "BMC",
"URL": "https://doi.org/10.1186/s10194-026-02419-7",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
6
]
]
}
}

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.1017/s0033291726104838 [code]
Variations of structural-functional coupling in post-traumatic stress disorder are associated with underlying molecular and transcriptional features.
Journal: Psychological medicine
In common: structural MRI / diffusion, cellular / molecular, 10 references
[2] doi:10.1038/s42003-025-09444-3 [code]
Decoupling of neurophysiological activity from structure mirrors global microarchitectural and neuromodulatory trends.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, cellular / molecular, 9 references
[3] doi:10.1038/s43856-026-01707-2 [code]
Decreased amyloid-related structure-function coupling in preclinical Alzheimer's disease.
Journal: Communications medicine
In common: Statistics and Machine Learning Toolbox, 7 references
[4] doi:10.1093/braincomms/fcag220 [code]
When pain becomes self: limbic-default mode network hyperconnectivity predicts microvascular decompression failure in trigeminal neuralgia.
Journal: Brain communications
In common: Statistics and Machine Learning Toolbox, pain, structural MRI / diffusion, 5 references
[5] 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, 6 references
[6] doi:10.1371/journal.pbio.3003927 [code]
Brain structural and functional connectivity converge prenatally but diverge after birth.
Journal: PLoS biology
In common: Statistics and Machine Learning Toolbox, structural MRI / diffusion, 5 references
[7] 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, 5 references
[8] doi:10.1002/advs.202516310
A Tac1-Expressing Brainstem Pathway Underlies the Pathogenesis of Trigeminal Neuralgia.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: pain, cellular / molecular, 3 references
[9] doi:10.1038/s41467-026-71719-y [code]
Brain functional-structural gradient coupling reflects development, behavior and genetic influences.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, 4 references
[10] doi:10.1038/s41467-026-76812-w [code]
Assessing molecular, cellular and transcriptomic bases of laminar perfusion and cytoarchitecture coupling in the human cortex.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, structural MRI / diffusion, genetics / omics, cellular / molecular, 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.