OSCR

Gray matter volume alterations in adolescents with ADHD are associated with cell type-specific transcriptional signatures.

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.

One block of code here has 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 1 match
  1. [1] § Methods › Gene expression data preprocessing ↔ alleninf/scripts.py, lines 33 to 107 · score 0.74 · MNI coordinates, Allen Human Brain, available gene expression, radius, probes, discarding · block oscr:b:PJ5HFG3T5PTJS-L · 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 · 111 lines · 5.5 KB · BSD-3-Clause · 1 match

  1. #!/usr/bin/env python
  2. import argparse
  3. import os
  4. import numpy as np
  5. import pandas as pd
  6. import nibabel as nb
  7. from alleninf.api import get_probes_from_genes,\
  8. get_expression_values_from_probe_ids, get_mni_coordinates_from_wells
  9. from alleninf.data import get_values_at_locations, combine_expression_values
  10. from alleninf.analysis import fixed_effects, approximate_random_effects,\
  11. bayesian_random_effects
  12. def nifti_file(string):
  13. if not os.path.exists(string):
  14. msg = "%r does not exist" % string
  15. raise argparse.ArgumentTypeError(msg)
  16. try:
  17. nii = nb.load(string)
  18. except IOError as e:
  19. raise argparse.ArgumentTypeError(str(e))
  20. except:
  21. msg = "%r is not a nifti file" % string
  22. raise argparse.ArgumentTypeError(msg)
  23. else:
  24. if len(nii.shape) == 4 and nii.shape[3] > 1:
  25. msg = "%r is four dimensional" % string
  26. raise argparse.ArgumentTypeError(msg)
  27. return string
  28. def main():
  29. parser = argparse.ArgumentParser(
  30. description="Compare a statistical map with gene expression patterns from Allen Human Brain Atlas.")
  31. parser.add_argument(
  32. "stat_map", help="Unthresholded statistical map in the form of a 3D NIFTI file (.nii or .nii.gz) in MNI space.", type=nifti_file)
  33. parser.add_argument("gene_name", help="Name of the gene you want to compare your map with. For list of all available genes see: "
  34. "http://help.brain-map.org/download/attachments/2818165/HBA_ISH_GeneList.pdf?version=1&modificationDate=1348783035873.",
  35. type=str)
  36. parser.add_argument("--inference_method", help="Which model to use: fixed - fixed effects, approximate_random - approximate random effects (default), "
  37. "bayesian_random - Bayesian hierarchical model (requires PyMC3).",
  38. default="approximate_random")
  39. parser.add_argument("--n_samples", help="(Bayesian hierarchical model) Number of samples for MCMC model estimation (default 2000).",
  40. default=2000, type=int)
  41. parser.add_argument("--n_burnin", help="(Bayesian hierarchical model) How many of the first samples to discard (default 500).",
  42. default=500, type=float)
  43. parser.add_argument("--probes_reduction_method", help="How to combine multiple probes: average (default) or pca - use first principal component (requires scikit-learn).",
  44. default="average")
  45. parser.add_argument("--mask", help="Explicit mask for the analysis in the form of a 3D NIFTI file (.nii or .nii.gz) in the same space and "
  46. "dimensionality as the stat_map. If not specified an implicit mask (non zero and non NaN voxels) will be used.",
  47. type=nifti_file)
  48. parser.add_argument("--radius", help="Radius in mm of of the sphere used to average statistical values at the location of each probe (default: 4mm).",
  49. default=4, type=float)
  50. parser.add_argument("--probe_exclusion_keyword", help="If the probe name includes this string the probe will not be used.",
  51. type=str)
  52. args = parser.parse_args()
  53. print "Fetching probe ids for gene %s" % args.gene_name
  54. probes_dict = get_probes_from_genes(args.gene_name)
  55. print "Found %s probes: %s" % (len(probes_dict), ", ".join(probes_dict.values()))
  56. if args.probe_exclusion_keyword:
  57. probes_dict = {probe_id: probe_name for (probe_id, probe_name) in probes_dict.iteritems() if not args.probe_exclusion_keyword in probe_name}
  58. print "Probes after applying exclusion cryterion: %s" % (", ".join(probes_dict.values()))
  59. print "Fetching expression values for probes %s" % (", ".join(probes_dict.values()))
  60. expression_values, well_ids, donor_names = get_expression_values_from_probe_ids(
  61. probes_dict.keys())
  62. print "Found data from %s wells sampled across %s donors" % (len(well_ids), len(set(donor_names)))
  63. print "Combining information from selected probes"
  64. combined_expression_values = combine_expression_values(
  65. expression_values, method=args.probes_reduction_method)
  66. print "Translating locations of the wells to MNI space"
  67. mni_coordinates = get_mni_coordinates_from_wells(well_ids)
  68. print "Checking values of the provided NIFTI file at well locations"
  69. nifti_values = get_values_at_locations(
  70. args.stat_map, mni_coordinates, mask_file=args.mask, radius=args.radius, verbose=True)
  71. # preparing the data frame
  72. names = ["NIFTI values", "%s expression" % args.gene_name, "donor ID"]
  73. data = pd.DataFrame(np.array(
  74. [nifti_values, combined_expression_values, donor_names]).T, columns=names)
  75. data = data.convert_objects(convert_numeric=True)
  76. len_before = len(data)
  77. data.dropna(axis=0, inplace=True)
  78. nans = len_before - len(data)
  79. if nans > 0:
  80. print "%s wells fall outside of the mask" % nans
  81. if args.inference_method == "fixed":
  82. print "Performing fixed effect analysis"
  83. fixed_effects(data, ["NIFTI values", "%s expression" % args.gene_name])
  84. if args.inference_method == "approximate_random":
  85. print "Performing approximate random effect analysis"
  86. approximate_random_effects(
  87. data, ["NIFTI values", "%s expression" % args.gene_name], "donor ID")
  88. if args.inference_method == "bayesian_random":
  89. print "Fitting Bayesian hierarchical model"
  90. bayesian_random_effects(
  91. data, ["NIFTI values", "%s expression" % args.gene_name], "donor ID", args.n_samples, args.n_burnin)
  92. if __name__ == '__main__':
  93. main()

