View source: R/expression_fit.R
estimate.mean.dsp.values | R Documentation |
This function estimates the mean and dispersion of each gene (in a single cell, before pseudobulk aggregation) dependent on the read depth and the gamma mixture distribution
estimate.mean.dsp.values(
readDepth,
read.umi.fit,
gamma.mixed.fits,
ct,
disp.fun.param,
nGenes = 21000,
samplingMethod = "quantiles"
)
readDepth |
Target read depth per cell |
read.umi.fit |
Data frame for fitting the mean UMI counts per cell depending on the mean readds per cell (required columns: intercept, reads (slope)) |
gamma.mixed.fits |
Data frame with gamma mixed fit parameters for each cell type (required columns: parameter, ct (cell type), intercept, meanUMI (slope)) |
ct |
Cell type of interest (name from the gamma mixed models) |
disp.fun.param |
Function to fit the dispersion parameter dependent on the mean (required columns: ct (cell type), asymptDisp, extraPois (both from taken from DEseq)) |
nGenes |
Number of genes to simulate (should match the number of genes used for the fitting) |
samplingMethod |
Approach to sample the gene mean values (either taking quantiles or random sampling) |
Data frame with mean and dispersion value for each gene
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.