powered by
An autosomal marker with n alleles has choose(n+1, 2) possible unordered genotypes. This function returns these as rows in a matrix.
n
choose(n+1, 2)
allGenotypes(n)
An integer matrix with two columns and choose(n+1, 2) rows.
A positive integer.
allGenotypes(3)
Run the code above in your browser using DataLab