Skip to contents

Perform PCA on a Specified Matrix and Store in Dimensionality Reduction Slot

Usage

runPCA(
  data,
  matrix_name = "Raw_Score",
  num_components = 50,
  use_relevant = TRUE
)

Arguments

data

An object of class CygnusObject containing an expression matrix.

matrix_name

Character string specifying the name of the matrix to use. Default is "Raw_Score".

num_components

Numeric value specifying the number of principal components to compute. Default is 50.

use_relevant

Logical indicating whether to use only relevant markers. Default is TRUE.

Value

The updated CygnusObject with PCA coordinates stored in the 'dim_red' slot.