Computes alternative allele frequencies from genotypes by dividing the total
number of alternative alleles by the total number of gene copies.
Usage
Ifreqs(nDip, genotypes)
Value
a list of allele frequencies. Each entry of the list corresponds to a
different locus.
Arguments
nDip
an integer representing the total number of diploid individuals
to simulate. Note that scrm::scrm() actually simulates haplotypes, so the
number of simulated haplotypes is double of this.
genotypes
a list of simulated genotypes, where each entry is a matrix
corresponding to a different locus. At each matrix, each column is a
different SNP and each row is a different individual.