View source: R/clust_proportions.R
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.
1 | clust_proportions(ser, meta, pdf, csv, cols, cluster_enrichment_pvals)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.