getPhased: Get population phased genotypes.

View source: R/Population_getters.R

getPhasedR Documentation

Get population phased genotypes.

Description

Retrieves the current phased genotypes in the population.

Usage

getPhased(pop)

Arguments

pop

a valid Population object.

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

Population, getHaplo, getGeno

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)

epinetr documentation built on March 18, 2022, 7:01 p.m.