OSCR

Systematic fMRI signal differences across cohorts alter lifespan trajectories of functional brain networks.

Code ↔ Paper

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

2 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 2 matches
  1. [1] § Methods › Data harmonization ↔ R/R/combat.R, lines 12 to 70 · score 0.52 · batch factor, ComBat, variance, harmonization, covariates, model · block oscr:b:7TSA1X9BDDDNP-C · Report a mismatch
  2. [2] § Methods › Data harmonization ↔ R/R/covbat.R, lines 11 to 80 · score 0.51 · CovBat, ComBat, variance, harmonization, covariates, model · block oscr:b:8JHKQS90Q8QWM-1 · 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

R · 220 lines · 8.4 KB · no license · 1 match

  1. # Author: Jean-Philippe Fortin, [email hidden]
  2. # This is a modification of the ComBat function code from the sva package that
  3. # can be found at https://bioconductor.org/packages/release/bioc/html/sva.html
  4. # The original and present code is under the Artistic License 2.0.
  5. # If using this code, make sure you agree and accept this license.
  6. # Code optimization improved by Richard Beare
  7. # Modified by Andrew Chen for covbat.R
  8. # Added functionality to use only training data as input and to have
  9. # residualized observations as output
  10. #' Combatting batch effects when combining batches of gene expression microarray
  11. #' data
  12. #'
  13. #' \code{combat} is a modified version of the ComBat code written by
  14. #' Jean-Philippe Fortin available at
  15. #' \url{https://github.com/Jfortin1/ComBatHarmonization/}. The function
  16. #' harmonizes the mean and variance of observations across sites under an
  17. #' empirical Bayes framework. \code{combat} additionally includes options
  18. #' to output residualized observations, estimate coefficients using a training
  19. #' subset, and regress out unwanted confounders.
  20. #'
  21. #' @param dat A \emph{p x n} matrix (or object coercible by \link[base]{as.matrix}
  22. #' to a numeric matrix) of observations where \emph{p} is the number of
  23. #' features and \emph{n} is the number of subjects.
  24. #' @param batch Factor (or object coercible by \link[base]{as.factor} to a
  25. #' factor) designating batch IDs.
  26. #' @param mod An optional design matrix to preserve, usually output of
  27. #' \link[stats]{model.matrix}.
  28. #' @param nuisance.mod An optional design matrix to regress out, usually output
  29. #' of \link[stats]{model.matrix} without intercept.
  30. #' @param train Optional logical vector specifying subset of observations used
  31. #' to estimate coefficients.
  32. #' @param resid Whether to leave intercept and covariates regressed out.
  33. #' @param eb If \code{TRUE}, uses ComBat model with empirical Bayes.
  34. #' @param parametric If \code{TRUE}, uses parametric updates.
  35. #' @param mean.only If \code{TRUE}, ComBat step does not harmonize variance.
  36. #' @param verbose Whether additional details are printed to console.
  37. #'
  38. #' @return
  39. #' @export
  40. #'
  41. #' @examples
  42. #'
  43. #' @seealso Modification to ComBat to regress out unwanted confounders
  44. #' proposed by Wachinger et al. (2020), \url{https://arxiv.org/abs/2002.05049}
  45. combat <- function(dat, batch, mod = NULL, nuisance.mod = NULL,
  46. train = NULL, resid = FALSE, eb = TRUE,
  47. parametric = TRUE, mean.only = FALSE, verbose = FALSE)
  48. {
  49. dat <- as.matrix(dat)
  50. .checkConstantRows <- function(dat){
  51. sds <- rowSds(dat)
  52. ns <- sum(sds==0)
  53. if (ns>0){
  54. message <- paste0(ns, " rows (features) were found to be constant across samples. Please remove these rows before running ComBat.")
  55. stop(message)
  56. }
  57. }
  58. .checkConstantRows(dat)
  59. if (eb){
  60. if (verbose) cat("[combat] Performing ComBat with empirical Bayes\n")
  61. } else {
  62. if (verbose) cat("[combat] Performing ComBat without empirical Bayes (L/S model)\n")
  63. }
  64. # make batch a factor and make a set of indicators for batch
  65. batch <- as.factor(batch)
  66. batchmod <- model.matrix(~-1+batch)
  67. if (verbose) cat("[combat] Found",nlevels(batch),'batches\n')
  68. # add nuisance mod to mod, if specified
  69. if (!is.null(nuisance.mod)) {
  70. mod <- cbind(mod, nuisance.mod)
  71. }
  72. # A few other characteristics on the batches
  73. n.batch <- nlevels(batch)
  74. batches <- lapply(levels(batch), function(x)which(batch==x))
  75. n.batches <- sapply(batches, length)
  76. n.array <- sum(n.batches)
  77. #combine batch variable and covariates
  78. design <- cbind(batchmod,mod)
  79. # check for intercept in covariates, and drop if present
  80. check <- apply(design, 2, function(x) all(x == 1))
  81. design <- as.matrix(design[,!check])
  82. # Number of covariates or covariate levels
  83. if (verbose) cat("[combat] Adjusting for",ncol(design)-ncol(batchmod),'covariate(s) or covariate level(s)\n')
  84. # Check if the design is confounded
  85. if(qr(design)$rank<ncol(design)){
  86. if(ncol(design)==(n.batch+1)){
  87. stop("[combat] The covariate is confounded with batch. Remove the covariate and rerun ComBat.")
  88. }
  89. if(ncol(design)>(n.batch+1)){
  90. if((qr(design[,-c(1:n.batch)])$rank<ncol(design[,-c(1:n.batch)]))){
  91. stop('The covariates are confounded. Please remove one or more of the covariates so the design is not confounded.')
  92. } else {
  93. stop("At least one covariate is confounded with batch. Please remove confounded covariates and rerun ComBat.")
  94. }
  95. }
  96. }
  97. ## Standardize Data across features
  98. if (verbose) cat('[combat] Standardizing Data across features\n')
  99. # Estimate coefficients using training set if specified, otherwise use full data
  100. if (!is.null(train)) {
  101. design_tr <- design[train,]
  102. B.hat1 <- solve(crossprod(design_tr))
  103. B.hat1 <- tcrossprod(B.hat1, design_tr)
  104. B.hat <- tcrossprod(B.hat1, dat[,train])
  105. } else {
  106. B.hat1 <- solve(crossprod(design))
  107. B.hat1 <- tcrossprod(B.hat1, design)
  108. B.hat <- tcrossprod(B.hat1, dat)
  109. }
  110. # Standardization Model
  111. grand.mean <- crossprod(n.batches/n.array, B.hat[1:n.batch,])
  112. var.pooled <- ((dat-t(design%*%B.hat))^2)%*%rep(1/n.array,n.array)
  113. stand.mean <- crossprod(grand.mean, t(rep(1,n.array)))
  114. if(!is.null(design)){
  115. tmp <- design;tmp[,c(1:n.batch)] <- 0
  116. stand.mean <- stand.mean+t(tmp%*%B.hat)
  117. }
  118. s.data <- (dat-stand.mean)/(tcrossprod(sqrt(var.pooled), rep(1,n.array)))
  119. ## Get regression batch effect parameters
  120. if (eb){
  121. if (verbose) cat("[combat] Fitting L/S model and finding priors\n")
  122. } else {
  123. if (verbose) cat("[combat] Fitting L/S model\n")
  124. }
  125. batch.design <- design[,1:n.batch]
  126. gamma.hat <- tcrossprod(solve(crossprod(batch.design, batch.design)), batch.design)
  127. gamma.hat <- tcrossprod(gamma.hat, s.data)
  128. delta.hat <- NULL
  129. for (i in batches){
  130. delta.hat <- rbind(delta.hat,rowVars(s.data[,i], na.rm=TRUE)) # fixed error
  131. }
  132. # Empirical Bayes correction:
  133. gamma.star <- delta.star <- NULL
  134. gamma.bar <- t2 <- a.prior <- b.prior <- NULL
  135. if (eb){
  136. ##Find Priors
  137. #gamma.bar <- apply(gamma.hat, 1, mean)
  138. #t2 <- apply(gamma.hat, 1, var)
  139. gamma.bar <- rowMeans(gamma.hat)
  140. t2 <- rowVars(gamma.hat)
  141. a.prior <- apriorMat(delta.hat)
  142. b.prior <- bpriorMat(delta.hat)
  143. ##Find EB batch adjustments
  144. if (parametric){
  145. if (verbose) cat("[combat] Finding parametric adjustments\n")
  146. for (i in 1:n.batch){
  147. temp <- it.sol(s.data[,batches[[i]]],gamma.hat[i,],delta.hat[i,],gamma.bar[i],t2[i],a.prior[i],b.prior[i])
  148. gamma.star <- rbind(gamma.star,temp[1,])
  149. delta.star <- rbind(delta.star,temp[2,])
  150. }
  151. } else {
  152. if (verbose) cat("[combat] Finding non-parametric adjustments\n")
  153. for (i in 1:n.batch){
  154. temp <- int.eprior(as.matrix(s.data[, batches[[i]]]),gamma.hat[i,], delta.hat[i,])
  155. gamma.star <- rbind(gamma.star,temp[1,])
  156. delta.star <- rbind(delta.star,temp[2,])
  157. }
  158. }
  159. }
  160. if (mean.only) {
  161. delta.star <- array(1, dim = dim(delta.star))
  162. }
  163. ### Normalize the Data ###
  164. if (verbose) cat("[combat] Adjusting the Data\n")
  165. bayesdata <- s.data
  166. j <- 1
  167. for (i in batches){
  168. if (eb){
  169. bayesdata[,i] <- (bayesdata[,i]-t(batch.design[i,]%*%gamma.star))/tcrossprod(sqrt(delta.star[j,]), rep(1,n.batches[j]))
  170. } else {
  171. bayesdata[,i] <- (bayesdata[,i]-t(batch.design[i,]%*%gamma.hat))/tcrossprod(sqrt(delta.hat[j,]), rep(1,n.batches[j]))
  172. }
  173. j <- j+1
  174. }
  175. # Reintroduce wanted covariates
  176. all.mean <- crossprod(grand.mean, t(rep(1,n.array)))
  177. if (!is.null(nuisance.mod)) {
  178. tmp <- design;tmp[,c(1:n.batch)] <- 0
  179. tmp[,(n.batch+dim(mod)[2]-dim(nuisance.mod)[2]):(dim(design)[2])] <- 0
  180. wanted.mean <- all.mean+t(tmp%*%B.hat)
  181. }
  182. if (!is.null(nuisance.mod)) {
  183. bayesdata <- (bayesdata*(tcrossprod(sqrt(var.pooled), rep(1,n.array)))) +
  184. wanted.mean
  185. } else if (resid == FALSE) {
  186. bayesdata <- (bayesdata*(tcrossprod(sqrt(var.pooled), rep(1,n.array)))) +
  187. stand.mean
  188. } else {
  189. bayesdata <- bayesdata*(tcrossprod(sqrt(var.pooled), rep(1,n.array)))
  190. }
  191. return(list(dat.combat=bayesdata,
  192. s.data=s.data,
  193. gamma.hat=gamma.hat, delta.hat=delta.hat,
  194. gamma.star=gamma.star, delta.star=delta.star,
  195. gamma.bar=gamma.bar, t2=t2, a.prior=a.prior, b.prior=b.prior,
  196. batch=batch, mod=mod,
  197. stand.mean=stand.mean, stand.sd=sqrt(var.pooled)[,1],
  198. B.hat = B.hat))
  199. }

