table_summary_seurat: Function for making summary tables based on cellular data...

Description Usage Arguments Value Examples

View source: R/convenience_funcs.R

Description

table_summary_seurat returns a list of tibbles with summary metrics of the metrics fetched from a Seurat object using Seurat::FetchData.

Usage

1
table_summary_seurat(fetch_dat_out, re_group)

Arguments

fetch_dat_out

A data frame with cells as rows and cellular data as columns (e.g. output from Seurat::FetchData).

re_group

A character value for the regex to group by.

Value

A list of named tibbles, one for each metric.

Examples

1
2
3
4
5
# load example dataset from Seurat
data("pbmc_small", package="Seurat")

table_summary_seurat(Seurat::FetchData(pbmc_small, vars = c("nFeature_RNA", "nCount_RNA")),
"^\\S+(?=_[ACGT]+$)")

genomics-kl/seurathelpeR documentation built on Nov. 4, 2019, 1:04 p.m.