View source: R/crosstalk_funs.R
compute_pem_scores | R Documentation |
Compute Preferential Expression Measure scores from SingleCellExperiment object
compute_pem_scores(sce, assay.type = "logcounts")
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 |
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).
A matrix containing the computed PEM values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.