Learn R Programming

epinetr (version 0.96)

getGeno: Get population unphased genotypes.

Description

Retrieves the current unphased genotypes in the population.

Usage

getGeno(pop)

Arguments

pop

a valid Population object.

Value

Returns an unphased genotypes matrix.

Details

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

See Also

Population, getPhased, getHaplo

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

Run the code above in your browser using DataLab