featureModuleLookup | R Documentation |
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 signature 'SingleCellExperiment'
featureModuleLookup(
sce,
features,
altExpName = "featureSubset",
exactMatch = TRUE,
by = "rownames"
)
sce |
A SingleCellExperiment object returned by
celda_G, or celda_CG, with the matrix
located in the |
features |
Character vector. Identify feature modules for the specified
feature names. |
altExpName |
The name for the altExp slot to use. Default "featureSubset". |
exactMatch |
Logical. Whether to look for exactMatch of the gene name
within counts matrix. Default |
by |
Character. Where to search for |
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.
data(sceCeldaCG)
module <- featureModuleLookup(sce = sceCeldaCG,
features = c("Gene_1", "Gene_XXX"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.