topgenes_extract: Extract Top Markers

Description Usage Arguments Details Value Examples

View source: R/topgenes_extract.R

Description

Internal – Extracts strongest cell-type markers from a Seurat object.

Usage

1
topgenes_extract(generes, padj = 0.05, FC = 1.5, topNum = 30)

Arguments

generes

A list of cell-tpe markers with fold-changes and p-vlaues (FindMarkers output in Seurat).

padj

The p-value (FDR) cutoff.

FC

The fold-change cutoff.

topNum

The number of genes to extract.

Details

Internal, this function runs through a list of outputs from FindMarkers objects in Seurat and will extract genes past a padj and fold-change threshold. Then it extracts the topNum number of genes. if you have not used the FindMarkers function, then a list of summary statistics with fold-change designated by avg_logFC and p-val by p_val_adj.

Value

topgenes_extract Returns a list of character vectors with the top (topNum) of gene markers for each cell-type.

Examples

1
2
3
4
5
 
 
 # load generes object
 data(POA_example)
 topGenes <- topgenes_extract(POA_example$POA_generes)

DustinSokolowski/scMappR documentation built on July 7, 2020, 5:44 p.m.