Skip to contents

This function computes a similarity matrix by utilising a single linear model for differential expression analysis.

Usage

calculateDistMatOneModel(
  matrix,
  metadata,
  verbose = TRUE,
  method = "voom",
  additional.variate = NULL
)

Arguments

matrix

A count matrix with rows representing genes or features and columns representing samples or cells.

metadata

A data frame containing metadata corresponding to the samples or cells. Each row should match a column in matrix.

verbose

Logical. If TRUE, the function displays progress messages and a progress bar. The default is TRUE.

method

A character string specifying the method for differential expression analysis. Options are "voom" or "trend", with "trend" as the default.

additional.variate

A character vector of additional variates to include in the linear model for regression.

Value

A similarity matrix.

See also