OSCR

Brain maintenance biomarkers from structural and functional interactions in aging and neurodegeneration.

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 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › Pathological aging validation dataset › ANOVA analysis ↔ abeta_anova_predict_model.m, lines 87–129 · score 0.71 · CN AD, CN MCI, MCI AD, ANOVA, HSD, Tukey
  2. [2] § Methods › The preprocessing pipeline for functional neuroimaging data ↔ nii2gii_fs.sh, the whole file · a weak match · score 0.52 · mri_vol2surf, FreeSurfer, hemispheres

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 · 273 lines · 7.6 KB · no license · 1 match

  1. maindir = 'E:\CR_result\abeta';
  2. cd(maindir);
  3. load('result.mat');
  4. z_ad_fre = zscore(ad_fre_group);
  5. z_ad_val = zscore(ad_val_group);
  6. z_mci_fre = zscore(mci_fre_group);
  7. z_mci_val = zscore(mci_val_group);
  8. z_cn_fre = zscore(cn_fre_group);
  9. z_cn_val = zscore(cn_val_group);
  10. r_cn=[];
  11. p_cn=[];
  12. for i = 1:400
  13. fre = cn_value(i,:);
  14. val = cn_fre(i,:);
  15. [r,p] = corr(fre',val');
  16. r_cn = cat(1,r_cn,r);
  17. p_cn = cat(1,p_cn,p);
  18. end
  19. r_mci=[];
  20. p_mci=[];
  21. for i = 1:400
  22. fre = mci_value(i,:);
  23. val = mci_fre(i,:);
  24. [r,p] = corr(fre',val');
  25. r_mci = cat(1,r_mci,r);
  26. p_mci = cat(1,p_mci,p);
  27. end
  28. r_ad=[];
  29. p_ad=[];
  30. for i = 1:400
  31. fre = ad_value(i,:);
  32. val = ad_fre(i,:);
  33. [r,p] = corr(fre',val');
  34. r_ad = cat(1,r_ad,r);
  35. p_ad = cat(1,p_ad,p);
  36. end
  37. q_cn = mafdr(p_cn);
  38. q_mci = mafdr(p_mci);
  39. q_ad = mafdr(p_ad);
  40. label_cn = find(q_cn<0.001);
  41. label_mci = find(q_mci<0.001);
  42. label_ad = find(q_ad<0.001);
  43. %%
  44. data = readtable('total.xlsx');
  45. age = data.age;
  46. gender = data.gender;
  47. edu = data.edu;
  48. % 中心化协变量
  49. age_cen = bsxfun(@minus, age, mean(age));
  50. gender_cen = bsxfun(@minus, gender, mean(gender));
  51. edu_cen = bsxfun(@minus, edu, mean(edu));
  52. X = [age_cen, gender_cen, edu_cen]; % 合并自变量
  53. % 构建回归模型
  54. residuals_total = [];
  55. for i = 1:400
  56. data = table(age_cen, gender_cen, edu_cen, value_total(i,:)', ...
  57. 'VariableNames', {'Age', 'Gender', 'Edu', 'Value'});
  58. % 进行回归(自动处理分类变量)
  59. mdl = fitlm(data, 'Value ~ Age + Gender + Edu');
  60. % 提取残差
  61. residuals = mdl.Residuals.Raw;
  62. residuals_total = cat(2,residuals_total,residuals);
  63. end
  64. residuals_total = residuals_total';
  65. group = data.cognitive_change;
  66. cn = find(group==0);
  67. mci = find(group==1);
  68. ad = find(group==2);
  69. cn_value = value_total(:,cn);
  70. mci_value = value_total(:,mci);
  71. ad_value = value_total(:,ad);
  72. cn_resi = residuals_total(:,cn);
  73. mci_resi = residuals_total(:,mci);
  74. ad_resi = residuals_total(:,ad);
  75. cn_resi = residuals_total(CR_label,cn);
  76. mci_resi = residuals_total(CR_label,mci);
  77. ad_resi = residuals_total(CR_label,ad);
  78. %% anova
  79. p_cn_mci = [];
  80. f_cn_mci = [];
  81. c_cn_mci = [];
  82. for i = 1:400
  83. % 示例数据(替换为你的实际数据)
  84. Group1 = cn_resi(i,:);
  85. Group2 = mci_resi(i,:);
  86. Group3 = ad_resi(i,:);
  87. % 合并数据并创建分组标签
  88. data = [Group1, Group2, Group3];
  89. groups = [repmat({'Group1'}, 1, length(Group1)), ...
  90. repmat({'Group2'}, 1, length(Group2)), ...
  91. repmat({'Group3'}, 1, length(Group3))];
  92. % 单因素方差分析
  93. [p, tbl, stats] = anova1(data, groups, 'off');
  94. [c, m, ~, gnames] = multcompare(stats, 'CType', 'tukey-kramer', 'Display', 'off');
  95. c2 = [c,[i;i;i]];
  96. p_cn_mci = cat(1,p_cn_mci,p);
  97. f_cn_mci = cat(1,f_cn_mci,tbl{2,5});
  98. c_cn_mci = cat(3,c_cn_mci,c2);
  99. end
  100. label_cn_mci_ad = find(p_cn_mci<0.05);
  101. c_cn_mci_ad = c_cn_mci(:,:,label_cn_mci_ad);
  102. B = permute(c_cn_mci_ad, [1, 3, 2]); % 调整维度顺序为3×32×6
  103. c_shaped = reshape(B, [96, 7]); % 展开为96×6
  104. label_cn_mci_ad = find(c_shaped(:,6)<0.05);
  105. c_cn_mci_ad = c_shaped(label_cn_mci_ad,:);
  106. label_cn_mci = find(c_cn_mci_ad(:,2)==2);
  107. c_cn_mci = c_cn_mci_ad(label_cn_mci,:);
  108. label_cn_ad = find(c_cn_mci_ad(:,2)==3);
  109. c_cn_ad = c_cn_mci_ad(label_cn_ad,:);
  110. parcel_cn_mci = label
  111. parcel_cn_ad =
  112. % 使用multcompare函数(基于Tukey方法)
  113. figure;
  114. %[c, m, ~, gnames] = multcompare(stats, 'CType', 'tukey-kramer', 'Display', 'off');
  115. [c, m, ~, gnames] = multcompare(stats, 'CType', 'tukey-kramer', 'Display', 'off');
  116. disp('Tukey HSD结果:');
  117. disp([gnames(c(:,1)), gnames(c(:,2)), num2cell(c(:,3:6))]);
  118. %% 分组CN MCI AD预测
  119. data = readtable("total.xlsx");
  120. group = data.cognitive_change;
  121. cn = find(group==0);
  122. mci = find(group==1);
  123. ad = find(group==2);
  124. cn_resi = residuals_total(:,cn);
  125. mci_resi = residuals_total(:,mci);
  126. ad_resi = residuals_total(:,ad);
  127. cn_abeta = abeta(:,cn);
  128. mci_abeta = abeta(:,mci);
  129. ad_abeta = abeta(:,ad);
  130. pred_cn = [];
  131. error_cn = [];
  132. % 留一法线性预测
  133. for n = 1:400
  134. X = cn_resi(n,:);
  135. Y = cn_abeta(n,:);
  136. % 初始化存储预测结果的向量
  137. predictions = zeros(size(Y));
  138. for i = 1:length(Y)
  139. % 留一法:第i个样本作为测试集,其余作为训练集
  140. trainIdx = [1:i-1, i+1:length(Y)];
  141. testIdx = i;
  142. % 训练线性回归模型
  143. mdl = fitlm(X(trainIdx), Y(trainIdx));
  144. % 预测被留出的样本
  145. predictions(testIdx) = predict(mdl, X(testIdx));
  146. end
  147. % 计算性能指标
  148. mse = mean((Y - predictions).^2);
  149. rmse = sqrt(mse);
  150. r2 = 1 - sum((Y - predictions).^2)/sum((Y - mean(Y)).^2);
  151. error = [mse,rmse,r2];
  152. error_cn = cat(1,error_cn,error);
  153. pred_cn = cat(2,pred_cn,predictions);
  154. end
  155. baseline_rmse = [];
  156. for i = 1:400
  157. % 计算均值模型的RMSE
  158. Y = cn_abeta(i,:)'; % 确保为列向量
  159. baseline_pred = mean(Y)*ones(size(Y));
  160. baseline = sqrt(mean((Y - baseline_pred).^2));
  161. baseline_rmse = cat(1,baseline_rmse,baseline);
  162. end
  163. rmse_diff = error_cn(:,2)-baseline_rmse;
  164. label_pred_cn = find(rmse_diff<0);
  165. rmse_pred_cn = 1./error_cn(label_pred_cn,2);
  166. pred_mci = [];
  167. error_mci = [];
  168. % 留一法线性预测
  169. for n = 1:400
  170. X = mci_resi(n,:);
  171. Y = mci_abeta(n,:);
  172. % 初始化存储预测结果的向量
  173. predictions = zeros(size(Y));
  174. for i = 1:length(Y)
  175. % 留一法:第i个样本作为测试集,其余作为训练集
  176. trainIdx = [1:i-1, i+1:length(Y)];
  177. testIdx = i;
  178. % 训练线性回归模型
  179. mdl = fitlm(X(trainIdx), Y(trainIdx));
  180. % 预测被留出的样本
  181. predictions(testIdx) = predict(mdl, X(testIdx));
  182. end
  183. % 计算性能指标
  184. mse = mean((Y - predictions).^2);
  185. rmse = sqrt(mse);
  186. r2 = 1 - sum((Y - predictions).^2)/sum((Y - mean(Y)).^2);
  187. error = [mse,rmse,r2];
  188. error_mci = cat(1,error_mci,error);
  189. pred_mci = cat(2,pred_mci,predictions);
  190. end
  191. baseline_rmse_mci = [];
  192. for i = 1:400
  193. % 计算均值模型的RMSE
  194. Y = mci_abeta(i,:)'; % 确保为列向量
  195. baseline_pred = mean(Y)*ones(size(Y));
  196. baseline = sqrt(mean((Y - baseline_pred).^2));
  197. baseline_rmse_mci = cat(1,baseline_rmse_mci,baseline);
  198. end
  199. rmse_diff = error_mci(:,2)-baseline_rmse_mci;
  200. label_pred_mci = find(rmse_diff<0);
  201. rmse_pred_mci = 1./error_cn(label_pred_mci,2);
  202. pred_ad = [];
  203. error_ad = [];
  204. % 留一法线性预测
  205. for n = 1:400
  206. X = ad_resi(n,:);
  207. Y = ad_abeta(n,:);
  208. % 初始化存储预测结果的向量
  209. predictions = zeros(size(Y));
  210. for i = 1:length(Y)
  211. % 留一法:第i个样本作为测试集,其余作为训练集
  212. trainIdx = [1:i-1, i+1:length(Y)];
  213. testIdx = i;
  214. % 训练线性回归模型
  215. mdl = fitlm(X(trainIdx), Y(trainIdx));
  216. % 预测被留出的样本
  217. predictions(testIdx) = predict(mdl, X(testIdx));
  218. end
  219. % 计算性能指标
  220. mse = mean((Y - predictions).^2);
  221. rmse = sqrt(mse);
  222. r2 = 1 - sum((Y - predictions).^2)/sum((Y - mean(Y)).^2);
  223. error = [mse,rmse,r2];
  224. error_ad = cat(1,error_ad,error);
  225. pred_ad = cat(1,pred_ad,predictions);
  226. end
  227. baseline_rmse_ad = [];
  228. for i = 1:400
  229. % 计算均值模型的RMSE
  230. Y = mci_abeta(i,:)'; % 确保为列向量
  231. baseline_pred = mean(Y)*ones(size(Y));
  232. baseline = sqrt(mean((Y - baseline_pred).^2));
  233. baseline_rmse_ad = cat(1,baseline_rmse_ad,baseline);
  234. end
  235. rmse_diff = error_ad(:,2)-baseline_rmse_ad;
  236. label_pred_ad = find(rmse_diff<0);
  237. rmse_pred_ad = 1./error_cn(label_pred_ad,2);

