View source: R/ComputeClustersByTrt.R
| ComputeClustersByTrt | R Documentation | 
Given a Seurat object and treatment variable, compare clusters between levels of the treatment
ComputeClustersByTrt( obj, trt_var, rep_var, group_by = NULL, ci = TRUE, ci_alpha = 0.05 )
obj | 
 Seurat object  | 
trt_var | 
 Treatment variable  | 
rep_var | 
 Replicate/Individual ID variable  | 
group_by | 
 Name of grouping variable (default is Idents)  | 
ci | 
 Whether to plot binomial confidence intervals (Jeffreys)  | 
pbmc_small$trt <- sample(c('drug', 'control'), ncol(pbmc_small), replace=TRUE)
pbmc_small$genotype <- sample(c('1', '2', '3'), ncol(pbmc_small), replace=TRUE)
head(ComputeClustersByTrt(pbmc_small, trt, genotype))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.