getPhased {epinetr} | R Documentation |
Get population phased genotypes.
Description
Retrieves the current phased genotypes in the population.
Usage
getPhased(pop)
Arguments
pop |
a valid |
Details
getPhased
retrieves the current phased genotypes in the population,
returning a single matrix with one individual per row and two
columns per SNP.
Value
Returns a phased genotypes matrix.
Author(s)
Dion Detterer, Paul Kwan, Cedric Gondro
See Also
Examples
# Construct a population
pop <- Population(
popSize = 200, map = map100snp, QTL = 20,
alleleFrequencies = runif(100),
broadH2 = 0.9, narrowh2 = 0.6, traitVar = 40
)
# Retrieve genotypes
geno <- getPhased(pop)
[Package epinetr version 0.96 Index]