Skip to contents

This function is called by `getDistMat`.

Usage

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

Arguments

matrix

The count matrix. Rows are genes/features and columns are samples/cells.

metadata

Data frame. Its rows should correspond to columns of the `matrix` input.

verbose

Print the message and progress bar (default: TRUE)

method

Methods for DE analysis. Options: "voom" or "trend" (default)

additional.variate

additional variate to include into the linear model to regress out

Value

A similarity matrix

See also

This function is called by getDistMat

Author

Zhiyuan Hu