Translating brain anatomy and disease from mouse to human in latent gene expression space.
The 1 match
- [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
- #!/usr/bin/env python
- import argparse
- import os
- import numpy as np
- import pandas as pd
- import nibabel as nb
- from alleninf.api import get_probes_from_genes,\
- get_expression_values_from_probe_ids, get_mni_coordinates_from_wells
- from alleninf.data import get_values_at_locations, combine_expression_values
- from alleninf.analysis import fixed_effects, approximate_random_effects,\
- bayesian_random_effects
- def nifti_file(string):
- if not os.path.exists(string):
- msg = "%r does not exist" % string
- raise argparse.ArgumentTypeError(msg)
- try:
- nii = nb.load(string)
- except IOError as e:
- raise argparse.ArgumentTypeError(str(e))
- except:
- msg = "%r is not a nifti file" % string
- raise argparse.ArgumentTypeError(msg)
- else:
- if len(nii.shape) == 4 and nii.shape[3] > 1:
- msg = "%r is four dimensional" % string
- raise argparse.ArgumentTypeError(msg)
- return string
- def main():
- parser = argparse.ArgumentParser(
- description="Compare a statistical map with gene expression patterns from Allen Human Brain Atlas.")
- parser.add_argument(
- "stat_map", help="Unthresholded statistical map in the form of a 3D NIFTI file (.nii or .nii.gz) in MNI space.", type=nifti_file)
- parser.add_argument("gene_name", help="Name of the gene you want to compare your map with. For list of all available genes see: "
- "http://help.brain-map.org/download/attachments/2818165/HBA_ISH_GeneList.pdf?version=1&modificationDate=1348783035873.",
- type=str)
- parser.add_argument("--inference_method", help="Which model to use: fixed - fixed effects, approximate_random - approximate random effects (default), "
- "bayesian_random - Bayesian hierarchical model (requires PyMC3).",
- default="approximate_random")
- parser.add_argument("--n_samples", help="(Bayesian hierarchical model) Number of samples for MCMC model estimation (default 2000).",
- default=2000, type=int)
- parser.add_argument("--n_burnin", help="(Bayesian hierarchical model) How many of the first samples to discard (default 500).",
- default=500, type=float)
- parser.add_argument("--probes_reduction_method", help="How to combine multiple probes: average (default) or pca - use first principal component (requires scikit-learn).",
- default="average")
- 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 "
- "dimensionality as the stat_map. If not specified an implicit mask (non zero and non NaN voxels) will be used.",
- type=nifti_file)
- 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).",
- default=4, type=float)
- parser.add_argument("--probe_exclusion_keyword", help="If the probe name includes this string the probe will not be used.",
- type=str)
- args = parser.parse_args()
- print "Fetching probe ids for gene %s" % args.gene_name
- probes_dict = get_probes_from_genes(args.gene_name)
- print "Found %s probes: %s" % (len(probes_dict), ", ".join(probes_dict.values()))
- if args.probe_exclusion_keyword:
- probes_dict = {probe_id: probe_name for (probe_id, probe_name) in probes_dict.iteritems() if not args.probe_exclusion_keyword in probe_name}
- print "Probes after applying exclusion cryterion: %s" % (", ".join(probes_dict.values()))
- print "Fetching expression values for probes %s" % (", ".join(probes_dict.values()))
- expression_values, well_ids, donor_names = get_expression_values_from_probe_ids(
- probes_dict.keys())
- print "Found data from %s wells sampled across %s donors" % (len(well_ids), len(set(donor_names)))
- print "Combining information from selected probes"
- combined_expression_values = combine_expression_values(
- expression_values, method=args.probes_reduction_method)
- print "Translating locations of the wells to MNI space"
- mni_coordinates = get_mni_coordinates_from_wells(well_ids)
- print "Checking values of the provided NIFTI file at well locations"
- nifti_values = get_values_at_locations(
- args.stat_map, mni_coordinates, mask_file=args.mask, radius=args.radius, verbose=True)
- # preparing the data frame
- names = ["NIFTI values", "%s expression" % args.gene_name, "donor ID"]
- data = pd.DataFrame(np.array(
- [nifti_values, combined_expression_values, donor_names]).T, columns=names)
- data = data.convert_objects(convert_numeric=True)
- len_before = len(data)
- data.dropna(axis=0, inplace=True)
- nans = len_before - len(data)
- if nans > 0:
- print "%s wells fall outside of the mask" % nans
- if args.inference_method == "fixed":
- print "Performing fixed effect analysis"
- fixed_effects(data, ["NIFTI values", "%s expression" % args.gene_name])
- if args.inference_method == "approximate_random":
- print "Performing approximate random effect analysis"
- approximate_random_effects(
- data, ["NIFTI values", "%s expression" % args.gene_name], "donor ID")
- if args.inference_method == "bayesian_random":
- print "Fitting Bayesian hierarchical model"
- bayesian_random_effects(
- data, ["NIFTI values", "%s expression" % args.gene_name], "donor ID", args.n_samples, args.n_burnin)
- if __name__ == '__main__':
- main()
scripts.py at commit bc6c8f4, under BSD-3-Clause · at the source
Overview
- 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
- Sir Peter Mansfield Imaging Centre, School of Medicine, University of Nottingham, Nottingham, United Kingdom
- Holland Bloorview Kids Rehabilitation Hospital, Toronto, Ontario, Canada
- The Hospital for Sick Children, Canada
- Mouse Imaging Centre, Canada
- Department of Medical Biophysics, University of Toronto, Canada
- Mental Health and Clinical Neurosciences, School of Medicine, University of Nottingham, Nottingham, United Kingdom
- NIHR Nottingham Biomedical Research Centre, Queen's Medical Centre, Nottingham University Hospitals (NUH) NHS Trust, Nottingham, United Kingdom
- Donders Institute for Brain, Cognition and Behaviour, Radboud University Nijmegen, Nijmegen, the Netherlands
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
bc6c8f41f84e420b2d0009ae207eced0f5324017, 7 September 2018Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
10 files
- alleninf/
__init__.py , Python, 1 line - alleninf/
analysis.py , Python, 97 lines - alleninf/
api.py , Python, 99 lines - alleninf/
data.py , Python, 86 lines - alleninf/
datasets.py , Python, 563 lines - alleninf/
scripts.py , Python, 111 lines, 1 match - alleninf/
utils.py , Python, 34 lines - setup.py, Python, 81 lines
- LICENSE, License, 29 lines
- README.md, Text, 89 lines
git.fmrib.ox.ac.uk/neuroecologylab/dl_mouse_human
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:
- it points to the authors' code: git.fmrib.ox.ac.uk/
neuroecologylab/ dl_mouse_human
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://
BibTeX
@article{jaroszynski2026
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/
url = {https://
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/
VL - 127
SP - 106259
SN - 2352-3964
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"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":
"volume": "127",
"page": "106259",
"DOI": "10.1016/
"PMID": "42034047",
"PMCID": "PMC13127620",
"ISSN": "2352-3964",
"publisher": "Elsevier",
"URL": "https://
"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 neuroscienceIn 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 AmericaIn 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 biologyIn 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 communicationsIn 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 medicineIn 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 communicationsIn 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 neuroscienceIn 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 neurologyIn 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 methodsIn 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 bioinformaticsIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 8 scripts, and 1 match between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:11aba3e5bb9e64bb…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
