Learn R Programming

mappoly (version 0.4.1)

dist_prob_to_class: Returns the class with the highest probability in a genotype probability distribution

Description

Returns the class with the highest probability in a genotype probability distribution

Usage

dist_prob_to_class(geno, prob.thres = 0.9)

Value

a matrix containing the doses of each genotype and marker. Markers are disposed in rows and individuals are disposed in columns. Missing data are represented by NAs

Arguments

geno

the probabilistic genotypes contained in the object 'mappoly.data'

prob.thres

probability threshold to select the genotype. Values below this genotype are assumed as missing data

Examples

Run this code
# \donttest{
geno.dose <- dist_prob_to_class(hexafake.geno.dist$geno)
geno.dose$geno.dose[1:10,1:10]
# }   

Run the code above in your browser using DataLab