powered by
simulation function: simulate genotype information for one locus, where `cnt` samples out of `n_ind` has the mutation
get_single_geno(cnt, n_ind)
A binary vector representing the genotype information of `n_ind` individuals for a particular locus, where `cnt` entries has value 1.
number of individuals with the mutation
total number of individuals
geno <- get_single_geno(cnt = 100, n_ind = 10000)
Run the code above in your browser using DataLab