meta {dittoSeq} | R Documentation

## Returns the values of a meta.data for all cells/samples

### Description

Returns the values of a meta.data for all cells/samples

### Usage

    meta(meta, object)

### Arguments

`meta` | String, the name of the "metadata" slot to grab. OR "ident" to retireve the clustering of a Seurat `object`.
`object` | A target Seurat or SingleCellExperiment object

### Value

A named vector. Returns the values of a metadata slot, or the clustering slot if `meta = "ident"` and the `object` is a Seurat. Names of values will be the cell/sample names.

### Author(s)

Daniel Bunis

### See Also

`metaLevels` for returning just the unique discrete identities that exist within a metadata slot

`getMetas` for returning all metadata slots of an `object`

`isMeta` for testing whether something is the name of a metadata slot

### Examples

    example(importDittoBulk, echo = FALSE)
    meta("groups", object = myRNA)

[Package dittoSeq version 0.99.14 Index]