Get top loaded features for PCA or ICA dimensional reduction.

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

Nicholas Mikolajewicz

Examples


feature.loading <- as.matrix(seurat.object@reductions[[reduction]]@feature.loadings)
#> Error in as.matrix(seurat.object@reductions[[reduction]]@feature.loadings): object 'seurat.object' not found
red.res <- getReductionGenes(feature.loading = feature.loading,  sig.threshold = 0.99)
#> Error in "matrix" %in% class(feature.loading): object 'feature.loading' not found