OSCR

Mapping heterogeneous brain structural subtypes in alzheimer's disease and mild cognitive impairment using normative models.

Code ↔ Paper

1 match 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 1 match
  1. [1] § Materials and methods › Transcriptomic analysis ↔ abagen/datasets/fetchers.py, lines 72–160 · score 0.57 · Allen Human Brain, adult, abagen, transcriptomic, Ontology, Atlas

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 · 546 lines · 19 KB · BSD-3-Clause · 1 match

  1. # -*- coding: utf-8 -*-
  2. """
  3. Functions for downloading the Allen Brain Atlas human microarray dataset.
  4. """
  5. from collections import namedtuple
  6. from functools import partial
  7. import multiprocessing as mp
  8. import os
  9. from pkg_resources import resource_filename
  10. import nibabel as nib
  11. import pandas as pd
  12. from .. import io
  13. from ..utils import load_gifti, first_entry
  14. from .utils import _get_dataset_dir, _fetch_files
  15. WELL_KNOWN_IDS = nib.volumeutils.Recoder(
  16. (('9861', 'H0351.2001', '178238387', '157722636', '157722638'),
  17. ('10021', 'H0351.2002', '178238373', '157723301', '157723303'),
  18. ('12876', 'H0351.1009', '178238359', '157722290', '157722292'),
  19. ('15496', 'H0351.1015', '178238266', '162021642', '162021644'),
  20. ('14380', 'H0351.1012', '178238316', '157721937', '157721939'),
  21. ('15697', 'H0351.1016', '178236545', '157682966', '157682968')),
  22. fields=('subj', 'uid', 'url', 't1w', 't2w')
  23. )
  24. VALID_DONORS = sorted(WELL_KNOWN_IDS.value_set('subj')
  25. | WELL_KNOWN_IDS.value_set('uid'))
  26. RESOURCE = partial(resource_filename, 'abagen')
  27. def check_donors(donors, default='12876', valid=VALID_DONORS):
  28. """
  29. Checks that provided `donors` are valid
  30. Parameters
  31. ----------
  32. donors : list of str
  33. List of donors to download; can be either donor number or UID. Can also
  34. specify 'all' to download all available donors. If 'None' is provided
  35. then `default` will be used.
  36. default : str, optional
  37. Default donor to use if `donors` is None. Default: '12876'
  38. valid : list of str, optional
  39. List of valid donnor numbers and UIDs. Default: :obj:`VALID_DONORS`
  40. Returns
  41. -------
  42. donors : list of str
  43. Donor subject IDs
  44. """
  45. if donors is None:
  46. donors = [default]
  47. elif donors == 'all':
  48. donors = valid
  49. elif isinstance(donors, str):
  50. donors = [donors]
  51. donors = list(donors).copy()
  52. for n, sub_id in enumerate(donors):
  53. if sub_id not in valid:
  54. raise ValueError('Invalid subject id: {0}. Subjects must in: {1}.'
  55. .format(sub_id, valid))
  56. donors[n] = WELL_KNOWN_IDS[sub_id] # convert to ID system
  57. donors = sorted(set(donors), key=lambda x: int(x))
  58. return donors
  59. def fetch_microarray(data_dir=None, donors=None, resume=True, verbose=1,
  60. convert=True, n_proc=1):
  61. """
  62. Downloads the Allen Human Brain Atlas microarray expression dataset
  63. Parameters
  64. ----------
  65. data_dir : str, optional
  66. Directory where data should be downloaded and unpacked. Default: $HOME/
  67. abagen-data
  68. donors : list, optional
  69. List of donors to download; can be either donor number or UID. Can also
  70. specify 'all' to download all available donors. Default: 12876
  71. resume : bool, optional
  72. Whether to resume download of a partly-downloaded file. Default: True
  73. verbose : int, optional
  74. Verbosity level (0 means no message). Default: 1
  75. convert : bool, optional
  76. Whether to convert downloaded CSV files into parquet format for faster
  77. loading in the future; only available if ``fastparquet`` and ``python-
  78. snappy`` are installed. Default: True
  79. n_proc : int, optional
  80. Number of processes to parallelize download if multiple donors are
  81. specified. Default: 1
  82. Returns
  83. -------
  84. data : dict
  85. Two-level nested dictionary, where top-level keys are donor IDs and
  86. second-level keys are ['microarray', 'ontology', 'pacall', 'probes',
  87. 'annotation'], where corresponding values are lists of filepaths to
  88. downloaded CSV files.
  89. References
  90. ----------
  91. Hawrylycz, M. J., Lein, E. S., Guillozet-Bongaarts, A. L., Shen, E. H., Ng,
  92. L., Miller, J. A., ... & Abajian, C. (2012). An anatomically comprehensive
  93. atlas of the adult human brain transcriptome. Nature, 489(7416), 391.
  94. """
  95. url = "https://human.brain-map.org/api/v2/well_known_file_download/{}"
  96. dataset_name = 'microarray'
  97. data_dir = _get_dataset_dir(dataset_name, data_dir=data_dir,
  98. verbose=verbose)
  99. sub_files = ('MicroarrayExpression.csv',
  100. 'Ontology.csv', 'PACall.csv',
  101. 'Probes.csv', 'SampleAnnot.csv')
  102. n_files = len(sub_files)
  103. donors = check_donors(donors)
  104. if n_proc < 0:
  105. n_proc = mp.cpu_count() + n_proc + 1
  106. files = [
  107. [(os.path.join('normalized_microarray_donor{}'.format(sub), fname),
  108. url.format(WELL_KNOWN_IDS.url[sub]),
  109. dict(uncompress=True,
  110. move=os.path.join('normalized_microarray_donor{}'.format(sub),
  111. 'donor{}.zip'.format(sub))))
  112. for fname in sub_files]
  113. for sub in donors
  114. ]
  115. if n_proc > 1:
  116. with mp.Pool(n_proc) as pool:
  117. results = [pool.apply_async(_fetch_files,
  118. (data_dir, f),
  119. dict(resume=resume, verbose=verbose))
  120. for f in files]
  121. # flatten outputs into single list
  122. files = [fn for res in results for fn in res.get()]
  123. else:
  124. # flatten list of lists into single list
  125. files = [fn for f in files for fn in f]
  126. files = _fetch_files(data_dir, files, resume=resume, verbose=verbose)
  127. # if we want to convert files to parquet format it's good to do that now
  128. # this step is _already_ super long, so an extra 1-2 minutes is negligible
  129. if convert and io.use_parq:
  130. for fn in files[0::n_files] + files[2::n_files]:
  131. io._make_parquet(fn, convert_only=True)
  132. keys = ['microarray', 'ontology', 'pacall', 'probes', 'annotation']
  133. return {
  134. donor: dict(zip(keys, files[k:k + n_files]))
  135. for k, donor in zip(range(0, len(files), n_files), donors)
  136. }
  137. def fetch_rnaseq(data_dir=None, donors=None, resume=True, verbose=1):
  138. """
  139. Downloads RNA-sequencing data from the Allen Human Brain Atlas
  140. Parameters
  141. ----------
  142. data_dir : str, optional
  143. Directory where data should be downloaded and unpacked. Default:
  144. current directory
  145. donors : list, optional
  146. List of donors to download; can be either donor number or UID. Can also
  147. specify 'all' to download all available donors (two). Default: 9861
  148. resume : bool, optional
  149. Whether to resume download of a partly-downloaded file. Default: True
  150. verbose : int, optional
  151. Verbosity level (0 means no message). Default: 1
  152. Returns
  153. -------
  154. data : dict
  155. Two-level nested dictionary, where top-level keys are donor IDs and
  156. second-level keys are ['counts', 'tpm', 'ontology', 'genes',
  157. 'annotation'], where corresponding values are lists of filepaths to
  158. downloaded CSV files.
  159. References
  160. ----------
  161. Hawrylycz, M. J., Lein, E. S., Guillozet-Bongaarts, A. L., Shen, E. H., Ng,
  162. L., Miller, J. A., ... & Abajian, C. (2012). An anatomically comprehensive
  163. atlas of the adult human brain transcriptome. Nature, 489(7416), 391.
  164. """
  165. url = "https://human.brain-map.org/api/v2/well_known_file_download/{}"
  166. well_known_ids = {
  167. '9861': '278447594',
  168. '10021': '278448166'
  169. }
  170. dataset_name = 'rnaseq'
  171. data_dir = _get_dataset_dir(dataset_name, data_dir=data_dir,
  172. verbose=verbose)
  173. sub_files = ('Genes.csv', 'Ontology.csv',
  174. 'RNAseqCounts.csv', 'RNAseqTPM.csv', 'SampleAnnot.csv')
  175. n_files = len(sub_files)
  176. valid = ['9861', '10021', 'H0351.2001', 'H0351.2002']
  177. donors = sorted(set(check_donors(donors, default=valid[0])) & set(valid),
  178. key=lambda x: int(x))
  179. files = [
  180. [(os.path.join('rnaseq_donor{}'.format(sub), fname),
  181. url.format(well_known_ids[sub]),
  182. dict(uncompress=True,
  183. move=os.path.join('rnaseq_donor{}'.format(sub),
  184. 'donor{}.zip'.format(sub))))
  185. for fname in sub_files]
  186. for sub in donors
  187. ]
  188. files = [fn for f in files for fn in f]
  189. files = _fetch_files(data_dir, files, resume=resume, verbose=verbose)
  190. keys = ['genes', 'ontology', 'counts', 'tpm', 'annotation']
  191. return {
  192. donor: dict(zip(keys, files[k:k + n_files]))
  193. for k, donor in zip(range(0, len(files), n_files), donors)
  194. }
  195. def fetch_raw_mri(data_dir=None, donors=None, resume=True, verbose=1):
  196. """
  197. Downloads the "raw" Allen Human Brain Atlas T1w/T2w MRI images
  198. Parameters
  199. ----------
  200. data_dir : str, optional
  201. Directory where data should be downloaded and unpacked. Default: $HOME/
  202. abagen-data
  203. donors : list, optional
  204. List of donors to download; can be either donor number or UID. Can also
  205. specify 'all' to download all available donors. Default: 12876
  206. resume : bool, optional
  207. Whether to resume download of a partly-downloaded file. Default: True
  208. verbose : int, optional
  209. Verbosity level (0 means no message). Default: 1
  210. Returns
  211. -------
  212. mris : dict
  213. Two-level nested dictionary, where top-level keys are donor IDs and
  214. second-level keys are ['t1w', 't2w'], where corresponding values are
  215. lists of filepaths to downloaded Nifti files
  216. """
  217. url = "https://human.brain-map.org/api/v2/well_known_file_download/{}"
  218. dataset_name = 'mri'
  219. data_dir = _get_dataset_dir(dataset_name, data_dir=data_dir,
  220. verbose=verbose)
  221. sub_files = dict(t1w='T1.nii.gz', t2w='T2.nii.gz')
  222. n_files = len(sub_files)
  223. donors = check_donors(donors)
  224. files = [
  225. (os.path.join('mri_donor{}'.format(sub), fname),
  226. url.format(getattr(WELL_KNOWN_IDS, img)[sub]),
  227. dict(move=os.path.join('mri_donor{}'.format(sub),
  228. fname)))
  229. for sub in donors
  230. for img, fname in sub_files.items()
  231. ]
  232. files = _fetch_files(data_dir, files, resume=resume, verbose=verbose)
  233. return {
  234. donor: dict(zip(sub_files.keys(), files[k:k + n_files]))
  235. for k, donor in zip(range(0, len(files), n_files), donors)
  236. }
  237. def fetch_freesurfer(data_dir=None, donors=None, resume=True, verbose=1):
  238. """
  239. Downloads FreeSurfer reconstructions of the Allen Human Brain Atlas MRIs
  240. Parameters
  241. ----------
  242. data_dir : str, optional
  243. Directory where data should be downloaded and unpacked. Default: $HOME/
  244. abagen-data
  245. donors : list, optional
  246. List of donors to download; can be either donor number or UID. Can also
  247. specify 'all' to download all available donors. Default: 12876
  248. resume : bool, optional
  249. Whether to resume download of a partly-downloaded file. Default: True
  250. verbose : int, optional
  251. Verbosity level (0 means no message). Default: 1
  252. Returns
  253. -------
  254. freesurfer : dict
  255. Dictionary where keys are donor IDs and values are paths to FreeSurfer
  256. directories for requested `donors`
  257. References
  258. ----------
  259. Romero-Garcia, R., Whitaker, K., Vasa, F., Seidlitz, J., Shinn, M., Fonagy,
  260. P., Jones, P., et al. (2017). Data supporting NSPN publication "Structural
  261. covariance networks are coupled to expression of genes enriched in
  262. supragranular layers of the human cortex " [Dataset].
  263. https://doi.org/10.17863/CAM.11392
  264. """
  265. url = "https://www.repository.cam.ac.uk/bitstream/handle/1810/265272/" \
  266. "donor{}.zip"
  267. dataset_name = 'freesurfer'
  268. data_dir = _get_dataset_dir(dataset_name, data_dir=data_dir,
  269. verbose=verbose)
  270. donors = check_donors(donors)
  271. files = [
  272. ('donor{}'.format(sub),
  273. url.format(sub),
  274. dict(uncompress=True,
  275. move=os.path.join('freesurfer.tar.gz')))
  276. for sub in donors
  277. ]
  278. files = _fetch_files(data_dir, files, resume=resume, verbose=verbose)
  279. return {
  280. donor: files[k]
  281. for k, donor in enumerate(donors)
  282. }
  283. def fetch_desikan_killiany(native=False, surface=False, *args, **kwargs):
  284. """
  285. Fetches Desikan-Killiany atlas shipped with `abagen`
  286. Parameters
  287. ----------
  288. native : bool, optional
  289. Whether to return individualized atlases in donor native space.
  290. Default: False
  291. surface : bool, optional
  292. Whether to return surface instead of volumetric parcellation. This
  293. option is currently incompatible with ``native=True``; instead, refer
  294. to :func:`abagen.datasets.fetch_freesurfer` for donor-specific surface
  295. atlases. Default: False
  296. Returns
  297. -------
  298. atlas : dict
  299. Dictionary with keys ['image', 'info'] pointing to atlas image and
  300. information files. If ``native`` then 'image' is a dictionary where
  301. keys are donor IDs and values are image paths. If ``surface`` then
  302. 'image' is a tuple of GIFTI files (.label.gii.gz)
  303. References
  304. ----------
  305. Desikan, R. S., Ségonne, F., Fischl, B., Quinn, B. T., Dickerson, B. C.,
  306. Blacker, D., ... & Albert, M. S. (2006). An automated labeling system
  307. for subdividing the human cerebral cortex on MRI scans into gyral based
  308. regions of interest. Neuroimage, 31(3), 968-980.
  309. Examples
  310. --------
  311. >>> import abagen
  312. >>> atlas = abagen.fetch_desikan_killiany()
  313. >>> print(atlas['image']) # doctest: +ELLIPSIS
  314. /.../abagen/data/atlas-desikankilliany.nii.gz
  315. >>> print(atlas['info']) # doctest: +ELLIPSIS
  316. /.../abagen/data/atlas-desikankilliany.csv
  317. When fetching native-space atlases, `atlas['image']` will be a dictionary
  318. where the keys are donor IDs and the values are paths to the donor-specific
  319. atlases:
  320. >>> atlas = abagen.fetch_desikan_killiany(native=True)
  321. >>> print(atlas['image'].keys())
  322. dict_keys(['9861', '10021', '12876', '14380', '15496', '15697'])
  323. >>> print(atlas['image']['9861']) # doctest: +ELLIPSIS
  324. /.../abagen/data/native_dk/9861/atlas-desikankilliany.nii.gz
  325. """
  326. # grab resource filenames
  327. img = dict()
  328. for donor in check_donors('all'):
  329. fp = 'data' if not native else os.path.join('data', 'native_dk', donor)
  330. if surface:
  331. impath = tuple([
  332. RESOURCE(
  333. os.path.join(fp, f'atlas-desikankilliany-{h}.label.gii.gz')
  334. )
  335. for h in ('lh', 'rh')
  336. ])
  337. else:
  338. impath = RESOURCE(os.path.join(fp, 'atlas-desikankilliany.nii.gz'))
  339. img[donor] = impath
  340. if not native:
  341. img = first_entry(img)
  342. info = RESOURCE('data/atlas-desikankilliany.csv')
  343. return dict(image=img, info=info)
  344. def fetch_gene_group(group):
  345. """
  346. Return list of gene acronyms belonging to provided `group`
  347. Groups are defined as in [DS1]_
  348. Parameters
  349. ----------
  350. group : {'brain', 'neuron', 'oligodendrocyte', 'synaptome', 'layers'}
  351. Desired gene group
  352. Returns
  353. -------
  354. genes : list of str
  355. List of gene acronyms
  356. References
  357. ----------
  358. .. [DS1] Burt, J. B., Demirtaş, M., Eckner, W. J., Navejar, N. M., Ji, J.
  359. L., Martin, W. J., ... & Murray, J. D. (2018). Hierarchy of
  360. transcriptomic specialization across human cortex captured by
  361. structural neuroimaging topography. Nature neuroscience, 21(9), 1251.
  362. """
  363. groups = ['brain', 'neuron', 'oligodendrocyte', 'synaptome', 'layers']
  364. if group.lower() not in groups:
  365. raise ValueError('Provided group {} not one of the available gene '
  366. 'groups: {}'.format(group, groups))
  367. group = group.lower()
  368. fn = RESOURCE(os.path.join('data', 'burt2018_natneuro.csv.gz'))
  369. genes = pd.read_csv(fn).query('group == "{}"'.format(group))['acronym']
  370. return sorted(list(genes))
  371. def fetch_donor_info():
  372. """
  373. Returns dataframe with donor demographic information
  374. Returns
  375. -------
  376. info : pandas.DataFrame
  377. With columns ['donor', 'age', 'sex', 'ethnicity', 'medical_conditions',
  378. 'post_mortem_interval_hours'] detailing basic demographic info about
  379. donors
  380. """
  381. fn = RESOURCE(os.path.join('data', 'donor_info.csv'))
  382. donors = pd.read_csv(fn)
  383. return donors
  384. Brain = namedtuple('Brain', ('lh', 'rh'))
  385. Surface = namedtuple('Surface', ('vertices', 'faces'))
  386. def fetch_fsaverage5(load=True):
  387. """
  388. Fetches and optionally loads fsaverage5 surface
  389. Parameters
  390. ----------
  391. load : bool, optional
  392. Whether to pre-load files. Default: True
  393. Returns
  394. -------
  395. brain : namedtuple ('lh', 'rh')
  396. If `load` is True, a namedtuple where each entry in the tuple is a
  397. hemisphere, represented as a namedtuple with fields ('vertices',
  398. 'faces'). If `load` is False, a namedtuple where entries are filepaths.
  399. """
  400. hemispheres = []
  401. for hemi in ('lh', 'rh'):
  402. fn = RESOURCE(
  403. os.path.join('data', f'fsaverage5-pial-{hemi}.surf.gii.gz')
  404. )
  405. if load:
  406. hemispheres.append(Surface(*load_gifti(fn).agg_data()))
  407. else:
  408. hemispheres.append(fn)
  409. return Brain(*hemispheres)
  410. def fetch_fsnative(donors, surf='pial', load=True, data_dir=None, resume=True,
  411. verbose=1):
  412. """
  413. Fetches and optionally loads fsnative surface of `donor`
  414. Parameters
  415. ----------
  416. donors : str or list-of-str
  417. Donor(s) to download; can be either donor number or UID. Can also
  418. specify 'all' to download all available donors.
  419. surf : {'orig', 'white', 'pial', 'inflated', 'sphere'}, optional
  420. Which surface to load. Default: 'pial'
  421. load : bool, optional
  422. Whether to pre-load files. Default: True
  423. data_dir : str, optional
  424. Directory where data should be downloaded and unpacked. Default: $HOME/
  425. abagen-data
  426. resume : bool, optional
  427. Whether to resume download of a partly-downloaded file. Default: True
  428. verbose : int, optional
  429. Verbosity level (0 means no message). Default: 1
  430. Returns
  431. -------
  432. brain : namedtuple ('lh', 'rh')
  433. If `load` is True, a namedtuple where each entry in the tuple is a
  434. hemisphere, represented as a namedtuple with fields ('vertices',
  435. 'faces'). If `load` is False, a namedtuple where entries are filepaths.
  436. If multiple donors are requested a dictionary is returned where keys
  437. are donor IDs.
  438. """
  439. donors = check_donors(donors)
  440. if len(donors) > 1:
  441. return {donor: fetch_fsnative(donor, surf, data_dir, resume, verbose)
  442. for donor in donors}
  443. donors = donors[0]
  444. fpath = fetch_freesurfer(donors=donors, data_dir=data_dir, resume=resume,
  445. verbose=verbose)[donors]
  446. hemispheres = []
  447. for hemi in ('lh', 'rh'):
  448. fn = os.path.join(fpath, 'surf', f'{hemi}.{surf}')
  449. if load:
  450. hemispheres.append(Surface(*nib.freesurfer.read_geometry(fn)))
  451. else:
  452. hemispheres.append(fn)
  453. return Brain(*hemispheres)

