summarize_cell_types: Function to summarize and analyze the number of cells and...

Description Usage Arguments

View source: R/summarize_cell_types.R

Description

Function to summarize and analyze the number of cells and fraction of each cell type over multiple replicates in a Seurat object.

Usage

1
2
3
4
5
6
7
8
summarize_cell_types(
  seurat_object,
  Replicate_column,
  grouping_var,
  grouping_var_order = NULL,
  save_plot = FALSE,
  output_dir = "."
)

Arguments

seurat_object

The S4 Seurat object which contains filtered and normalized cells in the data slot.

Replicate_column

The column in the meta.data table that contains biological replicate information.

grouping_var_order

User supplied vector of order for grouping variable.

save_plot

logical of whether to save the plot as png. Default = FALSE.

output_dir

Output directory of where to save the plot and corresponding table.

group_by

The column that contains the groups to be compared.


FloWuenne/scFunctions documentation built on June 3, 2021, 6:42 p.m.