View source: R/expression_fit.R
estimate.exp.prob.values | R Documentation |
This function estimates the expression probability of each gene in pseudobulk with a certain cutoff of more than min.counts UMI counts, based on the mean and the disperion value of each gene
estimate.exp.prob.values(
mu,
size,
nCellsCt,
nSamples,
min.counts = 3,
perc.indiv.expr = 0.5,
cutoffVersion = "absolute"
)
mu |
Estimated mean value in sc data per gene (vector) |
size |
Estimated size parameter in sc data from the negative binomial fit (1/dispersion parameter), also per gene (vector) |
nCellsCt |
Mean number of cells per individual and cell type |
nSamples |
Total sample size |
min.counts |
Expression cutoff in one individual: if cutoffVersion=absolute, more than this number of UMI counts for each gene per individual and cell type is required; if cutoffVersion=percentage, more than this percentage of cells need to have a count value large than 0 |
perc.indiv.expr |
Expression cutoff on the population level: if number < 1, percentage of individuals that need to have this gene expressed to define it as globally expressed; if number >=1 absolute number of individuals that need to have this gene expressed |
cutoffVersion |
Either "absolute" or "percentage" leading to different interpretations of min.counts (see description above) |
Vector with expression probabilities for each gene
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.