scripts.py at commit bc6c8f4, under BSD-3-Clause · at the source

Overview

Authors: Meng Chen1, Renhao Zhang2, Zhongtian Chen3, Kai Wu4, Hui Wang3, Haitao Yu3
  1. Department of Medical lmaging, Luoyang Maternal and Child Health Hospital, Luoyang, China
  2. Department of Neurosurgery, First Affiliated Hospital of Bengbu Medical College, Bengbu, Anhui, China
  3. Department of Pediatric Surgery, Luoyang Maternal and Child Health Hospital, Luoyang, China
  4. Department of Pediatrics, Huangshan City People's Hospital, Huangshan City, China
Journal: Frontiers in neurology, volume 17, article 1815799
Dates: received 23 February 2026; accepted 7 May 2026; published online 29 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.3389/fneur.2026.1815799 · PMID 42293076 · PMCID PMC13260793 · OpenAlex W7162778401
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: structural MRI / diffusion (modality), human (organism), ADHD (population)
Methods: Statistics, Machine learning, Preprocessing, fMRI & imaging, Smoothing, state filtering, decompositions
Keywords: attention-deficit/hyperactivity disorder, enrichment analyses, gray matter volume, machine learning, transcriptional
Topic: Attention Deficit Hyperactivity Disorder (Psychiatry and Mental health, Medicine), according to OpenAlex
Citations: not cited yet (Europe PMC); 30 references in the paper

Abstract

Objective: Attention-deficit/hyperactivity disorder (ADHD) is characterized by atypical brain development, yet the molecular and cellular mechanisms underlying its characteristic gray matter volume (GMV) alterations remain poorly understood. This study aimed to integrate neuroimaging and transcriptomic data to identify cell-type-specific transcriptional signatures associated with GMV changes in adolescents with ADHD.

Methods: Voxel-based morphometry was performed on structural MRI data from 27 adolescents with ADHD and 34 typically developing (TD) controls to map regional GMV differences. The spatial pattern of these alterations was then correlated with whole-brain gene expression profiles from the Allen Human Brain Atlas using partial least squares (PLS) regression. Functional and cell-type enrichment analyses were conducted on significant gene sets. Finally, three machine-learning models (support vector machine, random forest, and decision tree) were developed to evaluate the diagnostic utility of GMV changes.

