OSCR

Comprehensive large-scale analyses reveal association between brain structure and cognitive ability during adolescence.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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

Python · 137 lines · 5.1 KB · no license

  1. from scipy.io import loadmat
  2. import scipy.io as scio
  3. import numpy as np
  4. from sklearn.linear_model import Lasso
  5. from sklearn.metrics import r2_score
  6. import time
  7. # import setting
  8. alpha_list = 0.01
  9. bootstrap_num = 1000
  10. list_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/bootstrap_list.mat'
  11. list_data = loadmat(list_path)
  12. list_data = list_data['bootstrap_list']
  13. list_data = np.array(list_data)
  14. # import cognition
  15. y_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Cognition_output/Cognition.mat'
  16. y_data = loadmat(y_path)
  17. y_data = y_data['Cognition']
  18. y_data_all = np.array(y_data)
  19. start_time = time.time()
  20. # region
  21. X_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Region_input/Region_input.mat'
  22. X_data = loadmat(X_path)
  23. X_data = X_data['Region_input']
  24. X_data_all = np.array(X_data)
  25. for beh_ind in range(8):
  26. All_para = []
  27. All_r2 = []
  28. # bootstrap
  29. for i in range(bootstrap_num):
  30. first_index = list_data[:, i]
  31. X_data = X_data_all[first_index, :]
  32. indices = np.random.choice(range(len(X_data)), size=len(X_data), replace=True)
  33. X_data = X_data[indices, :]
  34. y_bootstrap = y_data_all[first_index, :]
  35. y_bootstrap = y_bootstrap[indices, :]
  36. y_data = y_bootstrap[:, beh_ind]
  37. # start
  38. model = Lasso(alpha=alpha_list, precompute=True, max_iter=100000, tol=1e-5, selection='random')
  39. model.fit(X_data, y_data)
  40. # parameter
  41. coefficients = model.coef_
  42. All_para.append(coefficients)
  43. # r2
  44. y_pred = model.predict(X_data)
  45. r2 = r2_score(y_data, y_pred)
  46. All_r2.append(r2)
  47. # save
  48. All_para = np.array(All_para)
  49. save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Region/All_para_%s.mat' % (beh_ind+1)
  50. scio.savemat(save_path, {'All_para': All_para})
  51. All_r2 = np.array(All_r2)
  52. save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Region/All_r2_%s.mat' % (beh_ind+1)
  53. scio.savemat(save_path, {'All_r2': All_r2})
  54. end_time = time.time()
  55. elapsed_time = end_time - start_time
  56. print(elapsed_time)
  57. start_time = time.time()
  58. # connection
  59. X_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Connection_input/Connection_input.mat'
  60. X_data = loadmat(X_path)
  61. X_data = X_data['Connection_input']
  62. X_data_all = np.array(X_data)
  63. for beh_ind in range(8):
  64. All_para = []
  65. All_r2 = []
  66. # bootstrap
  67. for i in range(bootstrap_num):
  68. first_index = list_data[:, i]
  69. X_data = X_data_all[first_index, :]
  70. indices = np.random.choice(range(len(X_data)), size=len(X_data), replace=True)
  71. X_data = X_data[indices, :]
  72. y_bootstrap = y_data_all[first_index, :]
  73. y_bootstrap = y_bootstrap[indices, :]
  74. y_data = y_bootstrap[:, beh_ind]
  75. # start
  76. model = Lasso(alpha=alpha_list, precompute=True, max_iter=100000, tol=1e-5, selection='random')
  77. model.fit(X_data, y_data)
  78. # parameter
  79. coefficients = model.coef_
  80. All_para.append(coefficients)
  81. # r2
  82. y_pred = model.predict(X_data)
  83. r2 = r2_score(y_data, y_pred)
  84. All_r2.append(r2)
  85. # save
  86. All_para = np.array(All_para)
  87. save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Connection/All_para_%s.mat' % (beh_ind+1)
  88. scio.savemat(save_path, {'All_para': All_para})
  89. All_r2 = np.array(All_r2)
  90. save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Connection/All_r2_%s.mat' % (beh_ind+1)
  91. scio.savemat(save_path, {'All_r2': All_r2})
  92. end_time = time.time()
  93. elapsed_time = end_time - start_time
  94. print(elapsed_time)
  95. start_time = time.time()
  96. # hub
  97. X_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Hub_input/Hub_input.mat'
  98. X_data = loadmat(X_path)
  99. X_data = X_data['Hub_input']
  100. X_data_all = np.array(X_data)
  101. for beh_ind in range(8):
  102. All_para = []
  103. All_r2 = []
  104. # bootstrap
  105. for i in range(bootstrap_num):
  106. first_index = list_data[:, i]
  107. X_data = X_data_all[first_index, :]
  108. indices = np.random.choice(range(len(X_data)), size=len(X_data), replace=True)
  109. X_data = X_data[indices, :]
  110. y_bootstrap = y_data_all[first_index, :]
  111. y_bootstrap = y_bootstrap[indices, :]
  112. y_data = y_bootstrap[:, beh_ind]
  113. # start
  114. model = Lasso(alpha=alpha_list, precompute=True, max_iter=100000, tol=1e-5, selection='random')
  115. model.fit(X_data, y_data)
  116. # parameter
  117. coefficients = model.coef_
  118. All_para.append(coefficients)
  119. # r2
  120. y_pred = model.predict(X_data)
  121. r2 = r2_score(y_data, y_pred)
  122. All_r2.append(r2)
  123. # save
  124. All_para = np.array(All_para)
  125. save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Hub/All_para_%s.mat' % (beh_ind+1)
  126. scio.savemat(save_path, {'All_para': All_para})
  127. All_r2 = np.array(All_r2)
  128. save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Hub/All_r2_%s.mat' % (beh_ind+1)
  129. scio.savemat(save_path, {'All_r2': All_r2})
  130. end_time = time.time()
  131. elapsed_time = end_time - start_time
  132. print(elapsed_time)