combat.R at commit cacf370, no license · at the source

Overview

  1. Center for Vital Longevity, School of Behavioral and Brain Sciences, The University of Texas at Dallas, Dallas, TX, United States
  2. Department of Psychiatry, The University of Texas Southwestern Medical Center, Dallas, TX, United States
Journal: Imaging neuroscience (Cambridge, Mass.), volume 4, article IMAG.a.1338
Dates: received 15 January 2026; accepted 15 July 2026; published online 24 August 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1162/imag.a.1338 · PMID 42643755 · PMCID PMC13504956 · OpenAlex W7171803933
Open access: diamond, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: fMRI (modality), human (organism), systems (subfield)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Graphs, fMRI & imaging
Keywords: resting-state functional correlation, brain network, lifespan neuroimaging, data harmonization, human connectome project
MeSH: Aging*, Brain*, Connectome*, Magnetic Resonance Imaging*, Nerve Net*, Adult, Aged, Aged, 80 and over, Cohort Studies, Female, Humans, Longevity, Male, Middle Aged, Signal-To-Noise Ratio, Young Adult (* major topic)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: NIA NIH HHS (U01 AG052564, R01 AG092219, R01 AG063930); NIMH NIH HHS (U01 MH109589, U54 MH091657)
Citations: not cited yet (Europe PMC); 62 references in the paper

