Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/methods-genotypeToSnpMatrix.R
Convert a matrix of posterior genotype probabilites P(AA), P(AB), P(BB) to a SnpMatrix.
1 | probabilityToSnpMatrix(probs)
|
probs |
Matrix with three columns for the posterior probabilities of the three genotypes: "P(A/A)", "P(A/B)", "P(B/B)". Each row must sum to 1. |
probabilityToSnpMatrix
converts a matrix of posterior
probabilites of genotype calls into a
SnpMatrix.
An object of class "SnpMatrix"
with one row (one sample).
Posterior probabilities are encoded (approximately) as byte
values, one per SNP. See
the help page for SnpMatrix for complete
details of the class structure.
Stephanie Gogarten <sdmorris@u.washington.edu>
genotypeToSnpMatrix, SnpMatrix
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.