Convert posterior genotype probability to a SnpMatrix object
probabilityToSnpMatrix.RdConvert a matrix of posterior genotype probabilites P(AA), P(AB), P(BB) to a SnpMatrix.
Details
probabilityToSnpMatrix converts a matrix of posterior
probabilites of genotype calls into a
SnpMatrix.
Value
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.