OSCR

Lifespan normative modeling of brain microstructure.

Code ↔ Paper

4 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.

4 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 4 matches
  1. [1] § Results › Lifespan trajectories of brain microstructural metrics ↔ code/nm_hbr_controls10_rob_spline_age_sexbatch_v29.py, lines 50 to 94 · score 0.68 · hbn si, aomic id1000, ping philips, adni3 s31, abcd siemens, site CAMCAN · block oscr:b:GD86ZQ3A87KJX-O · Report a mismatch
  2. [2] § Results › Lifespan trajectories of brain microstructural metrics ↔ code/nm_hbr_controls1_rob_spline_age_sexbatch_v29.py, lines 50 to 94 · score 0.68 · hbn si, aomic id1000, ping philips, adni3 s31, abcd siemens, site CAMCAN · block oscr:b:S3EHNVC6Y017K-R · Report a mismatch
  3. [3] § Methods › White matter regions assessed ↔ code/nm_hbr_NIMHANS_spline_age_sexbatch_transfer.py, lines 44 to 46 · score 0.57 · SFO, SLF, ACR, ALIC, CGC, EC · block oscr:b:5PX80RV7XVJKG-1 · Report a mismatch
  4. [4] § Methods › White matter regions assessed ↔ code/nm_hbr_UCLA_spline_age_sexbatch_transfer.py, lines 44 to 46 · score 0.57 · SFO, SLF, ACR, ALIC, CGC, EC · block oscr:b:ZMWY5QQM7EQ8R-H · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 326 lines · 18 KB · GPL-3.0 · 1 match

  1. # -*- coding: utf-8 -*-
  2. """
  3. Created in August 2024
  4. # @author: Julio Villalón
  5. """
  6. import os
  7. import pandas as pd
  8. import numpy as np
  9. from sklearn.model_selection import train_test_split
  10. from pcntoolkit.normative import estimate, evaluate
  11. from scipy.stats import norm
  12. import argparse
  13. import pickle
  14. __author__ = 'Julio Villalón'
  15. parser = argparse.ArgumentParser(description='This runs the HBR normative modeling with HBR.')
  16. parser.add_argument('-controls','--controls_csv', help='Input table with controls, including the site ID.',required=True)
  17. parser.add_argument('-dirO','--dirOutput', help='Ouput directory. Put slash at the end.',required=True)
  18. parser.add_argument('-age_column','--age_column', help='Name of the age column header.',required=True)
  19. parser.add_argument('-site_column','--site_column', help='Name of the site column header.',required=True)
  20. parser.add_argument('-sex_column','--sex_column', help='Name of the sex column header.',required=True)
  21. parser.add_argument('-outscaler','--outscaler', help='Scaling approach for output responses,\
  22. could be None (Default), standardize, minmax, or robminmax.',required=True)
  23. args = parser.parse_args()
  24. ## show the inputs ##
  25. print("Input controls file: %s" % args.controls_csv)
  26. print("Output directory: %s" % args.dirOutput)
  27. print("Name of the site column: %s" % args.site_column)
  28. print("Name of the age column: %s" % args.age_column)
  29. print("Name of the sex column: %s" % args.sex_column)
  30. print("Scaling approach for output response, outscaler: %s" % args.outscaler)
  31. data_dir = args.dirOutput
  32. if not os.path.exists(data_dir):
  33. os.makedirs(data_dir)
  34. # 21 ROIS + Average WM = 22 total rois. Bilateral, not left and right.
  35. rois =['ACR','ALIC','Average','BCC','CGC','CGH','CST','EC','FX','FXST','GCC',
  36. 'UNC','PCR','PLIC','PTR','RLIC','SCC','SCR','SFO','SLF','SS','TAP']
  37. #Reading in the controls table. Making sure
  38. dmri = args.controls_csv
  39. train_all = pd.read_csv(dmri, dtype={'subjectID': str, 'SID': str, 'Protocol_No': int, 'Protocol': str, 'Study': str})
  40. train_all["site"] = train_all[args.site_column] # Creating a new column copied from the original site column.
  41. # This makes the new columns called site_HCP, site_ABCD, site_XXX
  42. train_all_site = pd.get_dummies(train_all, columns=['site'])
  43. train_all_site['site_ID'] = train_all['site'] #adding the columns with site names to the new frame
  44. train_all_site['site_ID_bin'] = train_all['Protocol_No'] # this is the numeric version of Protocol
  45. controls_big = train_all_site.copy()
  46. train_site = controls_big[['site_ID_bin', args.sex_column]]
  47. controls_cov_big = controls_big[['subjectID',
  48. args.age_column,
  49. args.sex_column,
  50. 'site_ID',
  51. 'site_ID_bin',
  52. 'site_ABCD_SIEMENS', 'site_ABCD_GE',
  53. 'site_ABCD_PHILIPS', 'site_ADNI3_GE36',
  54. 'site_ADNI3_GE54', 'site_ADNI3_P33',
  55. 'site_ADNI3_P36', 'site_ADNI3_S127',
  56. 'site_ADNI3_S31', 'site_ADNI3_S55',
  57. 'site_AOMIC_ID1000', 'site_AOMIC_PIOP1',
  58. 'site_AOMIC_PIOP2', 'site_CAMCAN', 'site_CHBMP',
  59. 'site_CHCP', 'site_HBN_CBIC', 'site_HBN_CUNY',
  60. 'site_HBN_RUBIC', 'site_HBN_SI', 'site_HCP_A',
  61. 'site_HCP_D', 'site_HCP_YA',
  62. 'site_NIH_Peds_dti04_SIEMENS', 'site_NIH_Peds_dti04_GE',
  63. 'site_NIH_Peds_edti02_SIEMENS', 'site_NIH_Peds_edti02_GE',
  64. 'site_OASIS3', 'site_PING_GE', 'site_PING_SIEMENS',
  65. 'site_PING_PHILIPS', 'site_PNC', 'site_PPMI',
  66. 'site_QTAB', 'site_QTIM', 'site_SLIM', 'site_UKBB']]
  67. controls_features_big = controls_big[rois]
  68. X_train8020_f1, X_test8020_f1, y_train8020_f1, y_test8020_f1 = train_test_split(controls_cov_big,
  69. controls_features_big, stratify=train_site,
  70. test_size=0.2, random_state=90057)
  71. X_train_f1 = X_train8020_f1.copy()
  72. X_test_f1 = X_test8020_f1.copy()
  73. y_train_f1 = y_train8020_f1.copy()
  74. y_test_f1 = y_test8020_f1.copy()
  75. X_train_f1.reset_index(drop=True, inplace=True)
  76. X_test_f1.reset_index(drop=True, inplace=True)
  77. y_train_f1.reset_index(drop=True, inplace=True)
  78. y_test_f1.reset_index(drop=True, inplace=True)
  79. ABCD_SIEMENS_te= X_test_f1.index[X_test_f1['site_ABCD_SIEMENS'] == 1].to_list()
  80. ABCD_GE_te= X_test_f1.index[X_test_f1['site_ABCD_GE'] == 1].to_list()
  81. ABCD_PHILIPS_te= X_test_f1.index[X_test_f1['site_ABCD_PHILIPS'] == 1].to_list()
  82. ADNI3_GE36_te= X_test_f1.index[X_test_f1['site_ADNI3_GE36'] == 1].to_list()
  83. ADNI3_GE54_te= X_test_f1.index[X_test_f1['site_ADNI3_GE54'] == 1].to_list()
  84. ADNI3_P33_te= X_test_f1.index[X_test_f1['site_ADNI3_P33'] == 1].to_list()
  85. ADNI3_P36_te= X_test_f1.index[X_test_f1['site_ADNI3_P36'] == 1].to_list()
  86. ADNI3_S127_te= X_test_f1.index[X_test_f1['site_ADNI3_S127'] == 1].to_list()
  87. ADNI3_S31_te= X_test_f1.index[X_test_f1['site_ADNI3_S31'] == 1].to_list()
  88. ADNI3_S55_te= X_test_f1.index[X_test_f1['site_ADNI3_S55'] == 1].to_list()
  89. AOMIC_ID1000_te= X_test_f1.index[X_test_f1['site_AOMIC_ID1000'] == 1].to_list()
  90. AOMIC_PIOP1_te= X_test_f1.index[X_test_f1['site_AOMIC_PIOP1'] == 1].to_list()
  91. AOMIC_PIOP2_te= X_test_f1.index[X_test_f1['site_AOMIC_PIOP2'] == 1].to_list()
  92. CAMCAN_te= X_test_f1.index[X_test_f1['site_CAMCAN'] == 1].to_list()
  93. CHBMP_te= X_test_f1.index[X_test_f1['site_CHBMP'] == 1].to_list()
  94. CHCP_te= X_test_f1.index[X_test_f1['site_CHCP'] == 1].to_list()
  95. HBN_CBIC_te= X_test_f1.index[X_test_f1['site_HBN_CBIC'] == 1].to_list()
  96. HBN_CUNY_te= X_test_f1.index[X_test_f1['site_HBN_CUNY'] == 1].to_list()
  97. HBN_RUBIC_te= X_test_f1.index[X_test_f1['site_HBN_RUBIC'] == 1].to_list()
  98. HBN_SI_te= X_test_f1.index[X_test_f1['site_HBN_SI'] == 1].to_list()
  99. HCP_A_te= X_test_f1.index[X_test_f1['site_HCP_A'] == 1].to_list()
  100. HCP_D_te= X_test_f1.index[X_test_f1['site_HCP_D'] == 1].to_list()
  101. HCP_YA_te= X_test_f1.index[X_test_f1['site_HCP_YA'] == 1].to_list()
  102. NIH_Peds_dti04_SIEMENS_te= X_test_f1.index[X_test_f1['site_NIH_Peds_dti04_SIEMENS'] == 1].to_list()
  103. NIH_Peds_dti04_GE_te= X_test_f1.index[X_test_f1['site_NIH_Peds_dti04_GE'] == 1].to_list()
  104. NIH_Peds_edti02_SIEMENS_te= X_test_f1.index[X_test_f1['site_NIH_Peds_edti02_SIEMENS'] == 1].to_list()
  105. NIH_Peds_edti02_GE_te= X_test_f1.index[X_test_f1['site_NIH_Peds_edti02_GE'] == 1].to_list()
  106. OASIS3_te= X_test_f1.index[X_test_f1['site_OASIS3'] == 1].to_list()
  107. PING_GE_te= X_test_f1.index[X_test_f1['site_PING_GE'] == 1].to_list()
  108. PING_SIEMENS_te= X_test_f1.index[X_test_f1['site_PING_SIEMENS'] == 1].to_list()
  109. PING_PHILIPS_te= X_test_f1.index[X_test_f1['site_PING_PHILIPS'] == 1].to_list()
  110. PNC_te= X_test_f1.index[X_test_f1['site_PNC'] == 1].to_list()
  111. PPMI_te= X_test_f1.index[X_test_f1['site_PPMI'] == 1].to_list()
  112. QTAB_te= X_test_f1.index[X_test_f1['site_QTAB'] == 1].to_list()
  113. QTIM_te= X_test_f1.index[X_test_f1['site_QTIM'] == 1].to_list()
  114. SLIM_te= X_test_f1.index[X_test_f1['site_SLIM'] == 1].to_list()
  115. UKBB_te= X_test_f1.index[X_test_f1['site_UKBB'] == 1].to_list()
  116. dfbatch_tr = X_train_f1[['site_ID_bin', args.sex_column]]
  117. dfbatch_te = X_test_f1[['site_ID_bin', args.sex_column]]
  118. dfbatch_tr.to_csv(os.path.join(data_dir, 'batch_tr.txt'),
  119. na_rep='NaN', index=False, header=False, sep=' ')
  120. with open(data_dir + '/batch_tr.pkl', 'wb') as file:
  121. pickle.dump(dfbatch_tr, file)
  122. dfbatch_te.to_csv(os.path.join(data_dir, 'batch_te.txt'),
  123. na_rep='NaN', index=False, header=False, sep=' ')
  124. with open(data_dir + '/batch_te.pkl', 'wb') as file:
  125. pickle.dump(dfbatch_te, file)
  126. dfsubject_tr = X_train_f1[['subjectID']]
  127. dfsubject_te = X_test_f1[['subjectID']]
  128. dfsubject_tr.to_csv(os.path.join(data_dir, 'subjects_tr.txt'),
  129. na_rep='NaN', index=False, header=False, sep=' ')
  130. dfsubject_te.to_csv(os.path.join(data_dir, 'subjects_te.txt'),
  131. na_rep='NaN', index=False, header=False, sep=' ')
  132. X_train_f1 = X_train_f1.drop(['subjectID', args.sex_column, 'site_ID', 'site_ID_bin',
  133. 'site_ABCD_SIEMENS', 'site_ABCD_GE',
  134. 'site_ABCD_PHILIPS', 'site_ADNI3_GE36',
  135. 'site_ADNI3_GE54', 'site_ADNI3_P33',
  136. 'site_ADNI3_P36', 'site_ADNI3_S127',
  137. 'site_ADNI3_S31', 'site_ADNI3_S55',
  138. 'site_AOMIC_ID1000', 'site_AOMIC_PIOP1',
  139. 'site_AOMIC_PIOP2', 'site_CAMCAN', 'site_CHBMP',
  140. 'site_CHCP', 'site_HBN_CBIC', 'site_HBN_CUNY',
  141. 'site_HBN_RUBIC', 'site_HBN_SI', 'site_HCP_A',
  142. 'site_HCP_D', 'site_HCP_YA',
  143. 'site_NIH_Peds_dti04_SIEMENS', 'site_NIH_Peds_dti04_GE',
  144. 'site_NIH_Peds_edti02_SIEMENS', 'site_NIH_Peds_edti02_GE',
  145. 'site_OASIS3', 'site_PING_GE', 'site_PING_SIEMENS',
  146. 'site_PING_PHILIPS', 'site_PNC', 'site_PPMI',
  147. 'site_QTAB', 'site_QTIM', 'site_SLIM', 'site_UKBB'], axis=1)
  148. X_test_f1 = X_test_f1.drop(['subjectID', args.sex_column, 'site_ID', 'site_ID_bin',
  149. 'site_ABCD_SIEMENS', 'site_ABCD_GE',
  150. 'site_ABCD_PHILIPS', 'site_ADNI3_GE36',
  151. 'site_ADNI3_GE54', 'site_ADNI3_P33',
  152. 'site_ADNI3_P36', 'site_ADNI3_S127',
  153. 'site_ADNI3_S31', 'site_ADNI3_S55',
  154. 'site_AOMIC_ID1000', 'site_AOMIC_PIOP1',
  155. 'site_AOMIC_PIOP2', 'site_CAMCAN', 'site_CHBMP',
  156. 'site_CHCP', 'site_HBN_CBIC', 'site_HBN_CUNY',
  157. 'site_HBN_RUBIC', 'site_HBN_SI', 'site_HCP_A',
  158. 'site_HCP_D', 'site_HCP_YA',
  159. 'site_NIH_Peds_dti04_SIEMENS', 'site_NIH_Peds_dti04_GE',
  160. 'site_NIH_Peds_edti02_SIEMENS', 'site_NIH_Peds_edti02_GE',
  161. 'site_OASIS3', 'site_PING_GE', 'site_PING_SIEMENS',
  162. 'site_PING_PHILIPS', 'site_PNC', 'site_PPMI',
  163. 'site_QTAB', 'site_QTIM', 'site_SLIM', 'site_UKBB'], axis=1)
  164. X_train_f1.loc[:, args.age_column] = X_train_f1[args.age_column] / 100
  165. X_test_f1.loc[:, args.age_column] = X_test_f1[args.age_column] / 100
  166. roi_ids = ['ACR','ALIC','Average','BCC','CGC','CGH','CST','EC','FX','FXST',
  167. 'GCC','UNC','PCR','PLIC','PTR','RLIC','SCC','SCR','SFO','SLF','SS',
  168. 'TAP']
  169. # Run normative model for controls train/test split
  170. sites = [ABCD_SIEMENS_te, ABCD_GE_te, ABCD_PHILIPS_te, ADNI3_GE36_te,
  171. ADNI3_GE54_te, ADNI3_P33_te, ADNI3_P36_te, ADNI3_S127_te,
  172. ADNI3_S31_te, ADNI3_S55_te, AOMIC_ID1000_te, AOMIC_PIOP1_te,
  173. AOMIC_PIOP2_te, CAMCAN_te, CHBMP_te, CHCP_te, HBN_CBIC_te,
  174. HBN_CUNY_te, HBN_RUBIC_te, HBN_SI_te, HCP_A_te, HCP_D_te,
  175. HCP_YA_te, NIH_Peds_dti04_SIEMENS_te, NIH_Peds_dti04_GE_te,
  176. NIH_Peds_edti02_SIEMENS_te, NIH_Peds_edti02_GE_te, OASIS3_te,
  177. PING_GE_te, PING_SIEMENS_te, PING_PHILIPS_te, PNC_te, PPMI_te, QTAB_te,
  178. QTIM_te, SLIM_te, UKBB_te]
  179. site_names = ['ABCD_SIEMENS_te', 'ABCD_GE_te', 'ABCD_PHILIPS_te',
  180. 'ADNI3_GE36_te', 'ADNI3_GE54_te', 'ADNI3_P33_te', 'ADNI3_P36_te',
  181. 'ADNI3_S127_te', 'ADNI3_S31_te', 'ADNI3_S55_te', 'AOMIC_ID1000_te',
  182. 'AOMIC_PIOP1_te', 'AOMIC_PIOP2_te', 'CAMCAN_te', 'CHBMP_te',
  183. 'CHCP_te', 'HBN_CBIC_te', 'HBN_CUNY_te', 'HBN_RUBIC_te',
  184. 'HBN_SI_te', 'HCP_A_te', 'HCP_D_te', 'HCP_YA_te',
  185. 'NIH_Peds_dti04_SIEMENS_te', 'NIH_Peds_dti04_GE_te',
  186. 'NIH_Peds_edti02_SIEMENS_te', 'NIH_Peds_edti02_GE_te', 'OASIS3_te',
  187. 'PING_GE_te', 'PING_SIEMENS_te', 'PING_PHILIPS_te', 'PNC_te',
  188. 'PPMI_te', 'QTAB_te', 'QTIM_te', 'SLIM_te', 'UKBB_te']
  189. for roi in roi_ids:
  190. print('Saving the tables for ROI:', roi)
  191. roi_dir = os.path.join(data_dir, roi)
  192. if not os.path.exists(roi_dir):
  193. os.makedirs(roi_dir)
  194. np.savetxt(os.path.join(roi_dir, 'cov_int_controls_tr.txt'), X_train_f1)
  195. np.savetxt(os.path.join(roi_dir, 'cov_int_controls_te.txt'), X_test_f1)
  196. # Saving the Y for each roi
  197. np.savetxt(os.path.join(roi_dir, 'resp_controls_tr.txt'), y_train_f1[roi])
  198. np.savetxt(os.path.join(roi_dir, 'resp_controls_te.txt'), y_test_f1[roi])
  199. # Create pandas dataframes with header names to save out the overall and per-site model evaluation metrics
  200. hbr_metrics = pd.DataFrame(columns = ['ROI', 'MSLL', 'EV', 'SMSE', 'RMSE', 'Rho', 'NLL'])
  201. hbr_site_metrics = pd.DataFrame(columns = ['ROI', 'site', 'y_mean', 'y_var', 'yhat_mean', 'yhat_var', 'MSLL', 'EV', 'SMSE', 'RMSE', 'Rho'])
  202. # Loop through ROIs for controls 80/20 train/test split
  203. for roi in roi_ids:
  204. print('Running ROI:', roi)
  205. roi_dir = os.path.join(data_dir, roi)
  206. os.chdir(roi_dir)
  207. # configure the covariates to use. Change *_bspline_* to *_int_* to
  208. cov_file_tr = os.path.join(roi_dir, 'cov_int_controls_tr.txt')
  209. cov_file_te = os.path.join(roi_dir, 'cov_int_controls_te.txt')
  210. # load train & test response files
  211. resp_file_tr = os.path.join(roi_dir, 'resp_controls_tr.txt')
  212. resp_file_te = os.path.join(roi_dir, 'resp_controls_te.txt')
  213. batch_tr = os.path.join(data_dir, 'batch_tr.pkl')
  214. batch_te = os.path.join(data_dir, 'batch_te.pkl')
  215. # run a basic model
  216. yhat_te, s2_te, nm, Z, metrics_te = estimate(cov_file_tr,
  217. resp_file_tr,
  218. testresp=resp_file_te,
  219. testcov=cov_file_te,
  220. alg = 'hbr',
  221. trbefile=batch_tr,
  222. tsbefile=batch_te,
  223. model_type='bspline',
  224. savemodel = True,
  225. saveoutput = False,
  226. linear_mu ='True',
  227. linear_sigma='True',
  228. random_intercept_mu='True',
  229. random_intercept_sigma='True',
  230. random_slope_mu='False',
  231. random_slope_sigma='False',
  232. outscaler=args.outscaler
  233. )
  234. p_mosi = 1 - norm.sf(np.abs(Z)) * 2
  235. Z_p = np.concatenate((Z, p_mosi), axis=1)
  236. np.savetxt(os.path.join(roi_dir, 'Z_p_estimate.txt'), Z_p)
  237. np.savetxt(os.path.join(roi_dir, 'Yhat_estimate.txt'), yhat_te)
  238. np.savetxt(os.path.join(roi_dir, 'Ys2_estimate.txt'), s2_te)
  239. # display and save metrics
  240. keys = list(metrics_te.keys())
  241. print(keys)
  242. print(metrics_te.items())
  243. print('EV=', metrics_te['EXPV'][0])
  244. print('RHO=', metrics_te['Rho'][0])
  245. print('MSLL=', metrics_te['MSLL'][0])
  246. print('SMSE=', metrics_te['SMSE'][0])
  247. hbr_metrics.loc[len(hbr_metrics)] = [roi, metrics_te['MSLL'][0], metrics_te['EXPV'][0], metrics_te['SMSE'][0],
  248. metrics_te['RMSE'][0], metrics_te['Rho'][0], metrics_te['NLL'][0]]
  249. # Compute metrics per site in test set, save to pandas df
  250. # load true test data
  251. X_te = np.loadtxt(cov_file_te)
  252. y_te = np.loadtxt(resp_file_te)
  253. y_te = y_te[:, np.newaxis] # make sure it is a 2-d array
  254. for num, site in enumerate(sites):
  255. y_mean_te_site = np.array([[np.mean(y_te[site])]])
  256. y_var_te_site = np.array([[np.var(y_te[site])]])
  257. yhat_mean_te_site = np.array([[np.mean(yhat_te[site])]])
  258. yhat_var_te_site = np.array([[np.var(yhat_te[site])]])
  259. metrics_te_site = evaluate(y_te[site], yhat_te[site], s2_te[site], y_mean_te_site, y_var_te_site)
  260. site_name = site_names[num]
  261. hbr_site_metrics.loc[len(hbr_site_metrics)] = [roi, site_names[num],
  262. y_mean_te_site[0],
  263. y_var_te_site[0],
  264. yhat_mean_te_site[0],
  265. yhat_var_te_site[0],
  266. metrics_te_site['MSLL'][0],
  267. metrics_te_site['EXPV'][0],
  268. metrics_te_site['SMSE'][0],
  269. metrics_te_site['RMSE'][0],
  270. metrics_te_site['Rho'][0]]
  271. os.chdir(data_dir)
  272. # Save per site test set metrics variable to CSV file
  273. hbr_site_metrics.to_csv(os.path.join(data_dir, 'hbr_controls_site_metrics_f1.csv'), index=False, index_label=None)
  274. # Save overall test set metrics to CSV file
  275. hbr_metrics.to_csv(os.path.join(data_dir, 'hbr_controls_metrics_f1.csv'), index=False, index_label=None)

