dot-FindCommandInObject: Find Command in Seurat Object by Partial Match

.FindCommandInObjectR Documentation

Find Command in Seurat Object by Partial Match

Description

This function searches for commands in a list within a Seurat object using a partial match (e.g., pattern matching) on the command names. It returns the content of the first match if only one match is found. If multiple matches are found, it outputs the number of hits and their names.

Usage

.FindCommandInObject(obj, pattern, perl = TRUE)

Arguments

obj

A Seurat object. Default: None.

pattern

A character string representing the pattern to match command names. Default: None.

Value

If exactly one match is found, the function returns the content of the first match. If multiple matches are found, it returns NULL after displaying the number of matches and their names.

Examples

# Assuming 'combined.obj' is your Seurat object
result <- FindCommandInObject(combined.obj, "^FindVariable")


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