loadGeno {epinetr} | R Documentation |
Load epinetr genotype file.
Description
Load genotypes from a previous epinetr session.
Usage
loadGeno(filename)
Arguments
filename |
the filename for the epinetr genotypes file. |
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.
Value
a numeric matrix holding the genotypes
Author(s)
Dion Detterer, Paul Kwan, Cedric Gondro
See Also
Examples
# 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
)
[Package epinetr version 0.96 Index]