Skip to contents

Turn a specialized single-cell data object (Seurat or SingleCellExperiment) into a more simplified "tidy" data frame. In tidy data, each column is a variable and each observation is a row.

Usage

flatten_object(x, features = NULL, assay = "RNA", slot = "data", n_dims = 3)

Arguments

x

An object.

features

A vector of features/genes to include in the data frame.

assay

The object assay name for feature abundance.

slot

The object slot name for feature abundance.

n_dims

An integer scalar specifying the maximum number of dimensions to return.

Value

A tibble, which is a data frame with class tbl_df.