Abstract

Large-scale lifespan neuroimaging studies increasingly integrate data across distinct cohorts to characterize trajectories of brain development and aging. However, systematic differences in acquisition protocols and hardware across cohorts can alter signal characteristics in ways that bias downstream analyses. Here, we examine three cohorts from the Human Connectome Project (HCP), spanning development (HCP-D), young adulthood (HCP-YA) and aging (HCP-A), to illustrate this issue and evaluate existing strategies to mitigate it. HCP has set standards for open, deeply phenotyped, high-resolution human neuroimaging, which are frequently used as high-quality reference datasets in tool validation, replication studies, and cross-cohort meta-analyses. However, neuroimaging acquisitions have differed across HCP cohorts because of changes in scanner hardware and acquisition sequences across study phases. Because of HCP’s widespread usage, even modest protocol differences between cohorts—and their downstream effects—can have outsized impacts on the field of neuroscience research. Our analysis reveals that the HCP-YA cohort exhibits systematically weaker temporal signal-to-noise ratio (tSNR) relative to HCP-D/A. These signal quality discrepancies propagate to downstream analyses, leading to differences in overall resting-state functional correlations and whole-brain and node-level measures of resting-state network organization (e.g., system segregation, modularity, participation coefficient). Consistent with protocol-driven signal differences, resting-state network measures derived from HCP-YA depart from expected lifespan trajectories, as confirmed by examination of two other lifespan datasets. Harmonization approaches accounting for protocol and scanner-model differences substantially lessen these artifactual differences in brain network measures. Our findings underscore that signal differences do not merely introduce noise, but can qualitatively alter estimated lifespan trajectories of functional network organization, including partially inverting expected lifespan patterns. Without appropriate harmonization, analyses that combine HCP cohorts can therefore result in biologically misleading inferences about brain development and aging. We demonstrate how small acquisition differences bias resting-state-derived network metrics, and how these effects can be mitigated. This work advances best practices for valid inference in multi-cohort lifespan neuroscience research.

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

