Learn R Programming

ALLSPICER (version 0.1.9)

get_geno_mat: get_geno_mat

Description

simulation function: simulate genotype information for a set of loci with allele counts `AC`

Usage

get_geno_mat(AC, n_ind)

Value

An `n_ind`x`m` matrix of genotype information of `n_ind` individuals and `m` variants

Arguments

AC

allele counts of loci (length `m`)

n_ind

total number of indicitions

Examples

Run this code
geno_mat <- get_geno_mat(AC = c(20, 50, 10, 1, 5), n_ind = 10000)

Run the code above in your browser using DataLab