featureModuleLookup,celda_CG-method {celda} | R Documentation |
Finds the module assignments of given features in a 'celda_G()' model
## S4 method for signature 'celda_CG' featureModuleLookup(counts, celdaMod, feature, exactMatch = TRUE)
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_CG'. |
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. |
List. Each element contains the module of the provided feature.
'celda_CG()' for clustering features and cells
data(celdaCGSim, celdaCGMod) module <- featureModuleLookup(celdaCGSim$counts, celdaCGMod, c("Gene_1", "Gene_XXX"))