Results: Increased GMV was observed in the bilateral precuneus, and decreased GMV was found in the left middle occipital gyrus and orbital part of the right inferior frontal gyrus in ADHD compared to TD. The spatial distribution of these GMV changes was significantly correlated with a specific gene expression pattern. Functional enrichment analysis revealed that positively correlated genes were involved in fundamental cellular processes, while negatively correlated genes were associated with synaptic organization and brain development. Cell-type analysis demonstrated significant enrichment of positively correlated genes in microglia, and negatively correlated genes in excitatory and inhibitory neurons. Random Forest achieved the highest accuracy in distinguishing between ADHD and TD (AUC = 0.871 ± 0.029).

Conclusion: In summary, this study provides unique insights into the brain structural development of attention-deficit/hyperactivity disorder (ADHD) and offers new perspectives for the future diagnosis and treatment of ADHD.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.

chrisfilo/alleninf

License: BSD-3-Clause
State: the link answers, verified on 1 November 2026
Evidence: files inventoried
Commit: bc6c8f41f84e420b2d0009ae207eced0f5324017, 7 September 2018
Languages: Python (8)
Size: 15 files, 8 scripts
Software Heritage: archived
Found in: the text, “Gene expression data preprocessing”
Holds: README, license file, environment (requirements.txt, setup.py)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: NumPy (7 files), pandas (5 files), NiBabel (4 files), scikit-learn (3 files), SciPy (3 files), Matplotlib (2 files), seaborn (2 files), PyMC (1 file)
Availability: 2 checks, the latest on 1 November 2026: the link answers
  • 1 November 2026: the link answers
  • 28 September 2026: the link answers
10 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:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 8 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

Datasets cited

Data availability statement

