check_geno: Check a matrix of genotypes for completeness

View source: R/geno_functions.R

check_genoR Documentation

Check a matrix of genotypes for completeness

Description

Check a matrix of genotypes for completeness

Usage

check_geno(genome, geno, ignore.gen.model = FALSE)

Arguments

genome

An object of class genome.

geno

Genotype data on a population to phenotype. Must be a matrix of dimensions n.ind x n.loci, the elements of which must be z 0, 1, 2, or a list of such matrices.

ignore.gen.model

Logical - should the genetic model be ignored when checking the matrix of genotypes?

Examples


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)


neyhartj/qgsim documentation built on Nov. 11, 2023, 4:08 p.m.