Get haplotype group probability

Share:

Description

Combine probabilities across a haplotype group

Usage

1
2
  getHaploGroupProb(haploGroup, haploFreqs,
    method = "basic", returnLog = FALSE)

Arguments

haploGroup

A list of haplotypes. Only the names attribute is important.

haploFreqs

The frequencies of haplotypes as a named vector.

method

Only one method currently ("basic").

returnLog

Whether to output the combined probability as a natural log. Default=FALSE.

Details

Each haplotype might have a probability of being found. e.g. the population frequency. This function combines probabilities of a group of haplotypes

Value

A numeric likelihood representing the combined probability across a group.