Publicly available datasets were analyzed in this study. This data can be found here: The data from the Penn Longitudinal Executive Functioning in Adolescent Development (Penn LEAD) study used in this research are publicly available on OpenNeuro (https://openneuro.org/datasets/ds007116). All supporting data (e.g., statistical/analytic code) are available upon reasonable request.

Reproduced under the paper's license (CC BY), from the paper cited above.

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 2, 28 September 2026

  • Funding: added University of Pennsylvania

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 6 authors, 5 keywords, 30 references.

Cite

This paper

Chen, M., Zhang, R., Chen, Z., Wu, K., Wang, H., & Yu, H. (2026). Gray matter volume alterations in adolescents with ADHD are associated with cell type-specific transcriptional signatures. Frontiers in neurology, 17, 1815799. https://doi.org/10.3389/fneur.2026.1815799

BibTeX

@article{chen2026gray,
author = {Chen, Meng and Zhang, Renhao and Chen, Zhongtian and Wu, Kai and Wang, Hui and Yu, Haitao},
title = {{Gray matter volume alterations in adolescents with ADHD are associated with cell type-specific transcriptional signatures}},
journal = {Frontiers in neurology},
year = {2026},
month = may,
volume = {17},
pages = {1815799},
publisher = {Frontiers Media SA},
issn = {1664-2295},
doi = {10.3389/fneur.2026.1815799},
url = {https://doi.org/10.3389/fneur.2026.1815799},
pmid = {42293076},
pmcid = {PMC13260793}
}

RIS

TY - JOUR
AU - Chen, Meng
AU - Zhang, Renhao
AU - Chen, Zhongtian
AU - Wu, Kai
AU - Wang, Hui
AU - Yu, Haitao
TI - Gray matter volume alterations in adolescents with ADHD are associated with cell type-specific transcriptional signatures
T2 - Frontiers in neurology
J2 - Front Neurol
PY - 2026
DA - 2026/05/29
VL - 17
SP - 1815799
SN - 1664-2295
PB - Frontiers Media SA
DO - 10.3389/fneur.2026.1815799
UR - https://doi.org/10.3389/fneur.2026.1815799
LA - en
ER -

CSL-JSON

{
"id": "10.3389/fneur.2026.1815799",
"type": "article-journal",
"title": "Gray matter volume alterations in adolescents with ADHD are associated with cell type-specific transcriptional signatures",
"container-title": "Frontiers in neurology",
"author": [
{
"family": "Chen",
"given": "Meng"
},
{
"family": "Zhang",
"given": "Renhao"
},
{
"family": "Chen",
"given": "Zhongtian"
},
{
"family": "Wu",
"given": "Kai"
},
{
"family": "Wang",
"given": "Hui"
},
{
"family": "Yu",
"given": "Haitao"
}
],
"container-title-short": "Front Neurol",
"volume": "17",
"page": "1815799",
"DOI": "10.3389/fneur.2026.1815799",
"PMID": "42293076",
"PMCID": "PMC13260793",
"ISSN": "1664-2295",
"publisher": "Frontiers Media SA",
"URL": "https://doi.org/10.3389/fneur.2026.1815799",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
29
]
]
}
}

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.1017/s003329172610405x [code]
Cortical morphometric inverse divergence in attention-deficit/hyperactivity disorder correlates with cell-type-specific, laminar-specific and developmental transcriptomic signatures.
Journal: Psychological medicine
In common: NiBabel, pandas, SciPy, 2 other tools, ADHD, structural MRI / diffusion, 6 references
[2] doi:10.1038/s41398-025-03715-7 [code]
Dynamic changes in hemispheric lateralization in major depressive disorder correlate with neurotransmitter and genetic profiles: a DIRECT consortium study.
Journal: Translational psychiatry
In common: NiBabel, seaborn, scikit-learn, 4 other tools, 7 references
[3] doi:10.1002/hbm.26485 [code]
Compressed primary-to-transmodal gradient is accompanied with subcortical alterations and linked to neurotransmitters and cellular signatures in major depressive disorder.
Journal: Human brain mapping
In common: PyMC, NiBabel, seaborn, 5 other tools, 3 references
[4] doi:10.1038/s41467-026-71923-w [code]
Integrating optogenetic fMRI and spatial transcriptomics to reveal circuit-specific gene signatures in fronto- and hippo-thalamic networks.
Journal: Nature communications
In common: NiBabel, seaborn, scikit-learn, 4 other tools, 5 references
[5] doi:10.1111/cns.14901 [code]
Transcriptional expression patterns of the cortical morphometric similarity network in progressive supranuclear palsy.
Journal: CNS neuroscience & therapeutics
In common: NiBabel, pandas, SciPy, 1 other tool, structural MRI / diffusion, 6 references
[6] doi:10.1038/s41593-026-02236-w [code]
Organization of neuropeptide systems in the human brain.
Journal: Nature neuroscience
In common: PyMC, NiBabel, seaborn, 5 other tools, 3 references
[7] doi:10.1186/s12916-024-03714-3 [code]
Structure-function coupling changes in first-episode, treatment-naïve schizophrenia correlate with cell type-specific transcriptional signature.
Journal: BMC medicine
In common: NiBabel, pandas, SciPy, 1 other tool, 7 references
[8] doi:10.1038/s41398-026-03902-0 [code]
Mapping heterogeneous brain structural subtypes in alzheimer's disease and mild cognitive impairment using normative models.
Journal: Translational psychiatry
In common: PyMC, NiBabel, seaborn, 5 other tools, structural MRI / diffusion, 2 references
[9] doi:10.1038/s41593-023-01404-6 [code]
Regional, circuit and network heterogeneity of brain abnormalities in psychiatric disorders.
Journal: Nature neuroscience
In common: PyMC, NiBabel, seaborn, 5 other tools, ADHD, structural MRI / diffusion, 1 reference
[10] doi:10.1186/s13195-025-01934-0 [code]
Specific genetic and biological patterns underlying cortical morphological alterations in vascular cognitive impairment.
Journal: Alzheimer's research & therapy
In common: NiBabel, seaborn, scikit-learn, 4 other tools, 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.

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.3389/fneur.2026.1815799.svg)](https://openscicode.org/badge/doi/10.3389/fneur.2026.1815799)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.3389/fneur.2026.1815799.svg
   :target: https://openscicode.org/badge/doi/10.3389/fneur.2026.1815799
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3389/fneur.2026.1815799"><img src="https://openscicode.org/badge/doi/10.3389/fneur.2026.1815799.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.