getMetas: Returns the names of all meta.data slots of a target object.

View source: R/meta-getters.R

getMetasR Documentation

Returns the names of all meta.data slots of a target object.

Description

Returns the names of all meta.data slots of a target object.

Usage

getMetas(object, names.only = TRUE)

Arguments

object

A Seurat, SingleCellExperiment, or SummarizedExperiment object.

names.only

Logical, TRUE by default, which sets whether just the names should be output versus the entire metadata dataframe.

Value

A string vector of the names of all metadata slots of the object, or alternatively the entire dataframe of metadatas if names.only is set to FALSE

Author(s)

Daniel Bunis

See Also

isMeta for checking if certain metadata slots exist in an object

meta for obtaining the contants of metadata slots

Examples

example(importDittoBulk, echo = FALSE)

# To see all metadata slots of an object
getMetas(myRNA)

# To retrieve the entire metadata matrix
getMetas(myRNA, names.only = FALSE)


dtm2451/dittoSeq documentation built on May 5, 2024, 11:19 a.m.