ExtractGeneWeights: ExtractGeneWeights

View source: R/ComponentScores.R

ExtractGeneWeightsR Documentation

ExtractGeneWeights

Description

Extracts the loadings from a given component in a seurat object and returns a data.frame suitable for ScoreUsingSavedComponent

Usage

ExtractGeneWeights(
  seuratObj,
  componentNum,
  topNGenes = 100,
  bottomNGenes = 100,
  reduction = "pca"
)

Arguments

seuratObj

The seurat object

componentNum

The component number to use

topNGenes

The number of top genes to use (ranked by loading)

bottomNGenes

The number of bottom genes to use (ranked by loading)

reduction

The reduction to use


bimberlabinternal/RIRA_classification documentation built on April 14, 2025, 5:59 p.m.