View source: R/epinetr_utils.R
| loadGeno | R Documentation |
Load genotypes from a previous epinetr session.
loadGeno(filename)
filename |
the filename for the epinetr genotypes file. |
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.
a numeric matrix holding the genotypes
Dion Detterer, Paul Kwan, Cedric Gondro
Population
# 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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.