nm_hbr_controls10_rob_spline_age_sexbatch_v29.py at commit 6d28185, under GPL-3.0 · at the source

Overview

Authors: Julio E Villalón-Reina1, Alyssa H Zhu2, Leila Nabulsi1, Sophia I Thomopoulos1, Clara A Moreau3, Yixue Feng1, Tamoghna Chattopadhyay1, Sebastian M Benavidez1, Leila Kushan4, John P John5, Himanshu Joshi5, Iyad Ba Gari2, Katherine E Lawrence1, Talia M Nir2, Neda Jahanshad2, Carrie E Bearden4, Seyed Mostafa Kia6,7, Andre F Marquand6, the Alzheimer’s Disease Neuroimaging Initiative, Paul M Thompson1
  1. Imaging Genetics Center, Mark & Mary Stevens Institute for Neuroimaging & Informatics, Keck School of Medicine, University of Southern California, Los Angeles, CA USA
  2. Laboratory of Brain eScience, Mark & Mary Stevens Institute for Neuroimaging & Informatics, Keck School of Medicine, University of Southern California, Los Angeles, USA
  3. Centre de recherche Azrieli, CHU Sainte-Justine, Department of Psychiatry and Addictology, University of Montreal, Montreal, QC Canada
  4. Semel Institute for Neuroscience and Human Behavior, Departments of Psychiatry and Biobehavioral Sciences and Psychology, University of California, Los Angeles, CA USA
  5. Multimodal Brain Image Analysis Laboratory, Department of Psychiatry, National Institute of Mental Health and Neuro Sciences, Bengaluru, India
  6. Donders Centre for Cognitive Neuroimaging, Donders Institute for Brain, Cognition and Behaviour. Radboud University, Nijmegen, The Netherlands
  7. Center of Cognitive Science and Artificial Intelligence, Tilburg School of Humanities and Digital Sciences, Tilburg University, Tilburg, The Netherlands
