testPrior {RaceID} | R Documentation |
Posterior check of the model
Description
This functions compares variance estimates obtained from the maximum a posterior estimate with a given prior to the data. The ratio between the predicted variance and the actual variance for a random subset of genes is computed across all pruned k nearest neighbourhoods.
Usage
testPrior(
res,
expData,
gamma = c(0.2, 0.5, 1, 5, 1000),
rseed = 12345,
ngenes = 200,
pvalue = 0.01,
minN = 5,
no_cores = NULL,
x0 = 0,
lower = 0,
upper = 100
)
Arguments
res |
List object with k nearest neighbour information returned by |
expData |
Matrix of gene expression values with genes as rows and cells as columns. These values have to correspond to unique molecular identifier counts. |
gamma |
Vector of |
rseed |
Integer number. Random seed to enforce reproducible gene sampling. Default is 12345. |
ngenes |
Positive integer number. Randomly sampled number of genes (from rownames of |
pvalue |
Input parameter for |
minN |
Input parameter for |
no_cores |
Input parameter for |
x0 |
Input parameter for |
lower |
Input parameter for |
upper |
Input parameter for |
Value
List of three components:
pp.var.ratio |
List of vectors for each gamma value of ratios between predicted and actual variances across all sampled genes and neighbourhoods. |
noise |
List of noise objects obtained from |
tc |
Vector of total transcript counts for all cells |