get_single_geno: get_single_geno

View source: R/utils.R

get_single_genoR 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)

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