Journal: Nature communications, volume 17, issue 1, article 4693
Dates: received 17 December 2024; accepted 21 April 2026; published online 27 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-72875-x · PMID 42204143 · PMCID PMC13216618 · OpenAlex W7162560706
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: structural MRI / diffusion (modality), human (organism), Alzheimer's / dementia (population), schizophrenia / psychosis (population)
Methods: Statistics, Preprocessing, Connectivity, fMRI & imaging, Physiology & signal measures
Keywords: Predictive markers, Development of the nervous system
MeSH: Brain*, Longevity*, White Matter*, Adolescent, Adult, Aged, Aged, 80 and over, Alzheimer Disease, Bayes Theorem, Child, Child, Preschool, Cognitive Dysfunction, Diffusion Tensor Imaging, Female, Humans, Male, Middle Aged, Schizophrenia, Young Adult (* major topic)
Topic: Advanced Neuroimaging Techniques and Applications (Radiology, Nuclear Medicine and Imaging, Medicine), according to OpenAlex
Funding: European Research Council (101001118, 215698); Biotechnology and Biological Sciences Research Council (BB/H008217/1); NIMH NIH HHS (R01 MH085953); U.S. Department of Health & Human Services | NIH | Fogarty International Center (RF1AG057892); Wellcome Trust (215698/Z/19/Z); NIA NIH HHS (R01 AG060610); U.S. Department of Health & Human Services | NIH | National Institute of Mental Health (NIMH) (K01MH135160); U.S. Department of Health & Human Services | NIH | National Institute of Mental Health (R01 MH085953, K01MH135160); U.S. Department of Health & Human Services | NIH | National Institute on Aging (R01 AG060610); U.S. Department of Health & Human Services | NIH | Fogarty International Center (FIC) (RF1AG057892)
Citations: cited by 7 papers (Europe PMC); 85 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 4 matches between paragraphs and lines of code.

