getHaploGroupProb: Get haplotype group probability

Description Usage Arguments Details Value

View source: R/mlPhaser.R

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.


mlPhaser documentation built on May 19, 2017, 8:25 p.m.

Search within the mlPhaser package
Search all R packages, documentation and source code