Skip to contents

Scores a seurat object using the gene weights from a saved component

Usage

ScoreUsingSavedComponent(
  seuratObj,
  componentOrName,
  fieldName,
  assayName = "RNA",
  layer = "data",
  referenceForScaling = NULL
)

Arguments

seuratObj

The seurat object

componentOrName

Either a data frame with the columns 'feature' and 'weight', or the name of a previously saved component available in RIRA

fieldName

The name of the field in which to save the resulting scores

assayName

The assay to use

layer

The layer to use

referenceForScaling

An optional dataframe to use for scaling. This must contain the columns row.means and row.sd, and the rownames must match any required genes