OSCR

Longitudinal MRI template of the baboon brain from birth to adolescence.

Code ↔ Paper

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

6 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 6 matches
  1. [1] § Methods › Multimodal template creation ↔ postprocessing/MM_template_construction.py, lines 13 to 132 · score 0.71 · antsMultivariateTemplateConstruction2.sh, pairwise registration, resampled, resolution, sharpening, iterative · block oscr:b:EFDWQWBVXXC6R-2 · Report a mismatch
  2. [2] § Methods › Multimodal template creation ↔ preprocessing/realign_subjects_2_Haiko89.py, lines 128 to 190 · score 0.61 · antsRegistration, shrink factor, Haiko89, smoothing, rigid, space · block oscr:b:14K19D63VDTAJ-W · Report a mismatch
  3. [3] § Methods › Tissue probability maps and binary brain mask generation ↔ postprocessing/correct_TPM.py, lines 44 to 168 · score 0.58 · corrected TPM, WM TPM, filling, BM, thresholding, CSF · block oscr:b:P589WZQV9WTHG-I · Report a mismatch
  4. [4] § Methods › Multimodal template creation ↔ postprocessing/antsMultivariateTemplateConstruction2.sh, lines 102 to 158 · score 0.57 · downsampled, correlation, pairwise, cross, shrink, voxel · block oscr:b:EDEN0REP21ZVW-9 · Report a mismatch
  5. [5] § Methods › Multimodal template creation ↔ postprocessing/register_long_templates.py, lines 106 to 155 · score 0.57 · antsRegistration, shrink factor, smoothing, rigid, transformation, T1w · block oscr:b:T51MZYSVAW6CX-I · Report a mismatch
  6. [6] § Methods › Alignment across timepoints ↔ postprocessing/sym_template.py, lines 226 to 295 · score 0.51 · registered template, rigid registration, propagate, symmetrical, flipped, temporary · block oscr:b:P002S0QMB6SZR-0 · 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 · 135 lines · 6 KB · no license · 1 match

  1. #!/usr/bin/env python3
  2. import argparse
  3. import os
  4. import subprocess
  5. import pandas as pd
  6. def run_command(cmd, dry_run=False, env=None, workdir=None, shell=False):
  7. print("Running:", " ".join(map(str, cmd)))
  8. if not dry_run:
  9. subprocess.run(cmd, check=True, env=env, shell=shell, cwd=workdir)
  10. def main():
  11. parser = argparse.ArgumentParser(description="Two-stage multivariate template construction with ANTs, BIDS-style outputs")
  12. parser.add_argument("-s", "--subject", required=True,help="Subject label (e.g. BaBa21)")
  13. parser.add_argument("-S", "--session", required=True,help="Session label (e.g. ses-0)")
  14. parser.add_argument("-b", "--bids-root", required=True,help="BIDS root folder")
  15. parser.add_argument("-j", "--jobs", type=int, default=12,help="Number of CPU cores to use (default: 12)")
  16. parser.add_argument("--modalities", nargs="+", required=True,help="List of modalities to look for (e.g., T1w T2w label-WM_mask)")
  17. parser.add_argument("--input-list-LR", required=True,help="CSV file with list of input NIfTI images for first stage")
  18. parser.add_argument("--LR-reg-metrics", default="MI",help="Type of similarity metric used for pairwise registration (MI by default)")
  19. parser.add_argument("--ite1", type=int, default=1,help="Number of iterations for Stage 1 (default: 1)")
  20. parser.add_argument("--q1", default="50x30x15",help="Steps for Stage 1 -q option (default: 50x30x15)")
  21. parser.add_argument("--w1", default="0.5x0.5x1",help="Weights for Stage 1 modalities (default: 0.5x0.5x1)" )
  22. parser.add_argument("--input-list-HR", required=True,help="CSV file with list of input NIfTI images for second stage")
  23. parser.add_argument("--HR-reg-metrics", default="CC",help="Type of similarity metric used for pairwise registration (CC by default)")
  24. parser.add_argument("--ite2", type=int, default=1,help="Number of iterations for Stage 2 (default: 1)")
  25. parser.add_argument("--q2", default="70x50x30",help="Steps for Stage 2 -q option (default: 70x50x30)")
  26. parser.add_argument("--w2", default="1x1x1",help="Weights for Stage 2 modalities (default: 1x1x1)")
  27. parser.add_argument('--res-HR', type=float, default=0.4, help="pixel resolution in mm (default: 0.4)")
  28. parser.add_argument('--dry-run', action="store_true", help="Print commands without executing them")
  29. args = parser.parse_args()
  30. # Load CSV and determine modalities count for stage 1
  31. df = pd.read_csv(args.input_list_LR)
  32. modalities = list(df.columns)
  33. modalities_count = len(modalities)
  34. res_HR = args.res_HR
  35. dry_run = args.dry_run
  36. LR_reg_metrics = args.LR_reg_metrics
  37. HR_reg_metrics = args.HR_reg_metrics
  38. print(f"[INFO] Detected {modalities_count} modalities: {modalities}")
  39. # Define output directories under BIDS derivatives/template
  40. derivatives_dir = os.path.join(args.bids_root, "derivatives", "template")
  41. subject_dir = f"sub-{args.subject}"
  42. session_dir = args.session
  43. output_base = os.path.join(derivatives_dir, subject_dir, session_dir)
  44. tmp_LR = os.path.join(output_base, "tmp_LR")
  45. tmp_HR = os.path.join(output_base, "tmp_HR")
  46. final_dir = os.path.join(output_base, "final")
  47. for d in [tmp_LR, tmp_HR, final_dir]:
  48. os.makedirs(d, exist_ok=True)
  49. print(f"[INFO] All outputs will go to: {output_base}")
  50. # Stage 1: low-resolution template building
  51. print(f"[INFO] Starting Stage 1: Low-resolution template construction")
  52. ants_script_path = os.path.join("$ANTSPATH", "antsMultivariateTemplateConstruction2.sh")
  53. run_command([
  54. f"{ants_script_path} "
  55. f"-d 3 -i {args.ite1} -k {modalities_count} -c 2 -j {args.jobs} "
  56. f"-f 4x2x1 -s 2x1x0vox -q {args.q1} "
  57. f"-w {args.w1} -t SyN -A 1 -n 0 -m {LR_reg_metrics} "
  58. f"-o {tmp_LR}/MY {args.input_list_LR}"
  59. ], dry_run, workdir='./', shell=True)
  60. print(f"[INFO] Resampling Stage 1 outputs to higher resolution at {res_HR} ")
  61. for i in range(modalities_count):
  62. in_file = os.path.join(tmp_LR, "intermediateTemplates", f"SyN_iteration{args.ite1 - 1}_MYtemplate{i}.nii.gz")
  63. out_file = os.path.join(tmp_HR, f"{args.subject}_{args.session}_SyN_iteration{args.ite1 - 1}_MYtemplate{i}.nii.gz")
  64. run_command([
  65. "mri_convert", "-i",
  66. f"{in_file}",
  67. "-o",
  68. f"{out_file}",
  69. "-vs", f"{res_HR}", f"{res_HR}", f"{res_HR}"
  70. ], dry_run)
  71. # Stage 2: high-resolution template building using resampled priors
  72. # Load CSV and determine modalities count for stage 2
  73. df = pd.read_csv(args.input_list_HR)
  74. modalities = list(df.columns)
  75. modalities_count = len(modalities)
  76. print(f"[INFO] Detected {modalities_count} modalities: {modalities}")
  77. print("[INFO] Starting Stage 2: High-resolution template construction")
  78. paths = [
  79. os.path.join(
  80. tmp_HR,
  81. f"{args.subject}_{args.session}_SyN_iteration{args.ite1 - 1}_MYtemplate{i}.nii.gz"
  82. )
  83. for i in range(modalities_count)
  84. ]
  85. z_opts = " ".join([f"-z {p}" for p in paths])
  86. run_command([
  87. f"{ants_script_path} "
  88. f"-d 3 -i {args.ite2} -k {modalities_count} -c 2 -j {args.jobs} "
  89. f"-f 4x2x1 -s 2x1x0vox -q {args.q2} "
  90. f"-t SyN -w {args.w2} {z_opts} -A 1 -n 0 -m {HR_reg_metrics} "
  91. f"-o {tmp_HR}/MY {args.input_list_HR}"
  92. ], dry_run , workdir='./', shell=True)
  93. # Copy final outputs with BIDS-style names
  94. print("[INFO] Copying final templates to BIDS-style outputs")
  95. i=0
  96. for modality in args.modalities:
  97. print(f"[INFO] modality {modality}")
  98. desc = f"desc-sharpen_{modality}"
  99. dst_name = f"sub-{args.subject}_{args.session}_{desc}.nii.gz"
  100. src = os.path.join(tmp_HR, "intermediateTemplates", f"SyN_iteration{args.ite2 - 1}_MYtemplate{i}.nii.gz")
  101. dst = os.path.join(final_dir, dst_name)
  102. run_command([f"cp -f {src} {dst}"], dry_run , workdir='./', shell=True)
  103. print(f"{dst}")
  104. i += 1
  105. print(f"[INFO] Template construction complete! Results in {final_dir}")
  106. if __name__ == "__main__":
  107. main()

