View source: R/geno_functions.R
check_geno | R Documentation |
Check a matrix of genotypes for completeness
check_geno(genome, geno, ignore.gen.model = FALSE)
genome |
An object of class |
geno |
Genotype data on a population to phenotype. Must be a matrix of dimensions
|
ignore.gen.model |
Logical - should the genetic model be ignored when checking the matrix of genotypes? |
n.mar <- c(505, 505, 505)
len <- c(120, 130, 140)
genome <- sim_genome(len, n.mar)
# Randomly generate 15 QTL with additive allelic effects following a
# genometric series
qtl.model <- matrix(nrow = 15, ncol = 4)
genome <- sim_gen_model(genome, qtl.model, add.dist = "geometric")
# Create a random population
pop <- sim_pop(genome = genome, n.ind = 200)
check_geno(genome, pop$geno)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.