posteriorProbability | R Documentation |
Calculate the posterior probability for integer copy numbers using the bivariate normal prediction regions.
posteriorProbability(object, predictRegion, copyNumber = 0:4, w)
object |
A |
predictRegion |
A list containing the bivariate normal prediction region for each of the possible genotypes. |
copyNumber |
Integer vector. |
w |
numeric vector of prior probabilities for each of the copy
number states. Must be the same length as |
This is currently under development.
An array (features x samples x copy number)
This is under development. Use at your own risk.
R. Scharpf
predictionRegion
, genotypes
data(cnSetExample)
pr <- predictionRegion(cnSetExample, copyNumber=0:4)
pp <- posteriorProbability(cnSetExample, predictRegion=pr)
dim(pp)
## multiple batches
data(cnSetExample2)
pr <- predictionRegion(cnSetExample2, copyNumber=0:4)
pp <- posteriorProbability(cnSetExample2, predictRegion=pr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.