Learn R Programming

epinetr (version 0.96)

loadGeno: Load epinetr genotype file.

Description

Load genotypes from a previous epinetr session.

Usage

loadGeno(filename)

Arguments

filename

the filename for the epinetr genotypes file.

Value

a numeric matrix holding the genotypes

Details

When outputting all genotypes during an epinetr simulation run, the genotypes will be written to a serialised format unique to epinetr. The loadGeno function will load these genotypes into memory as a single matrix object.

See Also

Population

Examples

Run this code
# NOT RUN {
# Load genotype file
filename <- system.file("extdata", "geno.epi", package = "epinetr")
geno <- loadGeno(filename)

# Use genotypes as basis for new population
pop <- Population(
  map = map100snp, QTL = 20, genotypes = geno,
  broadH2 = 0.8, narrowh2 = 0.6, traitVar = 40
)
# }

Run the code above in your browser using DataLab