Comprehensive large-scale analyses reveal association between brain structure and cognitive ability during adolescence.
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
- from scipy.io import loadmat
- import scipy.io as scio
- import numpy as np
- from sklearn.linear_model import Lasso
- from sklearn.metrics import r2_score
- import time
- # import setting
- alpha_list = 0.01
- bootstrap_num = 1000
- list_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/bootstrap_list.mat'
- list_data = loadmat(list_path)
- list_data = list_data['bootstrap_list']
- list_data = np.array(list_data)
- # import cognition
- y_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Cognition_output/Cognition.mat'
- y_data = loadmat(y_path)
- y_data = y_data['Cognition']
- y_data_all = np.array(y_data)
- start_time = time.time()
- # region
- X_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Region_input/Region_input.mat'
- X_data = loadmat(X_path)
- X_data = X_data['Region_input']
- X_data_all = np.array(X_data)
- for beh_ind in range(8):
- All_para = []
- All_r2 = []
- # bootstrap
- for i in range(bootstrap_num):
- first_index = list_data[:, i]
- X_data = X_data_all[first_index, :]
- indices = np.random.choice(range(len(X_data)), size=len(X_data), replace=True)
- X_data = X_data[indices, :]
- y_bootstrap = y_data_all[first_index, :]
- y_bootstrap = y_bootstrap[indices, :]
- y_data = y_bootstrap[:, beh_ind]
- # start
- model = Lasso(alpha=alpha_list, precompute=True, max_iter=100000, tol=1e-5, selection='random')
- model.fit(X_data, y_data)
- # parameter
- coefficients = model.coef_
- All_para.append(coefficients)
- # r2
- y_pred = model.predict(X_data)
- r2 = r2_score(y_data, y_pred)
- All_r2.append(r2)
- # save
- All_para = np.array(All_para)
- save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Region/All_para_%s.mat' % (beh_ind+1)
- scio.savemat(save_path, {'All_para': All_para})
- All_r2 = np.array(All_r2)
- save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Region/All_r2_%s.mat' % (beh_ind+1)
- scio.savemat(save_path, {'All_r2': All_r2})
- end_time = time.time()
- elapsed_time = end_time - start_time
- print(elapsed_time)
- start_time = time.time()
- # connection
- X_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Connection_input/Connection_input.mat'
- X_data = loadmat(X_path)
- X_data = X_data['Connection_input']
- X_data_all = np.array(X_data)
- for beh_ind in range(8):
- All_para = []
- All_r2 = []
- # bootstrap
- for i in range(bootstrap_num):
- first_index = list_data[:, i]
- X_data = X_data_all[first_index, :]
- indices = np.random.choice(range(len(X_data)), size=len(X_data), replace=True)
- X_data = X_data[indices, :]
- y_bootstrap = y_data_all[first_index, :]
- y_bootstrap = y_bootstrap[indices, :]
- y_data = y_bootstrap[:, beh_ind]
- # start
- model = Lasso(alpha=alpha_list, precompute=True, max_iter=100000, tol=1e-5, selection='random')
- model.fit(X_data, y_data)
- # parameter
- coefficients = model.coef_
- All_para.append(coefficients)
- # r2
- y_pred = model.predict(X_data)
- r2 = r2_score(y_data, y_pred)
- All_r2.append(r2)
- # save
- All_para = np.array(All_para)
- save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Connection/All_para_%s.mat' % (beh_ind+1)
- scio.savemat(save_path, {'All_para': All_para})
- All_r2 = np.array(All_r2)
- save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Connection/All_r2_%s.mat' % (beh_ind+1)
- scio.savemat(save_path, {'All_r2': All_r2})
- end_time = time.time()
- elapsed_time = end_time - start_time
- print(elapsed_time)
- start_time = time.time()
- # hub
- X_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Hub_input/Hub_input.mat'
- X_data = loadmat(X_path)
- X_data = X_data['Hub_input']
- X_data_all = np.array(X_data)
- for beh_ind in range(8):
- All_para = []
- All_r2 = []
- # bootstrap
- for i in range(bootstrap_num):
- first_index = list_data[:, i]
- X_data = X_data_all[first_index, :]
- indices = np.random.choice(range(len(X_data)), size=len(X_data), replace=True)
- X_data = X_data[indices, :]
- y_bootstrap = y_data_all[first_index, :]
- y_bootstrap = y_bootstrap[indices, :]
- y_data = y_bootstrap[:, beh_ind]
- # start
- model = Lasso(alpha=alpha_list, precompute=True, max_iter=100000, tol=1e-5, selection='random')
- model.fit(X_data, y_data)
- # parameter
- coefficients = model.coef_
- All_para.append(coefficients)
- # r2
- y_pred = model.predict(X_data)
- r2 = r2_score(y_data, y_pred)
- All_r2.append(r2)
- # save
- All_para = np.array(All_para)
- save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Hub/All_para_%s.mat' % (beh_ind+1)
- scio.savemat(save_path, {'All_para': All_para})
- All_r2 = np.array(All_r2)
- save_path = '/home/users/jyan/JYan/First_Project_Result/New_241127/First_step/Hub/All_r2_%s.mat' % (beh_ind+1)
- scio.savemat(save_path, {'All_r2': All_r2})
- end_time = time.time()
- elapsed_time = end_time - start_time
- print(elapsed_time)
Bootstrap_1000.py at commit d062e00, no license · at the source
Overview
- Montreal Neurological Institute, McGill University, Montreal, QC Canada
- McGill Centre for Integrative Neuroscience, McGill University, Montreal, QC Canada
- Ludmer Centre for NeuroInformatics and Mental Health, Montreal, QC Canada
- Department of Psychology I, Würzburg University, Würzburg, Germany
- 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
- Douglas Mental Health University Institute, McGill University, Montreal, QC Canada
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
d062e009021a96b153661c017109000b9d47048d, 21 August 2025Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
3 files
- Bootstrap_1000.py, Python, 137 lines
- Make_brain_input.m, MATLAB, 135 lines
- Make_cognition_output.m, MATLAB, 43 lines
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:
- it points to the authors' code: JDYan/
Brain-Cognition-Associat ion
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:
- it points to the authors' code: JDYan/
Brain-Cognition-Associat ion
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://
BibTeX
@article{yan2026comprehe
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/
url = {https://
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/
VL - 9
IS - 1
SP - 584
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "9",
"issue": "1",
"page": "584",
"DOI": "10.1038/
"PMID": "41820538",
"PMCID": "PMC13121603",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://
"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 disciplinesIn 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 communicationsIn 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: eLifeIn 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 communicationsIn 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 communicationsIn 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 biologyIn 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 communicationsIn 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 biologyIn 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 medicineIn 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.
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, 3 scripts, and 0 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:072b182fa8f77fc5…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
