summaryAllelicRatio {airpart} | R Documentation |
Oroduce allelic ratio summaries for each gene cluster
summaryAllelicRatio(sce, genecluster)
sce |
SingleCellExperiment |
genecluster |
an optional vector of gene cluster IDs. if nothing is given, all cluster's summaries will be calculated |
a list of gene cluster summary tables containing:
weighted.mean weighted mean of allelic ratio for the cell types
mean mean allelic ratio for the cell types
var variance of allelic ratio for the cell types
is returned in metadata summary
library(S4Vectors) sce <- makeSimulatedData() sce <- preprocess(sce) sce <- geneCluster(sce, G = 1:4) sce <- summaryAllelicRatio(sce, genecluster = c(1, 3)) metadata(sce)$summary