Bootstrap_1000.py at commit d062e00, no license · at the source

Overview

Authors: Jiadong Yan1,2, Yasser Iturria-Medina1,3, Gleb Bezgin1, Paule Joanne Toussaint1,2, Ke Xie1, Liang He1,2, Judy Chen1, Kirsten Hilger4, Erhan Genç5, Alan C Evans1,2, Sherif Karama2,6
  1. Montreal Neurological Institute, McGill University, Montreal, QC Canada
  2. McGill Centre for Integrative Neuroscience, McGill University, Montreal, QC Canada
  3. Ludmer Centre for NeuroInformatics and Mental Health, Montreal, QC Canada
  4. Department of Psychology I, Würzburg University, Würzburg, Germany
  5. Neuroimaging and Interindividual Differences, Department of Psychology and Neurosciences, Leibniz Research Centre for Working Environment and Human Factors at the Technical University Dortmund, Dortmund, Germany
  6. Douglas Mental Health University Institute, McGill University, Montreal, QC Canada
Journal: Communications biology, volume 9, issue 1, article 584
Dates: received 30 August 2025; accepted 26 February 2026; published online 12 March 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s42003-026-09831-4 · PMID 41820538 · PMCID PMC13121603 · OpenAlex W7135042256
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), developmental (subfield)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Graphs, Machine learning, fMRI & imaging, Preprocessing
Keywords: Intelligence, Machine learning, Development of the nervous system
MeSH: Brain*, Cognition*, Adolescent, Child, Female, Humans, Intelligence, Magnetic Resonance Imaging, Male (* major topic)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Deutsche Forschungsgemeinschaft (HI 2185/1); China Scholarship Council; Canada First Research Excellence Fund; National Institutes of Health (7u01da041117-03, U01D A041174, 5u01da051016-05, 3u01da041089-07s1, 5u01da041022-10, 7u01da041174-02, 5u01da041048-10, 5u01da041120-10, 5u01da051018-05, 5u01da051037-05, U01DA04 1025, 5u24da041123-10, 5u01da041028-10, 5u01da041134-10, 5u01da041106-10, 5u01da050989-05, 3u01da051039-02s1, 5u01da041093-08, 5u01da050987-05, 3u01da041148-08s1, 3u24da041147-07s2, 5u01da051038-05, 5u01da041025-08, 5u01da041156-10, U01DA04 1120, 5u01da050988-05, U01DA041093, U01DA041028, U01DA041117, U01DA 041134, U01DA050988, U01DA051016, U01DA051018, U01DA041022, U24DA041123, U01DA050989, U01DA041148, U01DA041089, U01DA051038, U01DA041106, U01DA051037, U01 DA041156, U01DA050987, U24DA041147, U01DA051039, U01DA041048); Canadian Institutes of Health Research (U01DA041089, U01DA041148, U01DA041117, U01DA051016, U01DA041120, U01DA051018, U01DA041156, U01DA051038, U01DA041106, U01DA041022, U01DA050988, U01DA041093, U01DA041134, U24DA041123, U01DA051037, U01DA041048, U01DA041028, U01DA041174, U01DA050989, U01DA051039, U01DA050987, U01DA041025, U24DA041147)
Citations: cited by 2 papers (Europe PMC); 109 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.

