totHapcombCount: calculate the total nr of possible haplotype combinations

Description Usage Arguments Details Value Examples

View source: R/PolyHaplotyper.R

Description

calculate the total nr of possible haplotype combinations

Usage

1
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

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

PolyHaplotyper documentation built on June 17, 2021, 5:12 p.m.