View source: R/Seurat.utils.less.used.R
removeLayersByPattern | R Documentation |
This function removes layers from a Seurat object's RNA assay based on a specified regular expression pattern. It first backs up the object before removing layers that match the pattern.
removeLayersByPattern(obj, pattern = "sc[0-9][0-9]_", perl = TRUE)
obj |
A Seurat object. |
pattern |
A regular expression pattern to match layer names. |
perl |
A logical value indicating whether to use Perl-compatible regular expressions.
Default: |
A Seurat object with specified layers removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.