Description Usage Arguments Details Value References Examples
View source: R/bp.sim.control.R
Creates control samples for simulations involving Beta-Poisson (BP) models
1 | bp.sim.control(DATA,N1,seedex)
|
DATA |
matrix of single-cell RNA-sequencing expression data with genes in rows and samples (cells) in columns |
N1 |
size of the samples drawn from the control BP models |
seedex |
seed used for sampling from the fitted BP models to ensure reproducibility |
Creates control samples for simulations involving BP models. For a given single-cell RNA-sequencing data set, a five-parameter BP model (Vu et al., 2016) is fitted to each gene. Then, it is checked whether the BP model is actually a good fit following the procedure in Vu et al. (2016), and instances with a good fit are kept. For each of those well-fitted genes, a sample of size N1 is drawn from the respective fitted BP model.
A list of two:
samples.bp.wellfit: matrix with simulated control single-cell RNA-sequencing expression data of dimension GxN1, where G is the number of well-fitted genes by the BP models
parameters.bp.wellfit: matrix with G rows containing the fitting results for the corresponding BP models in the columns, namely the parameters alpha, beta, lambda1, lambda2 and p0 as in Vu et al. (2016) or Schefzik (2021) and the Monte-Carlo-method-based p-value MCpval derived to check the validity of the BP fit (here, a fit is considered to be reasonably good if MCpval>0.05)
R. Schefzik (2021). SimBPDD: Simulating differential distributions in Beta-Poisson models, in particular for single-cell RNA-sequencing data. Annales Mathematicae et Informaticae, 53:283-298. Available at https://ami.uni-eszterhazy.hu/uploads/papers/finalpdf/AMI_53_from283to298.pdf
T. N. Vu, Q. F. Wills, K. R. Kalari, N. Niu, L. Wang, M. Rantalainen, and Y. Pawitan (2016). Beta-Poisson model for single-cell RNA seq data analyses. Bioinformatics, 32:2128-2135.
1 2 3 | N1<-500
seedex<-24
ctrl<-bp.sim.control(DATA.EX,N1,seedex)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.