MM_template_construction.py at commit c8f1d6f, no license · at the source

Overview

  1. Institute for Language, Communication, and the Brain, Aix-Marseille Univ, CNRS, Marseille, France
  2. Centre de Recherche en Psychologie et Neurosciences, Aix-Marseille Univ, CNRS, UMR 7077, Marseille, France
  3. Institut de Neurosciences de la Timone, Aix-Marseille Univ, CNRS, UMR 7289, Marseille, France
  4. Department of Neuropsychology, Max Planck Institute for Human Cognitive and Brain Sciences, Leipzig, Germany
  5. Lise Meitner Research Group Cognitive Neurogenetics, Max Planck Institute for Human Cognitive and Brain Sciences, Leipzig, Germany
  6. INRAE, CNRS, Université de Tours, PRC, 37380, Nouzilly, France
  7. Department of Psychology, National University of Singapore, Singapore
  8. Station de Primatologie, CNRS-CELPHEDIA UAR846, Rousset, France
Journal: Imaging neuroscience (Cambridge, Mass.), volume 4, article IMAG.a.1316
Dates: received 21 March 2025; accepted 2 July 2026; published online 30 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1162/imag.a.1316 · PMID 42569348 · PMCID PMC13449925 · OpenAlex W7167623147
Open access: diamond, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: structural MRI / diffusion (modality), human (organism), non-human primate (organism), developmental (subfield)
Methods: Connectivity, Machine learning
Keywords: structural imaging, comparative, primate, evolution, resource
Topic: Primate Behavior and Ecology (Ecology, Evolution, Behavior and Systematics, Agricultural and Biological Sciences), according to OpenAlex
Funding: European Commission (ERC-2016-STG, ANR-11-INBS-0006); Agence Nationale de la Recherche (ANR-11-656 IDEX-0001-02, ANR-16-CONV-0002, ANR-16, ANR-11-INBS, ANR-11-INBS-0006, ANR-23, IDEX-0001-02, ANR-23-CE28-0029); Fondation Fyssen; Centre National de la Recherche Scientifique (UMR 7289, ANR-11-INBS-0006); Horizon 2020 (716931 - GESTIMAGE - ERC-2016-STG)
Citations: not cited yet (Europe PMC); 52 references in the paper