villalonreina/ENIGMA-DTI-Normative-Modeling

License: GPL-3.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 6d281856f057c637ff665adfcf9a79af5580a9f5, 24 March 2026
Languages: Python (15)
Size: 23 files, 15 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, license file, environment (binder/environment.yml, binder/postBuild, binder/runtime.txt)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: NumPy (14 files), pandas (14 files), SciPy (13 files), scikit-learn (12 files), Matplotlib (1 file), seaborn (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
17 files

ENIGMA-git/ENIGMA-DTI-Normative-Modeling

License: GPL-3.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 6d281856f057c637ff665adfcf9a79af5580a9f5, 24 March 2026
Languages: Python (15)
Size: 23 files, 15 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, license file, environment (binder/environment.yml, binder/postBuild, binder/runtime.txt)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: NumPy (14 files), pandas (14 files), SciPy (13 files), scikit-learn (12 files), Matplotlib (1 file), seaborn (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
17 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-72875-x.

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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 30 scripts, each with its path and the digest of its content;
  • 4 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.1038/s41467-026-72875-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 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 20 authors, 2 keywords, 19 MeSH terms, 10 funders, 79 references.

Cite

This paper

Villalón-Reina, J. E., Zhu, A. H., Nabulsi, L., Thomopoulos, S. I., Moreau, C. A., Feng, Y., Chattopadhyay, T., Benavidez, S. M., Kushan, L., John, J. P., Joshi, H., Ba Gari, I., Lawrence, K. E., Nir, T. M., Jahanshad, N., Bearden, C. E., Kia, S. M., Marquand, A. F., the Alzheimer’s Disease Neuroimaging Initiative, & Thompson, P. M. (2026). Lifespan normative modeling of brain microstructure. Nature communications, 17(1), 4693. https://doi.org/10.1038/s41467-026-72875-x

BibTeX

@article{villalonreina2026lifespan,
author = {Villalón-Reina, Julio E and Zhu, Alyssa H and Nabulsi, Leila and Thomopoulos, Sophia I and Moreau, Clara A and Feng, Yixue and Chattopadhyay, Tamoghna and Benavidez, Sebastian M and Kushan, Leila and John, John P and Joshi, Himanshu and Ba Gari, Iyad and Lawrence, Katherine E and Nir, Talia M and Jahanshad, Neda and Bearden, Carrie E and Kia, Seyed Mostafa and Marquand, Andre F and {the Alzheimer’s Disease Neuroimaging Initiative} and Thompson, Paul M},
title = {{Lifespan normative modeling of brain microstructure}},
journal = {Nature communications},
year = {2026},
month = may,
volume = {17},
number = {1},
pages = {4693},
publisher = {Nature Portfolio},
issn = {2041-1723},
doi = {10.1038/s41467-026-72875-x},
url = {https://doi.org/10.1038/s41467-026-72875-x},
pmid = {42204143},
pmcid = {PMC13216618}
}

RIS

TY - JOUR
AU - Villalón-Reina, Julio E
AU - Zhu, Alyssa H
AU - Nabulsi, Leila
AU - Thomopoulos, Sophia I
AU - Moreau, Clara A
AU - Feng, Yixue
AU - Chattopadhyay, Tamoghna
AU - Benavidez, Sebastian M
AU - Kushan, Leila
AU - John, John P
AU - Joshi, Himanshu
AU - Ba Gari, Iyad
AU - Lawrence, Katherine E
AU - Nir, Talia M
AU - Jahanshad, Neda
AU - Bearden, Carrie E
AU - Kia, Seyed Mostafa
AU - Marquand, Andre F
AU - the Alzheimer’s Disease Neuroimaging Initiative
AU - Thompson, Paul M
TI - Lifespan normative modeling of brain microstructure
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/05/27
VL - 17
IS - 1
SP - 4693
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/s41467-026-72875-x
UR - https://doi.org/10.1038/s41467-026-72875-x
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-72875-x",
"type": "article-journal",
"title": "Lifespan normative modeling of brain microstructure",
"container-title": "Nature communications",
"author": [
{
"family": "Villalón-Reina",
"given": "Julio E"
},
{
"family": "Zhu",
"given": "Alyssa H"
},
{
"family": "Nabulsi",
"given": "Leila"
},
{
"family": "Thomopoulos",
"given": "Sophia I"
},
{
"family": "Moreau",
"given": "Clara A"
},
{
"family": "Feng",
"given": "Yixue"
},
{
"family": "Chattopadhyay",
"given": "Tamoghna"
},
{
"family": "Benavidez",
"given": "Sebastian M"
},
{
"family": "Kushan",
"given": "Leila"
},
{
"family": "John",
"given": "John P"
},
{
"family": "Joshi",
"given": "Himanshu"
},
{
"family": "Ba Gari",
"given": "Iyad"
},
{
"family": "Lawrence",
"given": "Katherine E"
},
{
"family": "Nir",
"given": "Talia M"
},
{
"family": "Jahanshad",
"given": "Neda"
},
{
"family": "Bearden",
"given": "Carrie E"
},
{
"family": "Kia",
"given": "Seyed Mostafa"
},
{
"family": "Marquand",
"given": "Andre F"
},
{
"literal": "the Alzheimer’s Disease Neuroimaging Initiative"
},
{
"family": "Thompson",
"given": "Paul M"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "4693",
"DOI": "10.1038/s41467-026-72875-x",
"PMID": "42204143",
"PMCID": "PMC13216618",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://doi.org/10.1038/s41467-026-72875-x",
"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/s42003-026-09825-2 [code]
Normative modeling of MEG brain oscillations across the human lifespan.
Journal: Communications biology
In common: seaborn, scikit-learn, pandas, 3 other tools, 11 references, 2 authors
[2] doi:10.1038/s41380-026-03489-4
Gene dosage effects of 22q11.2 copy number variants on in-vivo measures of white matter axonal density and dispersion.
Journal: Molecular psychiatry
In common: structural MRI / diffusion, 9 references, 3 authors
[3] doi:10.1038/s41586-026-10454-2 [code]
White matter micro- and macrostructure brain charts for the human lifespan.
Journal: Nature
In common: pandas, SciPy, NumPy, OpenNeuro ds002785, OpenNeuro ds003097, 1 other dataset, 9 references
[4] doi:10.1038/s41597-025-05028-2 [code]
Lifespan reference curves for harmonizing multi-site regional brain white matter metrics from diffusion MRI.
Journal: Scientific data
In common: seaborn, pandas, Matplotlib, 1 other tool, Alzheimer's / dementia, structural MRI / diffusion, 16 references
[5] doi:10.64898/2026.03.27.714738 [code]
Dissecting heterogeneous brain development and aging using voxelwise normative models
Journal: bioRxiv (preprint)
In common: seaborn, scikit-learn, pandas, 3 other tools, 13 references, author Andre Marquand
[6] doi:10.1371/journal.pone.0278776 [code]
Closing the life-cycle of normative modeling using federated hierarchical Bayesian regression.
Journal: PloS one
In common: seaborn, scikit-learn, pandas, 3 other tools, 13 references, author Seyed Mostafa Kia
[7] doi:10.12688/wellcomeopenres.19591.2 [code]
Predictive Clinical Neuroscience Portal (PCNportal): instant online access to research-grade normative models for clinical neuroscientists.
Journal: Wellcome open research
In common: seaborn, scikit-learn, pandas, 3 other tools, schizophrenia / psychosis, 7 references, 2 authors
[8] doi:10.1002/hbm.70519 [code]
Lifespan Trajectories of Asymmetry in White Matter Tracts.
Journal: Human brain mapping
In common: OpenNeuro ds002785, OpenNeuro ds003097, 1 other dataset, structural MRI / diffusion, 5 references
[9] doi:10.21203/rs.3.rs-9246968/v1 [code]
Copy number variants reveal divergent genetic and diagnostic cortical signatures across psychiatric disorders
Journal: Research Square (preprint)
In common: pandas, NumPy, 1 reference, 4 authors
[10] doi:10.64898/2026.08.13.26360304 [code]
Lifespan brain structural variation reveals shared organization across mental health conditions
Journal: medRxiv (preprint)
In common: seaborn, scikit-learn, pandas, 3 other tools, 6 references, 2 authors

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.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41467-026-72875-x.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-72875-x)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-72875-x.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41467-026-72875-x
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-72875-x"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-72875-x.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.