build.all.genotype: Build all genotype for a given genome

Description Usage

Description

a genotype is defined by two gamete. Since an gamete can be defined by its index, i.e. a number, a genotype can be seen as two number. This function return all the possible genotype for a given genome, i.e. all the possible pairs of number. Notice that the pair is not order so is c(1,2) is equivalent to c(2,1) and only one is return. Moreover, this function check that only compatible gamete are combine. Therefore genotype of the form YY would not be returned.

Usage

1

frederic-michaud/hapex documentation built on May 15, 2019, 3:29 p.m.