Abstract

The baboon (Papio) is an invaluable resource within nonhuman primate research, having the advantage of being a cercopithecoid (Old World monkey) with one of the largest brains among non-hominid primates. In order to facilitate comparative developmental neuroscience research, we present the BABACOOL (BAby Brain Atlas COnstruction for Optimized Labeled segmentation) approach for creating multi-modal developmental atlases, which we used to produce BaBa21, a population-based longitudinal developmental baboon template. BaBa21 is a spatio-temporal template that consists of structural (T1- and T2-weighted) images and tissue probability maps from a population of 21 baboons (Papio anubis) scanned at 4 timepoints beginning from about 2 weeks after birth and continuing to sexual maturity (5 years). Further, this study offers a fully automatic method for generating a template at any intermediate age for future age-specific group studies. This resource is made available to provide a normalization target for baboon data across the lifespan, including intermediate timepoints, and moreover facilitate neuroimaging research in baboons, comparative research with humans and nonhuman primate species for which developmental templates are available (e.g., macaques).

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 6 matches between paragraphs and lines of code.

arnaudletroter/BABACOOL

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: c8f1d6fb9215236d6a1c563b62d312da57017978, 1 September 2026
Languages: Python (15), Shell (6), Jupyter (1)
Size: 237 files, 22 scripts
Software Heritage: not archived
Found in: “Data and Code Availability”
Holds: README, environment (Dockerfile, requirements.txt), 1 notebook
Not found: license file, CITATION.cff, tests, continuous integration, documentation
Tools: pandas (9 files), FSL (7 files), ANTs (4 files), Matplotlib (2 files), NiBabel (2 files), NumPy (2 files), Pillow (1 file), SciPy (1 file), seaborn (1 file), statannotations (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
23 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;
  • 22 scripts, each with its path and the digest of its content;
  • 6 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

Data and Code Availability

The full multimodal BABA21 dataset (BIDS formatted) containing all contrasts and TPMs is publicly available on the OpenNeuro platform (Dataset ds005424; Le Troter et al., 2025) at https://openneuro.org/datasets/ds005424. Source code for multimodal (4D+t) BaBa21 template generation and scripts for contrast normalization can be found at https://github.com/arnaudletroter/BABACOOL.

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 European Commission: ERC-2016-STG, ANR-11-INBS-0006; Agence Nationale de la Recherche: ANR-11-656 IDEX-0001-02, ANR-16-CONV-0002, ANR-16, ANR-11-INBS, ANR-11-INBS-0006, ANR-23, IDEX-0001-02, ANR-23-CE28-0029; Fondation Fyssen; Centre National de la Recherche Scientifique: UMR 7289, ANR-11-INBS-0006; Horizon 2020: 716931 - GESTIMAGE - ERC-2016-STG

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 11 authors, 5 keywords, 52 references.

Cite

This paper

Bryant, K. L., Le Troter, A., Meunier, D., Becker, Y., Love, S. A., Bouziane, S., Loh, K. K., Sein, J., Renaud, L., Coulon, O., & Meguerditchian, A. (2026). Longitudinal MRI template of the baboon brain from birth to adolescence. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1316. https://doi.org/10.1162/imag.a.1316

BibTeX

@article{bryant2026longitudinal,
author = {Bryant, Katherine L and Le Troter, Arnaud and Meunier, David and Becker, Yannick and Love, Scott A and Bouziane, Siham and Loh, Kep Kee and Sein, Julien and Renaud, Luc and Coulon, Olivier and Meguerditchian, Adrien},
title = {{Longitudinal MRI template of the baboon brain from birth to adolescence}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = jul,
volume = {4},
pages = {IMAG.a.1316},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/imag.a.1316},
url = {https://doi.org/10.1162/imag.a.1316},
pmid = {42569348},
pmcid = {PMC13449925}
}

RIS

TY - JOUR
AU - Bryant, Katherine L
AU - Le Troter, Arnaud
AU - Meunier, David
AU - Becker, Yannick
AU - Love, Scott A
AU - Bouziane, Siham
AU - Loh, Kep Kee
AU - Sein, Julien
AU - Renaud, Luc
AU - Coulon, Olivier
AU - Meguerditchian, Adrien
TI - Longitudinal MRI template of the baboon brain from birth to adolescence
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/07/30
VL - 4
SP - IMAG.a.1316
SN - 2837-6056
PB - MIT Press
DO - 10.1162/imag.a.1316
UR - https://doi.org/10.1162/imag.a.1316
LA - en
ER -

CSL-JSON

{
"id": "10.1162/imag.a.1316",
"type": "article-journal",
"title": "Longitudinal MRI template of the baboon brain from birth to adolescence",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Bryant",
"given": "Katherine L"
},
{
"family": "Le Troter",
"given": "Arnaud"
},
{
"family": "Meunier",
"given": "David"
},
{
"family": "Becker",
"given": "Yannick"
},
{
"family": "Love",
"given": "Scott A"
},
{
"family": "Bouziane",
"given": "Siham"
},
{
"family": "Loh",
"given": "Kep Kee"
},
{
"family": "Sein",
"given": "Julien"
},
{
"family": "Renaud",
"given": "Luc"
},
{
"family": "Coulon",
"given": "Olivier"
},
{
"family": "Meguerditchian",
"given": "Adrien"
}
],
"container-title-short": "Imaging Neurosci (Camb)",
"volume": "4",
"page": "IMAG.a.1316",
"DOI": "10.1162/imag.a.1316",
"PMID": "42569348",
"PMCID": "PMC13449925",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://doi.org/10.1162/imag.a.1316",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
30
]
]
}
}

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.7554/elife.70521 [code]
Broca's cerebral asymmetry reflects gestural communication's lateralisation in monkeys (<i>Papio anubis</i>).
Journal: eLife
In common: non-human primate, 7 references, 2 authors
[2] doi:10.1038/s41467-024-47277-6
Planum temporale asymmetry in newborn monkeys predicts the future development of gestural communication's handedness.
Journal: Nature communications
In common: non-human primate, developmental, structural MRI / diffusion, 6 references, 2 authors
[3] doi:10.1371/journal.pbio.3003378 [code]
Humans have a longer period of cortical maturation across depth and hierarchy than macaques.
Journal: PLoS biology
In common: ANTs, FSL, NiBabel, 5 other tools, non-human primate, developmental, structural MRI / diffusion, 5 references
[4] doi:10.1002/hbm.26414 [code]
Multi-scale structural alterations of the thalamus and basal ganglia in focal epilepsy using 7T MRI.
Journal: Human brain mapping
In common: ANTs, FSL, NiBabel, 3 other tools, structural MRI / diffusion, 2 references, author Arnaud Le Troter
[5] doi:10.1038/s41467-024-49823-8 [code]
Hippocampal connectivity patterns echo macroscale cortical evolution in the primate brain.
Journal: Nature communications
In common: ANTs, FSL, Pillow, 6 other tools, non-human primate, 3 references
[6] doi:10.1038/s41467-025-59254-8 [code]
Long arcuate fascicle in wild and captive chimpanzees as a potential structural precursor of the language network.
Journal: Nature communications
In common: ANTs, FSL, NiBabel, 3 other tools, non-human primate, structural MRI / diffusion, author Yannick Becker
[7] doi:10.7554/elife.98047 [code]
Reconstructing voice identity from noninvasive auditory cortex recordings.
Journal: eLife
In common: statannotations, NiBabel, seaborn, 4 other tools, author Julien Sein
[8] doi:10.7554/elife.73153 [code]
The Digital Brain Bank, an open access platform for post-mortem imaging datasets.
Journal: eLife
In common: structural MRI / diffusion, 5 references, author Katherine L Bryant
[9] doi:10.21203/rs.3.rs-9326213/v1 [code]
Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brain
Journal: Research Square (preprint)
In common: statannotations, ANTs, FSL, 7 other tools, 1 reference
[10] doi:10.64898/2026.03.09.710558 [code]
Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brain
Journal: bioRxiv (preprint)
In common: statannotations, ANTs, FSL, 7 other tools, 1 reference

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.1162/imag.a.1316.svg)](https://openscicode.org/badge/doi/10.1162/imag.a.1316)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1162/imag.a.1316.svg
   :target: https://openscicode.org/badge/doi/10.1162/imag.a.1316
   :alt: OSCR

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