Learn R Programming

epinetr (version 0.96)

getPhased: Get population phased genotypes.

Description

Retrieves the current phased genotypes in the population.

Usage

getPhased(pop)

Arguments

pop

a valid Population object.

Value

Returns a phased genotypes matrix.

Details

getPhased retrieves the current phased genotypes in the population, returning a single matrix with one individual per row and two columns per SNP.

See Also

Population, getHaplo, getGeno

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab