Cluster_Stats_All_Samples: Calculate Cluster Stats

View source: R/Statistics.R

Cluster_Stats_All_SamplesR Documentation

Calculate Cluster Stats

Description

Calculates both overall and per sample cell number and percentages per cluster based on orig.ident.

Usage

Cluster_Stats_All_Samples(
  seurat_object,
  group.by = "orig.ident",
  order_by_freq = TRUE
)

Arguments

seurat_object

Seurat object name.

group.by

meta data column to classify samples (default = "orig.ident").

order_by_freq

logical, whether the data.frame should be ordered by frequency of identity (default; TRUE), or by cluster/fector order (FALSE).

Value

A data.frame with rows in order of frequency or cluster order

Examples

## Not run: 
stats <- Cluster_Stats_All_Samples(seurat_object = object, group.by = "orig.ident")

## End(Not run)


scCustomize documentation built on Dec. 11, 2025, 5:08 p.m.