Description Usage Arguments Details Value Author(s) See Also Examples
Simulate a count table follows negative binomial or Poisson distribution.
1 |
mle1 |
A matrix of two columns. The mean (1st column) and dispersions(2nd column) for the baseline group. |
nsamp |
Number of samples per group. |
lfc |
The log2 fold change used to determine the mean of second group. |
null |
Logical, whether the second group is equal to the first. |
sdd |
A scalar vector. The normalizing factor is assumed to be distributed as exp(Norm(0, sdd)). The default value is estimated from the Montgomery data. |
norm |
Whether to generate artificial normalizing factors. |
Given a matrix of parameters, we generate the first group of negative binomial distributed synthetic RNA-seq data with the mean equal to the first column of mle, and the dispersion equals to the second column of mle. The second group shares same dispersions but the mean is calculated so that the log2 fold change is equal to lfc. When the entries in the second group is smaller or equal to zero. A Poisson distributed data will be generated instead.
cd |
A numeric matrix of synthetic RNA-seq data |
cond |
Vector or factors giving the experimental group/condition. |
Yilun Zhang, David Rocke
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.