Collapse a matrix of haplotypes to genotypes
Haps2Genotypes.Rd
Collapse a matrix of haplotypes to genotypes
Arguments
- haps
a vector or
p
xN
matrix of 1s and 0s forN
haplotypes observed atp
loci- ploidy
the ploidy of the underlying organisms, haplotypes corresponding to the same organism are assumed to be stored consecutively in
haps
. Default = 2 (diploid)- method
a character in "additive", "recessive", or "dominant" giving the model of inheritance that should be tested, default = "additive"