enrich_posfrac_score: Calculate enrichment scores for each cell type in a specific...

View source: R/LRcell.R

enrich_posfrac_scoreR Documentation

Calculate enrichment scores for each cell type in a specific gene.

Description

This function takes a specific gene expression, cell type annotation and a hyperparameter to calculate enrichment scores.

Usage

enrich_posfrac_score(gene, expr, annot, power = 1)

Arguments

gene

Gene name from the expression matrix.

expr

Complete expression matrix with rows as genes and columns as cells.

annot

Cell type annotation named vector with names as cell ids and values as cell types.

power

The penalty on fraction of cells expressing the genes

Value

Enrichment score list with cell type as names and enrichment score as values.


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