View source: R/makeSimulatedData.R
makeSimulatedData | R Documentation |
Make simulated data for airpart
makeSimulatedData( mu1 = 2, mu2 = 10, nct = 4, n = 30, ngenecl = 50, theta = 20, ncl = 3, p.vec = rep(c(0.2, 0.8, 0.5, 0.5, 0.7, 0.9), each = 2), totalClusters = FALSE )
mu1 |
low count (typical of "noisy" ratio estimates) |
mu2 |
high count |
nct |
number of cell types |
n |
number of cells per cell type |
ngenecl |
number of genes per cluster |
theta |
overdispersion parameter (higher is closer to binomial) |
ncl |
number of gene cluster |
p.vec |
the allelic ratio vector which follows gene cluster order. (length is nct * ncl) |
totalClusters |
logical, whether cell types should cluster by total count |
SingleCellExperiment with the following elements as assays
a1 allelic count matrix for the numerator/effect allele
a2 allelic count matrix for the denominator/non-effect allele
true.ratio a matrix of the true probabilities (allelic ratios) for the cell types
Also x
in the colData is a vector of annotated
cell types in the same order as cells in count matrix
library(SummarizedExperiment) sce <- makeSimulatedData() assayNames(sce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.