geneset_embed_list_seurat: Generate activity scores (embeddings) for a list of feature...

Description Usage Arguments Value

View source: R/geneset.R

Description

A variant of geneset_embed that works with a list of feature sets and takes and returns a Seurat object

Usage

1
2
3
4
5
6
7
8
geneset_embed_list_seurat(
  seurat_obj,
  list_vec_geneWeights,
  slot = "scale.data",
  assay = "SCT",
  min_feats_present = 5,
  n_cores_max = Inf
)

Arguments

seurat_obj

A Seurat object

list_vec_geneWeights

a list of numeric vectors of weights with feature names. Weights should be pre-normalized

slot

Seurat object slot to use

assay

Seurat object assay to use

min_feats_present

a minimum number of features shared between mat_datExpr and vec_geneWeights

n_cores_max

max number of cores to use in multicore processing. To use sequential processing, set to 1

Value

a Seurat object with feature embeddings added to metadata


CBMR-Single-Cell-Omics-Platform/SCOPfunctions documentation built on May 29, 2021, 3:52 p.m.