OSCR

Translating brain anatomy and disease from mouse to human in latent gene expression space.

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] § Methods › Model application › Cross-species translation of gene expression PCA ↔ alleninf/scripts.py, lines 33–107 · score 0.52 · scikit learn, principal component, gene expression, masked, PCA, maps

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 · 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: Chloe Jaroszynski1, Mohammed Amer2, Antoine Beauchamp3, Jason P. Lerch1,4,5,6, Stamatios N. Sotiropoulos2,7,8, Rogier B. Mars1,9
  1. Oxford University Centre for Integrative Neuroimaging, Centre for Functional MRI of the Brain (FMRIB), Nuffield Department of Clinical Neurosciences, University of Oxford, Oxford, United Kingdom
  2. Sir Peter Mansfield Imaging Centre, School of Medicine, University of Nottingham, Nottingham, United Kingdom
  3. Holland Bloorview Kids Rehabilitation Hospital, Toronto, Ontario, Canada
  4. The Hospital for Sick Children, Canada
  5. Mouse Imaging Centre, Canada
  6. Department of Medical Biophysics, University of Toronto, Canada
  7. Mental Health and Clinical Neurosciences, School of Medicine, University of Nottingham, Nottingham, United Kingdom
  8. NIHR Nottingham Biomedical Research Centre, Queen's Medical Centre, Nottingham University Hospitals (NUH) NHS Trust, Nottingham, United Kingdom
  9. Donders Institute for Brain, Cognition and Behaviour, Radboud University Nijmegen, Nijmegen, the Netherlands
Journal: EBioMedicine, volume 127, article 106259
Dates: received 8 July 2025; accepted 1 April 2026; published online 24 April 2026; in print May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1016/j.ebiom.2026.106259 · PMID 42034047 · PMCID PMC13127620 · OpenAlex W7155548924
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), human (organism), mouse (organism), other condition (population), Alzheimer's / dementia (population)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, fMRI & imaging
Keywords: Cross-species translation, Spatial transcriptomics, Neurodegenerative disease, Mouse-human anatomy, Translational neuroscience, Alzheimer's disease
MeSH: Brain*, Neurodegenerative Diseases*, Transcriptome*, Alzheimer Disease, Animals, Autoencoder, Disease Models, Animal, Gene Expression Profiling, Humans, Mice, Spatial Transcriptomics, Translational Research, Biomedical (* major topic)
Topic: Pluripotent Stem Cells Research (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Citations: not cited yet (Europe PMC); 57 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.

chrisfilo/alleninf

License: BSD-3-Clause
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: bc6c8f41f84e420b2d0009ae207eced0f5324017, 7 September 2018
Languages: Python (8)
Size: 15 files, 8 scripts
Software Heritage: archived
Found in: the text, “Human microarray expression data”
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: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
10 files

git.fmrib.ox.ac.uk/neuroecologylab/dl_mouse_human

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: the link answers
Software Heritage: not checked
Found in: “Data sharing statement”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)

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;
  • 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

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.1016/j.ebiom.2026.106259.

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, pages, dates, 6 authors, 6 keywords, 12 MeSH terms, 1 funder, 54 references.

Cite

This paper

Jaroszynski, C., Amer, M., Beauchamp, A., Lerch, J. P., Sotiropoulos, S. N., & Mars, R. B. (2026). Translating brain anatomy and disease from mouse to human in latent gene expression space. EBioMedicine, 127, 106259. https://doi.org/10.1016/j.ebiom.2026.106259

BibTeX

