get_geno_mat {ALLSPICER}R Documentation

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)

Arguments

AC

allele counts of loci (length 'm')

n_ind

total number of indicitions

Value

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

Examples

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

[Package ALLSPICER version 0.1.9 Index]