JDYan/Brain-Cognition-Association

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: d062e009021a96b153661c017109000b9d47048d, 21 August 2025
Languages: MATLAB (2), Python (1)
Size: 3 files, 3 scripts
Software Heritage: not archived
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Statistics and Machine Learning Toolbox (2 files), NumPy (1 file), scikit-learn (1 file), SciPy (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
3 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/s42003-026-09831-4.

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;
  • no match between paragraphs and code yet;
  • 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.1038/s42003-026-09831-4.

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

Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 3 keywords, 9 MeSH terms, 5 funders, 101 references.

Cite

This paper

Yan, J., Iturria-Medina, Y., Bezgin, G., Toussaint, P. J., Xie, K., He, L., Chen, J., Hilger, K., Genç, E., Evans, A. C., & Karama, S. (2026). Comprehensive large-scale analyses reveal association between brain structure and cognitive ability during adolescence. Communications biology, 9(1), 584. https://doi.org/10.1038/s42003-026-09831-4

BibTeX

@article{yan2026comprehensive,
author = {Yan, Jiadong and Iturria-Medina, Yasser and Bezgin, Gleb and Toussaint, Paule Joanne and Xie, Ke and He, Liang and Chen, Judy and Hilger, Kirsten and Genç, Erhan and Evans, Alan C and Karama, Sherif},
title = {{Comprehensive large-scale analyses reveal association between brain structure and cognitive ability during adolescence}},
journal = {Communications biology},
year = {2026},
month = mar,
volume = {9},
number = {1},
pages = {584},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/s42003-026-09831-4},
url = {https://doi.org/10.1038/s42003-026-09831-4},
pmid = {41820538},
pmcid = {PMC13121603}
}

RIS

TY - JOUR
AU - Yan, Jiadong
AU - Iturria-Medina, Yasser
AU - Bezgin, Gleb
AU - Toussaint, Paule Joanne
AU - Xie, Ke
AU - He, Liang
AU - Chen, Judy
AU - Hilger, Kirsten
AU - Genç, Erhan
AU - Evans, Alan C
AU - Karama, Sherif
TI - Comprehensive large-scale analyses reveal association between brain structure and cognitive ability during adolescence
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/03/12
VL - 9
IS - 1
SP - 584
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/s42003-026-09831-4
UR - https://doi.org/10.1038/s42003-026-09831-4
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s42003-026-09831-4",
"type": "article-journal",
"title": "Comprehensive large-scale analyses reveal association between brain structure and cognitive ability during adolescence",
"container-title": "Communications biology",
"author": [
{
"family": "Yan",
"given": "Jiadong"
},
{
"family": "Iturria-Medina",
"given": "Yasser"
},
{
"family": "Bezgin",
"given": "Gleb"
},
{
"family": "Toussaint",
"given": "Paule Joanne"
},
{
"family": "Xie",
"given": "Ke"
},
{
"family": "He",
"given": "Liang"
},
{
"family": "Chen",
"given": "Judy"
},
{
"family": "Hilger",
"given": "Kirsten"
},
{
"family": "Genç",
"given": "Erhan"
},
{
"family": "Evans",
"given": "Alan C"
},
{
"family": "Karama",
"given": "Sherif"
}
],
"container-title-short": "Commun Biol",
"volume": "9",
"issue": "1",
"page": "584",
"DOI": "10.1038/s42003-026-09831-4",
"PMID": "41820538",
"PMCID": "PMC13121603",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s42003-026-09831-4",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
12
]
]
}
}

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.1111/jcpp.70178 [code]
What makes a lonely child: environmental, health, and multimodal neuroimaging correlates of prospective loneliness in the ABCD study.
Journal: Journal of child psychology and psychiatry, and allied disciplines
In common: structural MRI / diffusion, 11 references
[2] doi:10.1038/s41467-026-73668-y [code]
Convergent and divergent brain-cognition development in early adolescence.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, scikit-learn, SciPy, 1 other tool, 8 references
[3] doi:10.1162/netn.a.546 [code]
Cortical similarity networks in the rat brain: Postnatal development and sensitivity to early life stress.
Journal: Network neuroscience (Cambridge, Mass.)
In common: SciPy, NumPy, developmental, structural MRI / diffusion, 8 references
[4] doi:10.7554/elife.103097 [code]
Canonical neurodevelopmental trajectories of structural and functional manifolds.
Journal: eLife
In common: Statistics and Machine Learning Toolbox, scikit-learn, SciPy, 1 other tool, developmental, structural MRI / diffusion, 6 references
[5] 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, scikit-learn, SciPy, 1 other tool, developmental, 7 references
[6] 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: NumPy, developmental, structural MRI / diffusion, 8 references
[7] doi:10.1038/s42003-026-10276-y [code]
The cellular correlates and adolescent reorganisation of cortical myelination networks in the common marmoset.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, scikit-learn, SciPy, 1 other tool, structural MRI / diffusion, 6 references
[8] doi:10.1038/s41467-026-72510-9 [code]
Single-neuron network topology governs neural computation and learning in primate cortex.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, scikit-learn, SciPy, 1 other tool, 5 references
[9] doi:10.1038/s42003-026-09956-6 [code]
Linking changes in sulcal morphometry to cognitive development from childhood to adolescence.
Journal: Communications biology
In common: scikit-learn, SciPy, NumPy, developmental, structural MRI / diffusion, 5 references
[10] 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, scikit-learn, SciPy, 1 other tool, structural MRI / diffusion, 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.

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.