getReductionGenes: Get top loaded features for PCA or ICA dimensional reduction.

View source: R/utility_functions.R

getReductionGenesR Documentation

Get top loaded features for PCA or ICA dimensional reduction.

Description

Get top loaded features for PCA or ICA dimensional reduction.

Usage

getReductionGenes(feature.loading, sig.threshold = 0.99, top.is.positive = T)

Arguments

feature.loading

Feature loading matrix

sig.threshold

Numeric specifying top nth percentile of features to return. Default: 0.99.

top.is.positive

Logical specifying whether to enforce top loaded feature being positive. If negative, loading sign is inverted.

Value

list of ggplot handles

Author(s)

Nicholas Mikolajewicz

Examples


feature.loading <- as.matrix(seurat.object@reductions[[reduction]]@feature.loadings)
red.res <- getReductionGenes(feature.loading = feature.loading,  sig.threshold = 0.99)


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