get_af_mat: get_af_mat

View source: R/utils.R

get_af_matR Documentation

get_af_mat

Description

simulation function: compute allele frequency information variants with allele counts stored in diagonal matrix 'AC' from a population of sample size 'n_ind'

Usage

get_af_mat(AC, n_ind)

Arguments

AC

a diagonal matrix of allele count information for all variants

n_ind

total number of individuals in the population

Value

A 'n_var'x'n_var' diagnal matrix of allele frequency information for 'n_var' (dimension of 'AC') variants

Examples

af_mat <- get_af_mat(AC = c(20, 50, 10, 1, 5), n_ind = 10000)

ALLSPICER documentation built on Oct. 17, 2024, 1:06 a.m.