View source: R/splatPop-simulate.R
splatPopQuantNorm | R Documentation |
For each sample, expression values are quantile normalized (qgamma) using the gamma distribution parameterized from splatEstimate(). This ensures the simulated gene means reflect the distribution expected from a sc dataset and not a bulk dataset.
splatPopQuantNorm(params, means)
params |
SplatPopParams object containing parameters for population
scale simulations. See |
means |
Mean gene expression matrix with eQTL effects. |
matrix of quantile normalized gene mean expression levels.
if (requireNamespace("VariantAnnotation", quietly = TRUE) &&
requireNamespace("preprocessCore", quietly = TRUE)) {
bulk.means <- mockBulkMatrix(n.genes = 100, n.samples = 100)
bulk.qnorm <- splatPopQuantNorm(newSplatPopParams(), bulk.means)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.