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

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, ...)

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.

Value

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

Examples

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")
}