Learn R Programming

PolyHaplotyper (version 1.0.1)

totHapcombCount: 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

Value

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

Details

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

Examples

Run this code
# NOT RUN {
totHapcombCount(ploidy=4, nmrk=c(1:8))
# }

Run the code above in your browser using DataLab