getMetaColnames: Get Metadata Column Names Matching Pattern

View source: R/Seurat.Utils.Metadata.R

getMetaColnamesR Documentation

Get Metadata Column Names Matching Pattern

Description

Retrieves column names from an object's metadata that match a specified pattern.

Usage

getMetaColnames(obj = combined.obj, pattern = "RNA")

Arguments

obj

An object containing a meta.data slot, typically from combined datasets. Default: combined.obj.

pattern

A character string containing a regular expression to match against the column names. Default: "RNA".

Value

A character vector of column names matching the pattern.

Examples

# Assuming `combined.obj` is an object with a meta.data slot
getMetaColnames()


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