abeta_anova_predict_model.m at commit ae40d1c, no license · at the source

Overview

Authors: Yumeng Li1,2,3, Xinyue Zhang1,2,3, Xin Li1,2,3, Zhanjun Zhang1,2,3,4,5
  1. State Key Laboratory of Cognitive Neuroscience and Learning, Beijing Normal University, Beijing, China
  2. Beijing Key Laboratory of Cognitive Intelligence for Elderly Brain Health, Faculty of Psychology, Beijing Normal University, Beijing, China
  3. Beijing Aging Brain Rejuvenation Initiative (BABRI) Centre, Beijing Normal University, Beijing, China
  4. Institute for Advanced Study, Beijing Normal University, Beijing, China
  5. Innovation Institute of Integrated Traditional Chinese and Western Medicine, Shandong First Medical University & Shandong Academy of Medical Sciences, Jinan, Shandong China
Journal: Nature communications, volume 17, issue 1, article 6908
Dates: received 29 May 2025; accepted 28 April 2026; published online 27 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-73071-7 · PMID 42204140 · PMCID PMC13389195 · OpenAlex W7162547362
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), other condition (population), Alzheimer's / dementia (population), clinical / translational (subfield)
Methods: Spectral & time-frequency, Statistics, Smoothing, state filtering, decompositions, Machine learning, Connectivity, fMRI & imaging, Preprocessing
Keywords: Alzheimer's disease, Predictive markers, Cognitive ageing
MeSH: Aging*, Brain*, Neurodegenerative Diseases*, Aged, Aged, 80 and over, Amyloid beta-Peptides, Biomarkers, Cognitive Dysfunction, Female, Humans, Magnetic Resonance Imaging, Male, Memory, Processing Speed (* major topic)
Topic: Neuroinflammation and Neurodegeneration Mechanisms (Neurology, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 112 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.

Rainmon2020/Cognitive-Reserve

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: ae40d1cc1ebb0f313f32ddd4e1a3034e67c9f91a, 18 March 2026
Languages: Python (2), MATLAB (2), Shell (1)
Size: 6 files, 5 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Statistics and Machine Learning Toolbox (2 files), NumPy (2 files), SciPy (2 files), FreeSurfer (1 file), NiBabel (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
6 files

Code availability statement

The paper has a code 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.1038/s41467-026-73071-7.

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;
  • 5 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 statement

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

  • no repository, dataset or request procedure was recognized in it

Read it in the paper: doi.org/10.1038/s41467-026-73071-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, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 3 keywords, 14 MeSH terms, 101 references.

Cite

This paper

Li, Y., Zhang, X., Li, X., & Zhang, Z. (2026). Brain maintenance biomarkers from structural and functional interactions in aging and neurodegeneration. Nature communications, 17(1), 6908. https://doi.org/10.1038/s41467-026-73071-7

BibTeX

@article{li2026brain,
author = {Li, Yumeng and Zhang, Xinyue and Li, Xin and Zhang, Zhanjun},
title = {{Brain maintenance biomarkers from structural and functional interactions in aging and neurodegeneration}},
journal = {Nature communications},
year = {2026},
month = may,
volume = {17},
number = {1},
pages = {6908},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-73071-7},
url = {https://doi.org/10.1038/s41467-026-73071-7},
pmid = {42204140},
pmcid = {PMC13389195}
}

RIS

TY - JOUR
AU - Li, Yumeng
AU - Zhang, Xinyue
AU - Li, Xin
AU - Zhang, Zhanjun
TI - Brain maintenance biomarkers from structural and functional interactions in aging and neurodegeneration
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/05/27
VL - 17
IS - 1
SP - 6908
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-73071-7
UR - https://doi.org/10.1038/s41467-026-73071-7
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-73071-7",
"type": "article-journal",
"title": "Brain maintenance biomarkers from structural and functional interactions in aging and neurodegeneration",
"container-title": "Nature communications",
"author": [
{
"family": "Li",
"given": "Yumeng"
},
{
"family": "Zhang",
"given": "Xinyue"
},
{
"family": "Li",
"given": "Xin"
},
{
"family": "Zhang",
"given": "Zhanjun"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "6908",
"DOI": "10.1038/s41467-026-73071-7",
"PMID": "42204140",
"PMCID": "PMC13389195",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-73071-7",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
27
]
]
}
}

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/s41398-026-04081-8 [code]
Functional system-specific brain aging across the Alzheimer's disease continuum.
Journal: Translational psychiatry
In common: FreeSurfer, NiBabel, SciPy, 1 other tool, Alzheimer's / dementia, structural MRI / diffusion, clinical / translational, 2 references, author Zhanjun Zhang
[2] doi:10.1038/s43856-026-01707-2 [code]
Decreased amyloid-related structure-function coupling in preclinical Alzheimer's disease.
Journal: Communications medicine
In common: FreeSurfer, NiBabel, Statistics and Machine Learning Toolbox, 2 other tools, Alzheimer's / dementia, clinical / translational, 4 references
[3] doi:10.1371/journal.pbio.3003856 [code]
Aging and metabolism contribute separately to brain-body health.
Journal: PLoS biology
In common: FreeSurfer, NiBabel, Statistics and Machine Learning Toolbox, 2 other tools, structural MRI / diffusion, clinical / translational, 4 references
[4] doi:10.1038/s41467-026-71270-w [code]
Spatiotemporal dynamics of the human cortical functional hierarchy across the lifespan.
Journal: Nature communications
In common: FreeSurfer, NiBabel, Statistics and Machine Learning Toolbox, 2 other tools, 4 references
[5] 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, NiBabel, Statistics and Machine Learning Toolbox, 2 other tools, 4 references
[6] doi:10.1038/s41467-026-74957-2 [code]
Joint trajectories of brain atrophy, white matter hyperintensities and cognition quantify brain maintenance.
Journal: Nature communications
In common: Alzheimer's / dementia, structural MRI / diffusion, 6 references
[7] 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: FreeSurfer, NiBabel, NumPy, structural MRI / diffusion, 5 references
[8] doi:10.1162/imag.a.1302 [code]
Five-year associations among dopamine D2-like receptor loss, cognitive decline, education, and self-reported leisure activities in healthy older adults.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 6 references
[9] doi:10.1038/s41467-026-73668-y [code]
Convergent and divergent brain-cognition development in early adolescence.
Journal: Nature communications
In common: FreeSurfer, NiBabel, Statistics and Machine Learning Toolbox, 2 other tools, 3 references
[10] doi:10.1038/s43856-026-01670-y
Region-specific vulnerability to vascular risk factors and modifiable protective influences on white matter hyperintensities.
Journal: Communications medicine
In common: Alzheimer's / dementia, structural MRI / diffusion, clinical / translational, 2 references, author Zhanjun Zhang

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.