ww.get.1st.Seur.element: Get the First Seurat Object from a List of Seurat Objects

View source: R/Seurat.Utils.R

ww.get.1st.Seur.elementR Documentation

Get the First Seurat Object from a List of Seurat Objects

Description

#' If provided with a list of Seurat objects, this function returns the first Seurat object in the list. If the input is a single Seurat object, it returns the object itself. It is assumed that all elements of the list are Seurat objects if the input is a list.

Usage

ww.get.1st.Seur.element(obj)

Arguments

obj

A Seurat object, a list of Seurat objects, or any other list.

Value

The first Seurat object from the list or the Seurat object itself. If the input is not a Seurat object or a list containing at least one Seurat object, the function will throw an error.


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