getGeno {epinetr}R Documentation

Get population unphased genotypes.

Description

Retrieves the current unphased genotypes in the population.

Usage

getGeno(pop)

Arguments

pop

a valid Population object.

Details

getGeno retrieves the current unphased genotypes in the population, returning a single matrix with one individual per row and one SNP per column.

Value

Returns an unphased genotypes matrix.

Author(s)

Dion Detterer, Paul Kwan, Cedric Gondro

See Also

Population, getPhased, getHaplo

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 <- getGeno(pop)

[Package epinetr version 0.96 Index]