clust_proportions: Creates cluster proportions and plots from metadata.

Description Usage Arguments

View source: R/clust_proportions.R

Description

Creates a pdf of pie charts (one for each cluster with proportions from the given metadata) and a csv of raw cell numbers by cluster and metadata. It also uses a permutation based test to determine statistical enrichment of clusters by the given metadata. The stats are returned in the subtitles of the pie charts.

Usage

1
clust_proportions(ser, meta, pdf, csv, cols, cluster_enrichment_pvals)

Arguments

ser

Seurat object with clusters and given metadata

meta

Name of metadata in ser object to get cluster proportions

pdf

Name of output pdf file

csv

Name of output csv to save cell numbers by cluster/meta

cluster_enrichment_pvals

Boolean for whether to calculate pvals


Chris-Cherry/sctools documentation built on Jan. 25, 2022, 2:19 p.m.