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.
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
)
List of three components:
List of vectors for each gamma value of ratios between predicted and actual variances across all sampled genes and neighbourhoods.
List of noise objects obtained from compTBNoise
for each gamma value.
Vector of total transcript counts for all cells
List object with k nearest neighbour information returned by pruneKnn
.
Matrix of gene expression values with genes as rows and cells as columns. These values have to correspond to unique molecular identifier counts.
Vector of gamma
-values to test for the Cauchy prior distribution. Default is c(0.2,0.5,1,5,1000)
. Large values correspond to weak priors (gamma=1000
corresponds to a maximum likelihood estimate).
Integer number. Random seed to enforce reproducible gene sampling. Default is 12345.
Positive integer number. Randomly sampled number of genes (from rownames of expData
) used for noise estimation. Genes are sampled uniformly across the entire expression range. Default is 200.
Input parameter for compTBNoise
. See help(compTBNoise)
.
Input parameter for compTBNoise
. See help(compTBNoise)
.
Input parameter for compTBNoise
. See help(compTBNoise)
.
Input parameter for compTBNoise
. See help(compTBNoise)
.
Input parameter for compTBNoise
. See help(compTBNoise)
.
Input parameter for compTBNoise
. See help(compTBNoise)
.