This function calculates allele frequencies from a genotype matrix (sep_gt) for each variant.
It is designed to be used within the batch or window processing framework of process_vcf_in_batches
and process_vcf_in_windows
.
calculateAlleleFreqs(sep_gt)
A data frame containing allele frequencies for each variant.
Genotype matrix similar to the @sep_gt
slot of a vcfR
object.