matrix_process: Process matrix

View source: R/computation.R

matrix_processR Documentation

Process matrix

Description

Process matrix

Usage

matrix_process(
  matrix,
  method = c("raw", "zscore", "fc", "log2fc", "log1p"),
  ...
)

Arguments

matrix

A matrix.

method

Method to use for processing the matrix.

...

Other arguments passed to the method.

Value

A processed matrix.

Examples

m <- simulate_sparse_matrix(10, 10)
matrix_process(m, method = "raw")
matrix_process(m, method = "zscore")
matrix_process(m, method = "fc")
matrix_process(m, method = "log2fc")
matrix_process(m, method = "log1p")
m <- as_matrix(m)
matrix_process(m, method = function(x) x / rowMeans(x))

thisutils documentation built on Sept. 11, 2025, 5:12 p.m.