This function will output the corresponding feature module for
a specified vector of genes from a celda_CG or celda_G celdaModel
.
features
must match the rownames of sce
.
featureModuleLookup(
sce,
features,
altExpName = "featureSubset",
exactMatch = TRUE,
by = "rownames"
)
# S4 method for SingleCellExperiment
featureModuleLookup(
sce,
features,
altExpName = "featureSubset",
exactMatch = TRUE,
by = "rownames"
)
A SingleCellExperiment object returned by
celda_G, or celda_CG, with the matrix
located in the useAssay
assay slot.
Rows represent features and columns represent cells.
Character vector. Identify feature modules for the specified
feature names. feature
must match the rownames of sce
.
The name for the altExp slot to use. Default "featureSubset".
Logical. Whether to look for exactMatch of the gene name
within counts matrix. Default TRUE
.
Character. Where to search for features
in the sce object.
If set to "rownames"
then the features will be searched for among
rownames(sce). This can also be set to one of the colnames
of
rowData(sce). Default "rownames"
.
Numeric vector containing the module numbers for each feature. If
the feature was not found, then an NA
value will be returned in that
position. If no features were found, then an error will be given.