get.max.geno: Get the genotype with the highest probability

View source: R/get.max.geno.R

get.max.genoR Documentation

Get the genotype with the highest probability

Description

For each sample at each marker, return the genotype state with the highest probability.

Usage

  get.max.geno(probs)

Arguments

probs

Three dimensional numeric matrix containing the founder haplotype contributions.

Details

If the maximum probability is greater than 0.75, it is called homozygous. Otherwise, we take the two highest probabilities and call heterozygous.

Value

Character matrix containing the genotype with the highest probability at each locus.

Author(s)

Daniel Gatti

Examples

  ## Not run:  get.max.geno(probs) 

dmgatti/DOQTL documentation built on April 7, 2024, 10:35 p.m.