Longitudinal MRI template of the baboon brain from birth to adolescence.
The 6 matches
- [1] § Methods › Multimodal template creation ↔ postprocessing/MM_template_construction.py, lines 13–132 · score 0.71 · antsMultivariateTemplateConstruction2.sh, pairwise registration, resampled, resolution, sharpening, iterative
- [2] § Methods › Multimodal template creation ↔ preprocessing/realign_subjects_2_Haiko89.py, lines 128–190 · score 0.61 · antsRegistration, shrink factor, Haiko89, smoothing, rigid, space
- [3] § Methods › Tissue probability maps and binary brain mask generation ↔ postprocessing/correct_TPM.py, lines 44–168 · score 0.58 · corrected TPM, WM TPM, filling, BM, thresholding, CSF
- [4] § Methods › Multimodal template creation ↔ postprocessing/antsMultivariateTemplateConstruction2.sh, lines 102–158 · score 0.57 · downsampled, correlation, pairwise, cross, shrink, voxel
- [5] § Methods › Multimodal template creation ↔ postprocessing/register_long_templates.py, lines 106–155 · score 0.57 · antsRegistration, shrink factor, smoothing, rigid, transformation, T1w
- [6] § Methods › Alignment across timepoints ↔ postprocessing/sym_template.py, lines 226–295 · score 0.51 · registered template, rigid registration, propagate, symmetrical, flipped, temporary
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 · 135 lines · 6 KB · no license · 1 match
- #!/usr/bin/env python3
- import argparse
- import os
- import subprocess
- import pandas as pd
- def run_command(cmd, dry_run=False, env=None, workdir=None, shell=False):
- print("Running:", " ".join(map(str, cmd)))
- if not dry_run:
- subprocess.run(cmd, check=True, env=env, shell=shell, cwd=workdir)
- def main():
- parser = argparse.ArgumentParser(description="Two-stage multivariate template construction with ANTs, BIDS-style outputs")
- parser.add_argument("-s", "--subject", required=True,help="Subject label (e.g. BaBa21)")
- parser.add_argument("-S", "--session", required=True,help="Session label (e.g. ses-0)")
- parser.add_argument("-b", "--bids-root", required=True,help="BIDS root folder")
- parser.add_argument("-j", "--jobs", type=int, default=12,help="Number of CPU cores to use (default: 12)")
- parser.add_argument("--modalities", nargs="+", required=True,help="List of modalities to look for (e.g., T1w T2w label-WM_mask)")
- parser.add_argument("--input-list-LR", required=True,help="CSV file with list of input NIfTI images for first stage")
- parser.add_argument("--LR-reg-metrics", default="MI",help="Type of similarity metric used for pairwise registration (MI by default)")
- parser.add_argument("--ite1", type=int, default=1,help="Number of iterations for Stage 1 (default: 1)")
- parser.add_argument("--q1", default="50x30x15",help="Steps for Stage 1 -q option (default: 50x30x15)")
- parser.add_argument("--w1", default="0.5x0.5x1",help="Weights for Stage 1 modalities (default: 0.5x0.5x1)" )
- parser.add_argument("--input-list-HR", required=True,help="CSV file with list of input NIfTI images for second stage")
- parser.add_argument("--HR-reg-metrics", default="CC",help="Type of similarity metric used for pairwise registration (CC by default)")
- parser.add_argument("--ite2", type=int, default=1,help="Number of iterations for Stage 2 (default: 1)")
- parser.add_argument("--q2", default="70x50x30",help="Steps for Stage 2 -q option (default: 70x50x30)")
- parser.add_argument("--w2", default="1x1x1",help="Weights for Stage 2 modalities (default: 1x1x1)")
- parser.add_argument('--res-HR', type=float, default=0.4, help="pixel resolution in mm (default: 0.4)")
- parser.add_argument('--dry-run', action="store_true", help="Print commands without executing them")
- args = parser.parse_args()
- # Load CSV and determine modalities count for stage 1
- df = pd.read_csv(args.input_list_LR)
- modalities = list(df.columns)
- modalities_count = len(modalities)
- res_HR = args.res_HR
- dry_run = args.dry_run
- LR_reg_metrics = args.LR_reg_metrics
- HR_reg_metrics = args.HR_reg_metrics
- print(f"[INFO] Detected {modalities_count} modalities: {modalities}")
- # Define output directories under BIDS derivatives/template
- derivatives_dir = os.path.join(args.bids_root, "derivatives", "template")
- subject_dir = f"sub-{args.subject}"
- session_dir = args.session
- output_base = os.path.join(derivatives_dir, subject_dir, session_dir)
- tmp_LR = os.path.join(output_base, "tmp_LR")
- tmp_HR = os.path.join(output_base, "tmp_HR")
- final_dir = os.path.join(output_base, "final")
- for d in [tmp_LR, tmp_HR, final_dir]:
- os.makedirs(d, exist_ok=True)
- print(f"[INFO] All outputs will go to: {output_base}")
- # Stage 1: low-resolution template building
- print(f"[INFO] Starting Stage 1: Low-resolution template construction")
- ants_script_path = os.path.join("$ANTSPATH", "antsMultivariateTemplateConstruction2.sh")
- run_command([
- f"{ants_script_path} "
- f"-d 3 -i {args.ite1} -k {modalities_count} -c 2 -j {args.jobs} "
- f"-f 4x2x1 -s 2x1x0vox -q {args.q1} "
- f"-w {args.w1} -t SyN -A 1 -n 0 -m {LR_reg_metrics} "
- f"-o {tmp_LR}/MY {args.input_list_LR}"
- ], dry_run, workdir='./', shell=True)
- print(f"[INFO] Resampling Stage 1 outputs to higher resolution at {res_HR} ")
- for i in range(modalities_count):
- in_file = os.path.join(tmp_LR, "intermediateTemplates", f"SyN_iteration{args.ite1 - 1}_MYtemplate{i}.nii.gz")
- out_file = os.path.join(tmp_HR, f"{args.subject}_{args.session}_SyN_iteration{args.ite1 - 1}_MYtemplate{i}.nii.gz")
- run_command([
- "mri_convert", "-i",
- f"{in_file}",
- "-o",
- f"{out_file}",
- "-vs", f"{res_HR}", f"{res_HR}", f"{res_HR}"
- ], dry_run)
- # Stage 2: high-resolution template building using resampled priors
- # Load CSV and determine modalities count for stage 2
- df = pd.read_csv(args.input_list_HR)
- modalities = list(df.columns)
- modalities_count = len(modalities)
- print(f"[INFO] Detected {modalities_count} modalities: {modalities}")
- print("[INFO] Starting Stage 2: High-resolution template construction")
- paths = [
- os.path.join(
- tmp_HR,
- f"{args.subject}_{args.session}_SyN_iteration{args.ite1 - 1}_MYtemplate{i}.nii.gz"
- )
- for i in range(modalities_count)
- ]
- z_opts = " ".join([f"-z {p}" for p in paths])
- run_command([
- f"{ants_script_path} "
- f"-d 3 -i {args.ite2} -k {modalities_count} -c 2 -j {args.jobs} "
- f"-f 4x2x1 -s 2x1x0vox -q {args.q2} "
- f"-t SyN -w {args.w2} {z_opts} -A 1 -n 0 -m {HR_reg_metrics} "
- f"-o {tmp_HR}/MY {args.input_list_HR}"
- ], dry_run , workdir='./', shell=True)
- # Copy final outputs with BIDS-style names
- print("[INFO] Copying final templates to BIDS-style outputs")
- i=0
- for modality in args.modalities:
- print(f"[INFO] modality {modality}")
- desc = f"desc-sharpen_{modality}"
- dst_name = f"sub-{args.subject}_{args.session}_{desc}.nii.gz"
- src = os.path.join(tmp_HR, "intermediateTemplates", f"SyN_iteration{args.ite2 - 1}_MYtemplate{i}.nii.gz")
- dst = os.path.join(final_dir, dst_name)
- run_command([f"cp -f {src} {dst}"], dry_run , workdir='./', shell=True)
- print(f"{dst}")
- i += 1
- print(f"[INFO] Template construction complete! Results in {final_dir}")
- if __name__ == "__main__":
- main()
MM_template_construction.py at commit c8f1d6f, no license · at the source
Overview
- Institute for Language, Communication, and the Brain, Aix-Marseille Univ, CNRS, Marseille, France
- Centre de Recherche en Psychologie et Neurosciences, Aix-Marseille Univ, CNRS, UMR 7077, Marseille, France
- Institut de Neurosciences de la Timone, Aix-Marseille Univ, CNRS, UMR 7289, Marseille, France
- Department of Neuropsychology, Max Planck Institute for Human Cognitive and Brain Sciences, Leipzig, Germany
- Lise Meitner Research Group Cognitive Neurogenetics, Max Planck Institute for Human Cognitive and Brain Sciences, Leipzig, Germany
- INRAE, CNRS, Université de Tours, PRC, 37380, Nouzilly, France
- Department of Psychology, National University of Singapore, Singapore
- Station de Primatologie, CNRS-CELPHEDIA UAR846, Rousset, France
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
c8f1d6fb9215236d6a1c563b62d312da57017978, 1 September 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
23 files
- postprocessing/
BaBa21_volumetry.ipynb , Jupyter, 255 lines - postprocessing/
MM_template_construction , Python, 135 lines, 1 match.py - postprocessing/
QC_T1wT2w.sh , Shell, 28 lines - postprocessing/
QC_segmentation.sh , Shell, 23 lines - postprocessing/
T1xT2BiasFieldCorrection , Shell, 343 lines.sh - postprocessing/
antsMultivariateTemplate , Shell, 1,787 lines, 1 matchConstruction2.sh - postprocessing/
bias_correction.py , Python, 85 lines - postprocessing/
bias_correction_all_sess , Shell, 11 linesions.sh - postprocessing/
correct_TPM.py , Python, 171 lines, 1 match - postprocessing/
create_gif.py , Python, 49 lines - postprocessing/
generate_TPM.py , Python, 220 lines - postprocessing/
interpolate_long_templat , Python, 388 linese.py - postprocessing/
normalize_contrasts.py , Python, 178 lines - postprocessing/
register_long_templates. , Python, 335 lines, 1 matchpy - postprocessing/
snap.sh , Shell, 27 lines - postprocessing/
sym_template.py , Python, 299 lines, 1 match - preprocessing/
bias_correction_HCP_T1wT , Python, 193 lines2w.py - preprocessing/
convert_haiko_to_bids_de , Python, 100 linesrivative.py - preprocessing/
denoise_anat.py , Python, 150 lines - preprocessing/
parse_dataset.py , Python, 140 lines - preprocessing/
prepare_MM_subjects_list , Python, 104 lines.py - preprocessing/
realign_subjects_2_Haiko , Python, 339 lines, 1 match89.py - README.md, Text, 104 lines
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
- doi:10.18112/
openneuro.ds005424.v1.0. , at OpenNeuro; found in the references0 - openneuro:ds005424, at OpenNeuro; found in “Data and Code Availability”
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://
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://
BibTeX
@article{bryant2026longi
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/
url = {https://
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/
VL - 4
SP - IMAG.a.1316
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"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":
"volume": "4",
"page": "IMAG.a.1316",
"DOI": "10.1162/
"PMID": "42569348",
"PMCID": "PMC13449925",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://
"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.21203/rs.3.rs-9326213/v1 [code]
- Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brainJournal: Research Square (preprint)In common: statannotations, ANTs, FSL, 7 other tools, 1 reference
- [2] doi:10.1002/alz.71649 [code]
- Postmortem brain MRI reveals differential associations of subcortical and limbic volumes with cortical thinning and neurodegenerative pathologies.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: statannotations, ANTs, FSL, 7 other tools, structural MRI / diffusion
- [3] doi:10.1038/s42003-026-10276-y [code]
- The cellular correlates and adolescent reorganisation of cortical myelination networks in the common marmoset.Journal: Communications biologyIn common: statannotations, NiBabel, seaborn, 4 other tools, non-human primate, structural MRI / diffusion, 2 references
- [4] doi:10.1162/imag.a.1276 [code]
- High-resolution whole-brain magnetic resonance spectroscopic imaging in youth at risk for psychosis.Journal: Imaging neuroscience (Cambridge, Mass.)In common: ANTs, FSL, Pillow, 6 other tools, 1 reference
- [5] doi:10.1038/s41467-026-71151-2 [code]
- Common and distinct neural correlates of social interaction processing and theory of mind in narratives.Journal: Nature communicationsIn common: ANTs, FSL, Pillow, 6 other tools, 1 reference
- [6] doi:10.7554/elife.108408 [code]
- Frequency and laminar profile of feature-specific visual activity revealed by interleaved EEG-fMRI.Journal: eLifeIn common: ANTs, FSL, NiBabel, 5 other tools, 2 references
- [7] doi:10.1002/epi.70296 [code]
- Fully automated three-dimensional deep learning-based magnetic resonance imaging segmentation of brain cavities in epilepsy surgery.Journal: EpilepsiaIn common: ANTs, FSL, Pillow, 5 other tools, structural MRI / diffusion, 1 reference
- [8] doi:10.64898/2026.08.18.26360725 [code]
- Temporal pole blurring in hippocampal sclerosis reflects seizure-disrupted myelinationJournal: medRxiv (preprint)In common: statannotations, Pillow, NiBabel, 5 other tools, structural MRI / diffusion, 1 reference
- [9] doi:10.1162/imag.a.1252 [code]
- Does the brain's E:I balance really shape long-range temporal correlations? Lessons learned from 3T MRI.Journal: Imaging neuroscience (Cambridge, Mass.)In common: ANTs, FSL, NiBabel, 5 other tools, structural MRI / diffusion, 1 reference
- [10] doi:10.1038/s41467-026-71555-0 [code]
- A deep representation learning model to predict response to vagus nerve stimulation.Journal: Nature communicationsIn common: ANTs, FSL, NiBabel, 5 other tools, structural MRI / diffusion, 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.
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: 1 repository of the authors' code, each at its verified commit and with its license, 22 scripts, and 6 matches 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:ecf318033630ac2b…
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.