fetchers.py at commit dc4a007, under BSD-3-Clause · at the source

Overview

Authors: Xiaotong Wei1, Tingting Zhang1, Ronglong Xiong1, Qiuzhu Zhang1, Junjun Zhang1, Zhenlan Jin1, Ling Li1
ORCID iDs: Ling Li
  1. The Clinical Hospital of Chengdu Brain Science Institute, MOE Key Lab for Neuroinformation, School of Life Science and Technology, University of Electronic Science and Technology of China, Chengdu, 610054 China
Journal: Translational psychiatry, volume 16, issue 1, article 168
Dates: received 7 August 2025; accepted 1 February 2026; published online 2 March 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41398-026-03902-0 · PMID 41771832 · PMCID PMC13022452 · OpenAlex W7133209647
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), Alzheimer's / dementia (population)
Methods: Statistics, Machine learning, Smoothing, state filtering, decompositions, Preprocessing
Keywords: Diseases, Neuroscience
MeSH: Alzheimer Disease*, Brain*, Cognitive Dysfunction*, Gray Matter*, Aged, Aged, 80 and over, Amygdala, Brain Mapping, Cluster Analysis, Clustering Algorithms, Disease Progression, Female, Hippocampus, Humans, Magnetic Resonance Imaging, Male (* major topic)
Topic: Dementia and Cognitive Impairment Research (Psychiatry and Mental health, Medicine), according to OpenAlex
Funding: Sichuan Provincial Department of Science and Technology | Sichuan Province Science and Technology Support Program (2025ZNSFSC0453); National Natural Science Foundation of China (62571096); Sichuan Province Innovative Talent Funding Project for Postdoctoral Fellows
Citations: cited by 2 papers (Europe PMC); 74 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 1 match between paragraphs and lines of code.

