View source: R/Seurat.Utils.Metadata.R
getCellIDs.from.meta | R Documentation |
Retrieves cell IDs from a specified metadata column of a Seurat object, where the cell ID matches a provided list of values. The matching operation uses the %in%
operator.
getCellIDs.from.meta(
ident = GetClusteringRuns()[1],
ident_values = NA,
obj = combined.obj,
inverse = FALSE
)
ident |
A string specifying the name of the metadata column from which to retrieve cell IDs. Default: 'res.0.6'. |
ident_values |
A vector of values to match in the metadata column. Default: |
obj |
The Seurat object from which to retrieve the cell IDs. Default: combined.obj. |
inverse |
A boolean value indicating whether to inverse the match, i.e., retrieve cell IDs that do not match the provided list of ident_values. Default: |
A vector of cell IDs that match (or don't match, if inverse = TRUE
) the provided list of values.
## Not run:
if (interactive()) {
# Example usage:
getCellIDs.from.meta()
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.