Learn R Programming

scCustomize (version 3.1.3)

Top_Genes_Factor: Extract top loading genes for LIGER factor

Description

Extract vector to the top loading genes for specified LIGER iNMF factor

Usage

Top_Genes_Factor(object, factor = NULL, num_genes = 10, ...)

# S3 method for liger Top_Genes_Factor(object, factor = NULL, num_genes = 10, ...)

# S3 method for Seurat Top_Genes_Factor(object, factor = NULL, num_genes = 10, reduction, ...)

Value

vector of top genes for given factor or data.frame containing top genes across all factors

Arguments

object

object name.

factor

factor number to pull genes from. Set to "all" to return top loading genes from all factors

num_genes

number of top loading genes to return as vector, default is 10.

...

Arguments passed to other methods

reduction

name of reduction containing NMF/iNMF/cNMF data.

Examples

Run this code
if (FALSE) {
top_genes_factor10 <- Top_Genes_Factor(object = object, factor = 1, num_genes = 10)
}

if (FALSE) {
top_genes_factor10 <- Top_Genes_Factor(object = object, factor = 1, num_genes = 10,
reduction = "cNMF")
}

Run the code above in your browser using DataLab