rmarkello/abagen

License: BSD-3-Clause
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: dc4a007e4e902e51f97251390c8d1bbf7e58c6d3, 29 September 2023
Languages: Python (52), Shell (1)
Size: 130 files, 53 scripts
Software Heritage: archived
Found in: the text, “Transcriptomic analysis”
Holds: README, license file, environment (requirements.txt, setup.cfg, setup.py, docs/requirements.txt), tests, continuous integration, documentation
Not found: CITATION.cff
Tools: NumPy (23 files), pandas (22 files), abagen (20 files), NiBabel (11 files), SciPy (7 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
55 files

amarquand/PCNtoolkit

License: GPL-3.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 73b19a0f900138281d3a29b9514f2cfc631662af, 25 September 2026
Languages: Python (88), Jupyter (33)
Size: 275 files, 121 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, license file, CITATION.cff, environment (pyproject.toml, doc/requirements.txt), tests, continuous integration, documentation, 33 notebooks
Tools: NumPy (66 files), pandas (41 files), Matplotlib (34 files), seaborn (28 files), xarray (20 files), SciPy (13 files), PyMC (10 files), scikit-learn (9 files), ArviZ (5 files), NiBabel (1 file), Connectome Workbench (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
123 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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 174 scripts, each with its path and the digest of its content;
  • 1 match 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.

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/s41398-026-03902-0.

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, 7 authors, 2 keywords, 16 MeSH terms, 3 funders, 70 references.

Cite

This paper

Wei, X., Zhang, T., Xiong, R., Zhang, Q., Zhang, J., Jin, Z., & Li, L. (2026). Mapping heterogeneous brain structural subtypes in alzheimer's disease and mild cognitive impairment using normative models. Translational psychiatry, 16(1), 168. https://doi.org/10.1038/s41398-026-03902-0

BibTeX

@article{wei2026mapping,
author = {Wei, Xiaotong and Zhang, Tingting and Xiong, Ronglong and Zhang, Qiuzhu and Zhang, Junjun and Jin, Zhenlan and Li, Ling},
title = {{Mapping heterogeneous brain structural subtypes in alzheimer's disease and mild cognitive impairment using normative models}},
journal = {Translational psychiatry},
year = {2026},
month = mar,
volume = {16},
number = {1},
pages = {168},
publisher = {Nature Publishing Group},
issn = {2158-3188},
doi = {10.1038/s41398-026-03902-0},
url = {https://doi.org/10.1038/s41398-026-03902-0},
pmid = {41771832},
pmcid = {PMC13022452}
}

RIS

TY - JOUR
AU - Wei, Xiaotong
AU - Zhang, Tingting
AU - Xiong, Ronglong
AU - Zhang, Qiuzhu
AU - Zhang, Junjun
AU - Jin, Zhenlan
AU - Li, Ling
TI - Mapping heterogeneous brain structural subtypes in alzheimer's disease and mild cognitive impairment using normative models
T2 - Translational psychiatry
J2 - Transl Psychiatry
PY - 2026
DA - 2026/03/02
VL - 16
IS - 1
SP - 168
SN - 2158-3188
PB - Nature Publishing Group
DO - 10.1038/s41398-026-03902-0
UR - https://doi.org/10.1038/s41398-026-03902-0
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41398-026-03902-0",
"type": "article-journal",
"title": "Mapping heterogeneous brain structural subtypes in alzheimer's disease and mild cognitive impairment using normative models",
"container-title": "Translational psychiatry",
"author": [
{
"family": "Wei",
"given": "Xiaotong"
},
{
"family": "Zhang",
"given": "Tingting"
},
{
"family": "Xiong",
"given": "Ronglong"
},
{
"family": "Zhang",
"given": "Qiuzhu"
},
{
"family": "Zhang",
"given": "Junjun"
},
{
"family": "Jin",
"given": "Zhenlan"
},
{
"family": "Li",
"given": "Ling"
}
],
"container-title-short": "Transl Psychiatry",
"volume": "16",
"issue": "1",
"page": "168",
"DOI": "10.1038/s41398-026-03902-0",
"PMID": "41771832",
"PMCID": "PMC13022452",
"ISSN": "2158-3188",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41398-026-03902-0",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
2
]
]
}
}

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.1162/imag.a.1269 [code]
From early to contemporary normative modeling: Mapping individual differences in neurophysiological signals.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: ArviZ, PyMC, xarray, 7 other tools, 8 references
[2] doi:10.1038/s41467-026-72940-5 [code]
Cerebellar growth is associated with domain-specific cerebral maturation and socio-linguistic behavior.
Journal: Nature communications
In common: ArviZ, PyMC, xarray, 8 other tools, 1 reference
[3] doi:10.7554/elife.100605 [code]
Age-related changes in ‘cortical’ 1/f dynamics are linked to cardiac activity
Journal: n/a
In common: ArviZ, PyMC, seaborn, 5 other tools, 2 references
[4] doi:10.1371/journal.pcbi.1014340 [code]
pyhgf: A neural network library for predictive coding.
Journal: PLoS computational biology
In common: ArviZ, PyMC, xarray, 6 other tools
[5] doi:10.1038/s41467-026-74153-2 [code]
Regional, functional and transcriptomic decoding of multidimensional brain structure alterations in obsessive-compulsive disorder.
Journal: Nature communications
In common: abagen, Connectome Workbench, NiBabel, 5 other tools, 2 references
[6] doi:10.1371/journal.pmed.1004809 [code]
Brain morphology in Anorexia Nervosa and its subtypes: A multi-cohort study of individual participant data.
Journal: PLoS medicine
In common: abagen, NiBabel, seaborn, 5 other tools, structural MRI / diffusion, 2 references
[7] 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: abagen, NiBabel, seaborn, 5 other tools, structural MRI / diffusion, 2 references
[8] doi:10.1093/braincomms/fcag176 [code]
Tau topography subtypes account for clinical heterogeneity and longitudinal trajectories in early-onset Alzheimer's disease.
Journal: Brain communications
In common: seaborn, scikit-learn, pandas, 3 other tools, Alzheimer's / dementia, 4 references
[9] doi:10.3389/fneur.2026.1815799 [code]
Gray matter volume alterations in adolescents with ADHD are associated with cell type-specific transcriptional signatures.
Journal: Frontiers in neurology
In common: PyMC, NiBabel, seaborn, 5 other tools, structural MRI / diffusion, 2 references
[10] doi:10.1038/s41591-026-04287-9 [code]
An international mega-analysis of psychedelic drug effects on brain circuit function.
Journal: Nature medicine
In common: ArviZ, PyMC, NiBabel, 6 other tools

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.