compute_pem_scores: Compute Preferential Expression Measure scores from...

View source: R/crosstalk_funs.R

compute_pem_scoresR Documentation

Compute Preferential Expression Measure scores from SingleCellExperiment object

Description

Compute Preferential Expression Measure scores from SingleCellExperiment object

Usage

compute_pem_scores(sce, assay.type = "logcounts")

Arguments

sce

A SingleCellExperiment object containing log-normalized expression values and cell type annotations as colLabels

assay.type

The name of the data slot containing the log-normalized expression values in the SingleCellExperiment object

Details

Uses the information contained in a SingleCellExperiment object to stratify the expression matrix by cell type, and then computes the PEM scores from the exponential of the normalized expression values.

IMPORTANT: This function expects an object containing log-transformed values (not raw counts).

Value

A matrix containing the computed PEM values


saezlab/ligrec_decoupler documentation built on Aug. 10, 2024, 8:56 a.m.