hap2geno {poolHelper} | R Documentation |
Convert haplotypes to genotypes
Description
This function converts haplotypes simulated with scrm::scrm()
into
genotypes by adding the entries on one row with the entries of the subsequent
row.
Usage
hap2geno(haplo)
Arguments
haplo |
a matrix of haplotypes obtained from the simulations done with
|
Value
a matrix of genotypes with half the rows of the haplo
matrix. Each
column of this matrix is a different site and each row is a different
genotype.
[Package poolHelper version 1.1.0 Index]