predict_NMM | R Documentation |
Returns allele dosage as the maximum a posteriori (MAP) genotype based on a normal mixture model (NMM)
predict_NMM(x, params, ploidy, min.posterior = 0, transform = TRUE)
x |
vector of input values |
params |
vector of parameters for the normal mixture model |
ploidy |
2 or 4 |
min.posterior |
minimum posterior probability for a genotype call to be made |
transform |
TRUE/FALSE whether to apply an arcsin square root transformation |
The input values should fall within the interval [0,1]. The vector of model parameters should be ordered as follows: means, standard deviations, mixture probabilities. If the posterior probability of the MAP genotype is less than 'min.posterior', then 'NA' is returned for that sample. By default, an arcsin square root transformation is applied to the input values, as this is the approach used by the 'fitPoly' package.
vector of allele dosages (0,1,2,..ploidy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.