get_single_geno {ALLSPICER}R Documentation

get_single_geno

Description

simulation function: simulate genotype information for one locus, where 'cnt' samples out of 'n_ind' has the mutation

Usage

get_single_geno(cnt, n_ind)

Arguments

cnt

number of individuals with the mutation

n_ind

total number of individuals

Value

A binary vector representing the genotype information of 'n_ind' individuals for a particular locus, where 'cnt' entries has value 1.

Examples

geno <- get_single_geno(cnt = 100, n_ind = 10000)

[Package ALLSPICER version 0.1.9 Index]