Registration and Call for Abstracts Open for Bioc2024


This is the development version of ResidualMatrix; for the stable release version, see ResidualMatrix.

Creating a DelayedMatrix of Regression Residuals

Bioconductor version: Development (3.19)

Provides delayed computation of a matrix of residuals after fitting a linear model to each column of an input matrix. Also supports partial computation of residuals where selected factors are to be preserved in the output matrix. Implements a number of efficient methods for operating on the delayed matrix of residuals, most notably matrix multiplication and calculation of row/column sums or means.

Author: Aaron Lun [aut, cre, cph]

Maintainer: Aaron Lun <infinite.monkeys.with.keyboards at>

Citation (from within R, enter citation("ResidualMatrix")):


To install this package, start R (version "4.4") and enter:

if (!require("BiocManager", quietly = TRUE))

# The following initializes usage of Bioc devel


For older versions of R, please refer to the appropriate Bioconductor release.


Reference Manual PDF


biocViews BatchEffect, DataRepresentation, ExperimentalDesign, Regression, Software
Version 1.13.0
In Bioconductor since BioC 3.12 (R-4.0) (3.5 years)
License GPL-3
Imports methods, Matrix, S4Vectors, DelayedArray
System Requirements
Bug Reports
See More
Suggests testthat, BiocStyle, knitr, rmarkdown, BiocSingular
Linking To
Depends On Me
Imports Me batchelor
Suggests Me alabaster.matrix, BiocSingular, chihaya, scran
Links To Me
Build Report Build Report

Package Archives

Follow Installation instructions to use this package in your R session.

Source Package
Windows Binary
macOS Binary (x86_64)
macOS Binary (arm64)
Source Repository git clone
Source Repository (Developer Access) git clone
Package Short Url
Package Downloads Report Download Stats