find_prefix_in_cell_IDs | R Documentation |
This function checks if a prefix has been added to the standard cell-IDs (16 characters of A,TRUE,C,G) in a Seurat object. If so, it prints the number of unique prefixes found, issues a warning if more than one unique prefix is found, and returns the identified prefix(es).
find_prefix_in_cell_IDs(obj, cell_ID_pattern = "[ATCG]{16}.*$")
obj |
A Seurat object with cell IDs possibly prefixed. |
cell_ID_pattern |
Pattern to match cellIDs (with any suffix). |
A character vector of the identified prefix(es).
# Assuming 'obj' is your Seurat object
# prefix <- find_prefix_in_cell_IDs(obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.