featureModuleLookup-celda_G-method: Lookup the module of a feature

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
2
## S4 method for signature 'celda_G'
featureModuleLookup(counts, celdaMod, feature, exactMatch = TRUE)

Arguments

counts

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

celdaMod

Model of class 'celda_G'.

feature

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

exactMatch

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_G()' for clustering features

Examples

1
2
3
4
5
6
data(celdaGSim, celdaGMod)
module <- featureModuleLookup(
  celdaGSim$counts,
  celdaGMod,
  c("Gene_1", "Gene_XXX")
)

celda documentation built on June 9, 2020, 2 a.m.