This function computes a similarity matrix by utilising a single linear model for differential expression analysis.
calculateDistMatOneModel(
matrix,
metadata,
verbose = TRUE,
method = "voom",
additional.variate = NULL
)
A similarity matrix.
A count matrix with rows representing genes or features and columns representing samples or cells.
A data frame containing metadata corresponding to the samples or cells.
Each row should match a column in matrix
.
Logical. If TRUE
, the function displays progress messages
and a progress bar. The default is TRUE
.
A character string specifying the method for differential expression analysis. Options are "voom" or "trend", with "trend" as the default.
A character vector of additional variates to include in the linear model for regression.
getDistMat