totHapcombCount {PolyHaplotyper}R Documentation

calculate the total nr of possible haplotype combinations

Description

calculate the total nr of possible haplotype combinations

Usage

totHapcombCount(ploidy, nmrk)

Arguments

ploidy

a vector of 1 or more ploidy levels

nmrk

a vector of 1 or more numbers of markers per haploblock

Details

nmrk is used to calculate the total number of possible haplotypes = 2^nmrk. The shorter vector of ploidy and nmrk is recycled.

Value

a vector with the number of possible haplotype combinations for each pair of ploidy and nmrk values

Examples

totHapcombCount(ploidy=4, nmrk=c(1:8))

[Package PolyHaplotyper version 1.0.1 Index]