get_markergenes: Get top marker genes for each subcluster

View source: R/utils.R

get_markergenesR Documentation

Get top marker genes for each subcluster

Description

Get top marker genes for each subcluster

Usage

get_markergenes(enriched.g, method = c("LR", "LiR"), topn = 100)

Arguments

enriched.g

A return from LRcell_gene_enriched_scores or from provided data

method

If LR, the return will be a list of genes; If LiR, the return will be a list of named vector with names as genes and values as enriched scores.

topn

Top N genes as marker genes.

Value

A list of top marker genes.

Examples

library(ExperimentHub)
eh <- ExperimentHub::ExperimentHub()
eh <- query(eh, "LRcellTypeMarkers")
# eh$title
enriched_genes <- eh[['EH4548']]
marker.g <- get_markergenes(enriched_genes, method="LR", topn=100)

marvinquiet/LRcell documentation built on Sept. 16, 2022, 9:09 a.m.