featureModuleLookup.celda_CG: Lookup the module of a feature

Description Usage Arguments Value See Also Examples

View source: R/celda_CG.R

Description

Finds the module assignments of given features in a 'celda_G()' model

Usage

1
2
3
## S3 method for class 'celda_CG'
featureModuleLookup(counts, celda.mod, feature,
  exact.match = TRUE)

Arguments

counts

Integer matrix. Rows represent features and columns represent cells. This matrix should be the same as the one used to generate 'celda.mod'.

celda.mod

Model of class 'celda_CG'.

feature

Character vector. The module assignemnts will be found for feature names in this vector.

exact.match

Logical. Whether an exact match or a partial match using 'grep()' is used to look up the feature in the rownames of the counts matrix. Default TRUE.

Value

List. Each element contains the module of the provided feature.

See Also

'celda_CG()' for clustering features and cells

Examples

1
2
module = featureModuleLookup(celda.CG.sim$counts, celda.CG.mod, 
                             c("Gene_1", "Gene_XXX"))

compbiomed/celda documentation built on May 25, 2019, 3:58 a.m.