geneset_embed: Generate activity scores (embeddings) for a feature set in a...

Description Usage Arguments Value

View source: R/geneset.R

Description

Generate activity scores (embeddings) for a feature set in a sample matrix

Usage

1
geneset_embed(mat_datExpr, vec_geneWeights, min_feats_present = 5)

Arguments

mat_datExpr

a m feature * n sample matrix

vec_geneWeights

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

min_feats_present

a minimum number of features shared between mat_datExpr and vec_geneWeights

Value

returns a n vector of gene weights, scaled to 1 standard deviation, but not centred.


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