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

View source: R/utils_helpers.R

dist_prob_to_classR Documentation

Returns the class with the highest probability in a genotype probability distribution. Function from MAPpoly.

Description

Returns the class with the highest probability in a genotype probability distribution. Function from MAPpoly.

Usage

dist_prob_to_class(geno, prob.thres = 0.9)

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

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


viewpoly documentation built on May 29, 2024, 1:26 a.m.