Repositories

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

andy1764/CovBat_Harmonization

License: none: the authors keep all their rights
State: the link answers, verified on 3 November 2026
Evidence: files inventoried
Commit: cacf370af1ffc87485f50733f797b236c4f251a7, 13 March 2023
Languages: R (4), Python (3)
Size: 25 files, 7 scripts
Software Heritage: not archived
Found in: “Data and Code Availability”
Holds: README, environment (R/DESCRIPTION), documentation
Not found: license file, CITATION.cff, tests, continuous integration
Tools: NumPy (3 files), pandas (3 files), scikit-learn (1 file)
Availability: 2 checks, the latest on 3 November 2026: the link answers
  • 3 November 2026: the link answers
  • 27 September 2026: the link answers
8 files

mychan24/system-segregation-and-graph-tools

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: e7c30345b8ebf29e3a9ab44593d95e41cd0b16ed, 15 October 2024
Languages: MATLAB (11), R (6)
Size: 22 files, 17 scripts
Software Heritage: archived
Found in: “Data and Code Availability”
Holds: README, license file, environment (DESCRIPTION), tests, continuous integration
Not found: CITATION.cff, documentation
Tools: GIfTI library for MATLAB (3 files), cifti-matlab (2 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
19 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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 24 scripts, each with its path and the digest of its content;
  • 2 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

HCP-YA S1200 release data (downloaded March 2023) are available via the Human Connectome Project website (https://www.humanconnectome.org). HCP-D and HCP-A release 2.0 data (downloaded August 2022) are available via the NIMH Data Archive (NDA; https://nda.nih.gov). NKI processed data were downloaded from the NKI-RS repository (S3 bucket). DLBS data are available on OpenNeuro (https://openneuro.org/datasets/ds004856). CovBat was applied using R code available on https://github.com/andy1764/CovBat_Harmonization. RSFC matrix extraction and brain system segregation calculation were completed using code available on https://github.com/mychan24/system-segregation-and-graph-tools. Modularity, participation coefficient, and clustering coefficient were calculated using the Brain Connectivity Toolbox (BCT; https://sites.google.com/site/bctnet).

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 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 3 authors, 5 keywords, 16 MeSH terms, 2 funders, 60 references.

Cite

This paper

Chan, M. Y., Han, L., & Wig, G. S. (2026). Systematic fMRI signal differences across cohorts alter lifespan trajectories of functional brain networks. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1338. https://doi.org/10.1162/imag.a.1338

BibTeX

@article{chan2026systematic,
author = {Chan, Micaela Y and Han, Liang and Wig, Gagan S},
title = {{Systematic fMRI signal differences across cohorts alter lifespan trajectories of functional brain networks}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = aug,
volume = {4},
pages = {IMAG.a.1338},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/imag.a.1338},
url = {https://doi.org/10.1162/imag.a.1338},
pmid = {42643755},
pmcid = {PMC13504956}
}

RIS

TY - JOUR
AU - Chan, Micaela Y
AU - Han, Liang
AU - Wig, Gagan S
TI - Systematic fMRI signal differences across cohorts alter lifespan trajectories of functional brain networks
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/08/24
VL - 4
SP - IMAG.a.1338
SN - 2837-6056
PB - MIT Press
DO - 10.1162/imag.a.1338
UR - https://doi.org/10.1162/imag.a.1338
LA - en
ER -

CSL-JSON

{
"id": "10.1162/imag.a.1338",
"type": "article-journal",
"title": "Systematic fMRI signal differences across cohorts alter lifespan trajectories of functional brain networks",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Chan",
"given": "Micaela Y"
},
{
"family": "Han",
"given": "Liang"
},
{
"family": "Wig",
"given": "Gagan S"
}
],
"container-title-short": "Imaging Neurosci (Camb)",
"volume": "4",
"page": "IMAG.a.1338",
"DOI": "10.1162/imag.a.1338",
"PMID": "42643755",
"PMCID": "PMC13504956",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://doi.org/10.1162/imag.a.1338",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
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.1073/pnas.2527522123 [code]
Correspondence of large-scale functional brain network decline across aging mice and humans.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: cifti-matlab, GIfTI library for MATLAB, scikit-learn, 2 other tools, humanconnectome.org/study/hcp-lifespan-aging, humanconnectome.org/study/hcp-young-adult, fMRI, 14 references, 2 authors
[2] doi:10.1523/jneurosci.0579-23.2023 [code]
Dissociable Effects of Alzheimer's Disease-Related Cognitive Dysfunction and Aging on Functional Brain Network Segregation.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: cifti-matlab, GIfTI library for MATLAB, pandas, 1 other tool, fMRI, systems, 14 references, 3 authors
[3] doi:10.1093/cercor/bhad506
Measures of resting-state brain network segregation and integration vary in relation to data quantity: implications for within and between subject comparisons of functional brain network organization.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: fMRI, 21 references, 2 authors
[4] doi:10.1038/s43587-021-00125-4 [code]
Long-term prognosis and educational determinants of brain network decline in older adult individuals.
Journal: Nature aging
In common: cifti-matlab, GIfTI library for MATLAB, 10 references, 3 authors
[5] doi:10.1371/journal.pbio.3003856 [code]
Aging and metabolism contribute separately to brain-body health.
Journal: PLoS biology
In common: GIfTI library for MATLAB, scikit-learn, pandas, 1 other tool, humanconnectome.org/study/hcp-lifespan-aging, 9 references
[6] doi:10.1038/s41467-024-47748-w [code]
Functional connectivity development along the sensorimotor-association axis enhances the cortical hierarchy.
Journal: Nature communications
In common: pandas, fMRI, 13 references
[7] doi:10.1371/journal.pbio.3003277 [code]
Mapping cerebral blood perfusion and its links to multi-scale brain organization across the human lifespan.
Journal: PLoS biology
In common: scikit-learn, pandas, NumPy, humanconnectome.org/study/hcp-lifespan-aging, 8 references
[8] doi:10.1038/s41467-022-30244-4 [code]
Dissociable multi-scale patterns of development in personalized brain networks.
Journal: Nature communications
In common: cifti-matlab, GIfTI library for MATLAB, scikit-learn, 2 other tools, 7 references
[9] doi:10.1038/s42003-025-08509-7 [code]
Development of areal-level individualized homologous functional parcellations in youth.
Journal: Communications biology
In common: cifti-matlab, GIfTI library for MATLAB, scikit-learn, 2 other tools, fMRI, 7 references
[10] doi:10.1162/imag.a.1285 [code]
Individualized mapping of functional brain networks in older adulthood.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: cifti-matlab, GIfTI library for MATLAB, fMRI, systems, 8 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.1162/imag.a.1338.svg)](https://openscicode.org/badge/doi/10.1162/imag.a.1338)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

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

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