Skip to contents

Computes a per-spot gene set score (sum of log expression) and stores it in colData.

Usage

gene_set_score(spe, genes = NULL, assay = "cpm", name = "geneSet")

Arguments

spe

SpatialExperiment.

genes

Vector of gene symbols for the gene set.

assay

Assay to use (default: "cpm").

name

Name of the result column.

Value

Updated SpatialExperiment with the gene set score.