@article{jaroszynski2026translating,
author = {Jaroszynski, Chloe and Amer, Mohammed and Beauchamp, Antoine and Lerch, Jason P. and Sotiropoulos, Stamatios N. and Mars, Rogier B.},
title = {{Translating brain anatomy and disease from mouse to human in latent gene expression space}},
journal = {EBioMedicine},
year = {2026},
month = apr,
volume = {127},
pages = {106259},
publisher = {Elsevier},
issn = {2352-3964},
doi = {10.1016/j.ebiom.2026.106259},
url = {https://doi.org/10.1016/j.ebiom.2026.106259},
pmid = {42034047},
pmcid = {PMC13127620}
}

RIS

TY - JOUR
AU - Jaroszynski, Chloe
AU - Amer, Mohammed
AU - Beauchamp, Antoine
AU - Lerch, Jason P.
AU - Sotiropoulos, Stamatios N.
AU - Mars, Rogier B.
TI - Translating brain anatomy and disease from mouse to human in latent gene expression space
T2 - EBioMedicine
J2 - EBioMedicine
PY - 2026
DA - 2026/04/24
VL - 127
SP - 106259
SN - 2352-3964
PB - Elsevier
DO - 10.1016/j.ebiom.2026.106259
UR - https://doi.org/10.1016/j.ebiom.2026.106259
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.ebiom.2026.106259",
"type": "article-journal",
"title": "Translating brain anatomy and disease from mouse to human in latent gene expression space",
"container-title": "EBioMedicine",
"author": [
{
"family": "Jaroszynski",
"given": "Chloe"
},
{
"family": "Amer",
"given": "Mohammed"
},
{
"family": "Beauchamp",
"given": "Antoine"
},
{
"family": "Lerch",
"given": "Jason P."
},
{
"family": "Sotiropoulos",
"given": "Stamatios N."
},
{
"family": "Mars",
"given": "Rogier B."
}
],
"container-title-short": "EBioMedicine",
"volume": "127",
"page": "106259",
"DOI": "10.1016/j.ebiom.2026.106259",
"PMID": "42034047",
"PMCID": "PMC13127620",
"ISSN": "2352-3964",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.ebiom.2026.106259",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
24
]
]
}
}

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/s41593-026-02205-3 [code]
Competitive interactions shape mammalian brain network dynamics and computation.
Journal: Nature neuroscience
In common: NiBabel, seaborn, scikit-learn, 4 other tools, mouse, 6 references
[2] doi:10.1073/pnas.2531706123 [code]
Metabolism-weighted brain connectome reveals synaptic integration and vulnerability to neurodegeneration.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: NiBabel, seaborn, scikit-learn, 4 other tools, other condition, 4 references
[3] doi:10.1038/s42003-025-09444-3 [code]
Decoupling of neurophysiological activity from structure mirrors global microarchitectural and neuromodulatory trends.
Journal: Communications biology
In common: NiBabel, scikit-learn, pandas, 3 other tools, 4 references
[4] doi:10.1038/s41467-026-75837-5 [code]
A hierarchical framework for cortical and subcortical gray-matter parcellation across rodents, primates, and humans.
Journal: Nature communications
In common: NiBabel, seaborn, pandas, 3 other tools, mouse, 3 references
[5] doi:10.1002/mrm.70336 [code]
Offline Reconstruction of Diffusion MRI Acquisitions for Comparison Between Complex PCA-Based and AI-Based Denoising.
Journal: Magnetic resonance in medicine
In common: NiBabel, seaborn, pandas, 3 other tools, author Stamatios N. Sotiropoulos
[6] 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: PyMC, NiBabel, seaborn, 5 other tools, 1 reference
[7] doi:10.1038/s41593-026-02253-9 [code]
Genoarchitecture and input-output organization of the mouse basal ganglia and thalamic parafascicular nucleus.
Journal: Nature neuroscience
In common: seaborn, scikit-learn, pandas, 3 other tools, mouse, 4 references
[8] 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, 1 reference
[9] doi:10.1038/s41592-026-03159-x [code]
Siibra: a software tool suite for realizing a Multilevel Human Brain Atlas from complex data resources.
Journal: Nature methods
In common: NiBabel, seaborn, scikit-learn, 4 other tools, 3 references
[10] doi:10.1186/s12859-026-06490-4 [code]
Tissueformer: extending single-cell foundation models to predict population-level phenotypes.
Journal: BMC bioinformatics
In common: seaborn, scikit-learn, pandas, 3 other tools, genetics / omics, other condition, mouse, 3 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

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