Calibration of MRI-based reference intervals to new samples.
The 1 match
- [1] § Methods › Reference interval calibration via conformal prediction (ReForm) ↔ R/reform.R, lines 1–71 · score 0.71 · conFormal, calibration constants, reference interval calibration, ReFormed, CQR, Ri
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
R · 183 lines · 6 KB · no license · 1 match
- #' Reference interval calibration via conFormal prediction (ReForm)
- #'
- #' `reform` takes a fitted reference interval and calibrates to a new sample
- #' using split conformalized quantile regression (Romano, et al., 2019).
- #' `reform` requires a calibration set `caldata` from the new sample. For more
- #' details on calibration set size and ReForm properties, refer to our preprint
- #' Chen et al., 2025.
- #'
- #' @param object `refint` object obtained from \link[ReForm]{refint}
- #' @param caldata calibration data used to fit ReForm
- #' @param ... additional arguments passed internally to \link[stats]{predict}
- #'
- #' @returns `reform` returns a list containing all elements of `object` (see \link[ReForm]{refint}) and:
- #' \item{cali}{lower and upper calibration constants used to adjust the interval}
- #' \item{cali.df}{`caldata` stored in the output}
- #' @export
- #'
- #' @seealso
- #' \link[ReForm]{plot.reformint} for assessing fit of reference interval in
- #' calibration set via diagnostic plots
- #'
- #' \link[ReForm]{predict.reformint} for applying a ReFormed reference
- #' interval to new observations
- #'
- #' @examples
- #' # example for lm (not recommended)
- #' ri <- refint(
- #' lm(Sepal.Length ~ Sepal.Width,
- #' data = iris[51:100,]), pct = 90
- #' )
- #' predict(ri, newdata = iris[1:10,])
- #' reformed_ri <- reform(ri, caldata = iris[11:50,])
- #' predict(reformed_ri, newdata = iris[1:10,])
- #'
- #' # example for quantreg::rq
- #' if (require("quantreg")) {
- #' ri <- refint(
- #' rq(Sepal.Length ~ Sepal.Width,
- #' data = iris[51:100,], tau = 0.05),
- #' rq(Sepal.Length ~ Sepal.Width,
- #' data = iris[51:100,], tau = 0.95)
- #' )
- #' reformed_ri <- reform(ri, caldata = iris[11:50,])
- #' predict(reformed_ri, newdata = iris[1:10,])
- #' }
- #'
- #' @references
- #' Romano, Y., Patterson, E., & Candes, E. (2019). Conformalized quantile regression. Advances in neural information processing systems, 32.
- reform <- function(object, caldata, ...) {
- if (any(!(object$terms %in% names(caldata)))) {
- stop("Terms missing from caldata")
- }
- alpha = 1 - object$pct/100
- nc <- nrow(caldata)
- # calibrate using CQR
- pred <- object$get.ri(caldata)
- res <- data.frame(lower = pred[[1]] - caldata[,object$terms[1]],
- upper = caldata[,object$terms[1]] - pred[[2]])
- if (ceiling((1 - alpha/2)*(nc+1)) > nc) {
- warning("Calibration set size is inadequate, results may be suboptimal")
- }
- q_cut <- min(ceiling((1 - alpha/2)*(nc+1)), nc)
- q <- apply(res, 2, function(x) sort(x)[q_cut])
- out <- object
- out$cali <- q
- out$cali.df <- caldata
- class(out) <- "reformint"
- out
- }
- #' Predict Method for ReFormed Reference Intervals
- #'
- #' Apply ReFormed reference interval from \link[ReForm]{reform} to new data
- #'
- #' @param object `reformint` object obtained from \link[ReForm]{reform}
- #' @param newdata input variables used to get reference intervals
- #' @param ... additional arguments passed to \link[stats]{predict}
- #'
- #' @returns a data frame containing lower and upper bounds of the reference
- #' interval, the test observation, and logicals for whether it is above or below
- #'
- #' @export
- #'
- #' @examples
- #' # example for lm (not recommended)
- #' ri <- refint(
- #' lm(Sepal.Length ~ Sepal.Width,
- #' data = iris[51:100,]), pct = 90
- #' )
- #' reformed_ri <- reform(ri, caldata = iris[11:50,])
- #' predict(reformed_ri, newdata = iris[1:10,])
- #'
- #' # example for quantreg::rq
- #' if (require("quantreg")) {
- #' ri <- refint(
- #' rq(Sepal.Length ~ Sepal.Width,
- #' data = iris[51:100,], tau = 0.05),
- #' rq(Sepal.Length ~ Sepal.Width,
- #' data = iris[51:100,], tau = 0.95)
- #' )
- #' reformed_ri <- reform(ri, caldata = iris[11:50,])
- #' predict(reformed_ri, newdata = iris[1:10,])
- #' }
- predict.reformint <- function(object, newdata, ...) {
- if (any(!(object$terms %in% names(newdata)))) {
- stop("Terms missing from newdata")
- }
- # apply ReForm calibration
- out <- object$get.ri(newdata, ...)
- out$lower <- out$lower - object$cali[1]
- out$upper <- out$upper + object$cali[2]
- out[[object$terms[1]]] <- newdata[,object$terms[1]]
- out$below <- newdata[,object$terms[1]] < out$lower
- out$above <- newdata[,object$terms[1]] > out$upper
- data.frame(out)
- }
- #' Diagnostic Plots for ReForm
- #'
- #' Plot upper and lower residuals from the calibration set in
- #' \link[ReForm]{reform} against a chosen variable `var`. Ideally, both plots
- #' should display a roughly flat relationship.
- #'
- #' @param x `reformint` object obtained from \link[ReForm]{reform}
- #' @param var string indicating to plot against variable to plot against (should
- #' be in `x$terms`). If none supplied, defaults to the first covariate (second
- #' value) in `x$terms`.
- #' @param ... additional arguments passed to \link[base]{plot}
- #'
- #' @export
- #'
- #' @examples
- #' # example for lm (not recommended)
- #' ri <- refint(
- #' lm(Sepal.Length ~ Sepal.Width,
- #' data = iris[51:100,]), pct = 90
- #' )
- #' reformed_ri <- reform(ri, caldata = iris[11:50,])
- #' plot(reformed_ri)
- #'
- #' # example for quantreg::rq
- #' if (require("quantreg")) {
- #' ri <- refint(
- #' rq(Sepal.Length ~ Sepal.Width,
- #' data = iris[51:100,], tau = 0.05),
- #' rq(Sepal.Length ~ Sepal.Width,
- #' data = iris[51:100,], tau = 0.95)
- #' )
- #' reformed_ri <- reform(ri, caldata = iris[11:50,])
- #' plot(reformed_ri)
- #' }
- plot.reformint <- function(x, var = NULL, ...) {
- if (is.null(var)) {
- var <- x$terms[2]
- }
- pred <- x$get.ri(x$cali.df)
- res <- data.frame(lower = pred[[1]] - x$cali.df[,x$terms[1]],
- upper = x$cali.df[,x$terms[1]] - pred[[2]])
- plot(x$cali.df[,var], res$lower, xlab = var, ylab = "lower residual")
- op <- par(ask=TRUE)
- plot(x$cali.df[,var], res$upper, xlab = var, ylab = "upper residual")
- par(op)
- }
- #' @export
- print.reformint <- function(x) {
- if (is.null(x$fits)) {
- cat(x$pct, "% ReFormed reference interval using model of class ",
- class(x$fit), ", calibrated on ", nrow(x$cali.df), " observations\n",
- sep = "")
- } else {
- cat(x$pct, "% ReFormed reference interval using models of class ",
- class(x$fits[[1]]), ", calibrated on ", nrow(x$cali.df),
- " observations\n", sep = "")
- }
- }
reform.R at commit 93e11ef, no license · at the source
Overview
13 affiliations
- Department of Public Health Sciences, Medical University of South Carolina, Charleston, SC, United States
- Brain-Gene-Development Lab, The Children’s Hospital of Philadelphia and Penn Medicine, Philadelphia, PA, United States
- Lifespan Brain Institute, The Children’s Hospital of Philadelphia and Penn Medicine, Philadelphia, PA, United States
- Department of Psychiatry, University of Pennsylvania, Philadelphia, PA, United States
- Department of Child and Adolescent Psychiatry and Behavioral Science, The Children’s Hospital of Philadelphia, Philadelphia, PA, United States
- Neuroscience Graduate Group, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, United States
- Department of Psychology, University of Cambridge, Cambridge, United Kingdom
- Department of Neurology, Medical University of South Carolina, Charleston, SC, United States
- Department of Neuroscience, Medical University of South Carolina, Charleston, SC, United States
- Department of Biostatistics, Vanderbilt University, Nashville, TN, United States
- Department of Psychiatry, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, United States
- The Penn Lifespan Informatics and Neuroimaging Center, Department of Psychiatry, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, United States
- For the Lifespan Brain Chart Consortium
Abstract
Reference intervals, defined as intervals containing a new observation with a specified probability relative to reference data, would be clinically useful in assessing brain magnetic resonance imaging (MRI). Brain charts, which are estimates of MRI phenotypes across covariates such as age and sex, can be used to construct reference intervals. However, the reference data used to fit intervals often differ from a new sample in terms of study design, MRI acquisition, and image preprocessing. Application of MRI reference intervals to new samples remains a challenging problem. Here, we propose a new method called reference interval calibration via conFormal prediction (ReForm) that adjusts reference intervals for a new sample. Our method builds on recent work in conformal prediction, which yields intervals with guaranteed coverage for new observations. Through resampling experiments in Lifespan Brain Chart Consortium cortical thickness data, we compare ReFormed reference intervals with refitting intervals, statistical harmonization methods, and model-based adjustment of intervals. Notably for patient privacy concerns, ReForm does not require sharing of reference data. Yet, our empirical results demonstrate that ReForm controls FPR similarly or better than alternative methods that require sharing reference data. Finally, we provide recommendations for practical applications of ReForm and an R package (https://
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 1 match between paragraphs and lines of code.
andy1764/ReForm
93e11ef67dca61372ce27e78fa1edd0680fce54b, 1 December 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
3 files
- R/
refint.R , R, 182 lines - R/
reform.R , R, 183 lines, 1 match - README.md, Text, 78 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;
- 2 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.
Data and Code Availability
An R implementation of the proposed method, ReForm, is available via GitHub (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 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 11 authors, 5 keywords, 2 funders, 49 references.
Cite
This paper
Chen, A. A., Seidlitz, J., Gardner, M., Bethlehem, R. A., Dorfschmidt, L., Kafadar, E., Benitez, A., Jensen, J. H., Vandekar, S., Satterthwaite, T. D., & Alexander-Bloch, A. F. (2026). Calibration of MRI-based reference intervals to new samples. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1290. https://
BibTeX
@article{chen2026calibra
author = {Chen, Andrew A and Seidlitz, Jakob and Gardner, Margaret and Bethlehem, Richard AI and Dorfschmidt, Lena and Kafadar, Eren and Benitez, Andreana and Jensen, Jens H and Vandekar, Simon and Satterthwaite, Theodore D and Alexander-Bloch, Aaron F},
title = {{Calibration of MRI-based reference intervals to new samples}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = jul,
volume = {4},
pages = {IMAG.a.1290},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/
url = {https://
pmid = {42444711},
pmcid = {PMC13358719}
}
RIS
TY - JOUR
AU - Chen, Andrew A
AU - Seidlitz, Jakob
AU - Gardner, Margaret
AU - Bethlehem, Richard AI
AU - Dorfschmidt, Lena
AU - Kafadar, Eren
AU - Benitez, Andreana
AU - Jensen, Jens H
AU - Vandekar, Simon
AU - Satterthwaite, Theodore D
AU - Alexander-Bloch, Aaron F
TI - Calibration of MRI-based reference intervals to new samples
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/
VL - 4
SP - IMAG.a.1290
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "Calibration of MRI-based reference intervals to new samples",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Chen",
"given": "Andrew A"
},
{
"family": "Seidlitz",
"given": "Jakob"
},
{
"family": "Gardner",
"given": "Margaret"
},
{
"family": "Bethlehem",
"given": "Richard AI"
},
{
"family": "Dorfschmidt",
"given": "Lena"
},
{
"family": "Kafadar",
"given": "Eren"
},
{
"family": "Benitez",
"given": "Andreana"
},
{
"family": "Jensen",
"given": "Jens H"
},
{
"family": "Vandekar",
"given": "Simon"
},
{
"family": "Satterthwaite",
"given": "Theodore D"
},
{
"family": "Alexander-Bloch",
"given": "Aaron F"
}
],
"container-title-short":
"volume": "4",
"page": "IMAG.a.1290",
"DOI": "10.1162/
"PMID": "42444711",
"PMCID": "PMC13358719",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
10
]
]
}
}
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.1002/hbm.70546 [code]
- ComBat-Predict Enhances Generalizability of Neuroimaging Models to New Sites.Journal: Human brain mappingIn common: Alzheimer's / dementia, structural MRI / diffusion, 11 references, 3 authors
- [2] doi:10.1038/s41593-026-02289-x [code]
- Cerebellar aging is spatially heterogeneous and supports cognitive resilience in later life.Journal: Nature neuroscienceIn common: Alzheimer's / dementia, structural MRI / diffusion, 1 reference, 3 authors
- [3] doi:10.1038/s41467-026-73714-9 [code]
- The genetic architecture of cortical similarity networks.Journal: Nature communicationsIn common: structural MRI / diffusion, 2 authors
- [4] doi:10.1038/s41586-026-10454-2 [code]
- White matter micro- and macrostructure brain charts for the human lifespan.Journal: NatureIn common: 3 references, author Simon Vandekar
- [5] doi:10.1038/s41467-026-72875-x [code]
- Lifespan normative modeling of brain microstructure.Journal: Nature communicationsIn common: Alzheimer's / dementia, structural MRI / diffusion, 6 references
- [6] doi:10.7554/elife.103097 [code]
- Canonical neurodevelopmental trajectories of structural and functional manifolds.Journal: eLifeIn common: structural MRI / diffusion, 3 references, author Richard Bethlehem
- [7] doi:10.1002/hbm.70493 [code]
- Testing for Network Specificity in Brain-Behavior Associations Using Ordinal Dominance Curves.Journal: Human brain mappingIn common: 3 references, author Simon Vandekar
- [8] doi:10.1162/imag.a.1338 [code]
- Systematic fMRI signal differences across cohorts alter lifespan trajectories of functional brain networks.Journal: Imaging neuroscience (Cambridge, Mass.)In common: 5 references
- [9] doi:10.1093/brain/awaf443 [code]
- Cellular signatures underlying functional resilience in presymptomatic frontotemporal dementia.Journal: Brain : a journal of neurologyIn common: Alzheimer's / dementia, 1 reference, author Richard Bethlehem
- [10] doi:10.1162/imag.a.1352 [code]
- Brain-age in ultra-low-field MRI: How well does it work?Journal: Imaging neuroscience (Cambridge, Mass.)In common: methods / tools, structural MRI / diffusion, 4 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: 1 repository of the authors' code, each at its verified commit and with its license, 2 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:bbcf67c97f8449c2…
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.
