allelicRatio {airpart} | R Documentation |
This function performs additional inference on the allelic ratio across cell types, giving posterior mean and credible intervals per cell type. A Cauchy prior is centered for each cell type on the allelic ratio from the fused lasso across all genes in the gene cluster (or using a weighted means if the fused lasso is not provided).
allelicRatio(sce, level = 0.95, ...)
sce |
A SingleCellExperiment containing assays
( |
level |
the level of credible interval (default is 0.95) |
... |
arguments to pass to |
posterior mean ("ar"
) for allelic ratio
estimate is returned in the rowData for each cell type,
as well as the "s"
value and
credible interval ("lower"
and "upper"
).
sce <- makeSimulatedData() sce <- preprocess(sce) sce <- geneCluster(sce, G = seq_len(4)) sce_sub <- wilcoxExt(sce, genecluster = 1) sce_sub <- allelicRatio(sce_sub)