eigengene: Compute eigengene

View source: R/analysis_functions.R

eigengeneR Documentation

Compute eigengene

Description

Computes basis vector with highest eigenvalue (i.e., first principal component, or axis of variation that explains the highest proportion of variance)

Usage

eigengene(
  mat,
  cells.are.rows = T,
  do.scale = T,
  align = T,
  return.vector.only = T,
  verbose = T
)

Arguments

mat

cell x gene expression matrix

cells.are.rows

Specify whether cells are in row of matrix. Default is T.

do.scale

scale data. Default is T.

align

Align basis vector with direction of expression.

return.vector.only

Logical specifying whether to return vector only. Default is True.

verbose

Print progress. Default is TRUE.

Value

eigengene vector

See Also

svd


NMikolajewicz/scMiko documentation built on June 28, 2023, 1:41 p.m.