Registration Open for Bioc2024 July 24-26


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

Creating a DelayedMatrix of Regression Residuals

Bioconductor version: Development (3.20)

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.


To view documentation for the version of this package installed in your system, start R and enter:

Using the ResidualMatrix HTML R Script
Reference Manual PDF


biocViews BatchEffect, DataRepresentation, ExperimentalDesign, Regression, Software
Version 1.15.1
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 ResidualMatrix_1.15.1.tar.gz
Windows Binary
macOS Binary (x86_64) ResidualMatrix_1.15.1.tgz
macOS Binary (arm64) ResidualMatrix_1.15.1.tgz
Source Repository git clone
Source Repository (Developer Access) git clone
Bioc Package Browser
Package Short Url
Package Downloads Report Download Stats