removeLayersByPattern: Remove Layers from Seurat Object by Pattern

View source: R/Seurat.utils.less.used.R

removeLayersByPatternR Documentation

Remove Layers from Seurat Object by Pattern

Description

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.

Usage

removeLayersByPattern(obj, pattern = "sc[0-9][0-9]_", perl = TRUE)

Arguments

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: TRUE.

Value

A Seurat object with specified layers removed.


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.