Learn R Programming

GenoPop (version 1.0.0)

calculateAlleleFreqs: Calculate Allele Frequencies from Genotype Matrix

Description

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.

Usage

calculateAlleleFreqs(sep_gt)

Value

A data frame containing allele frequencies for each variant.

Arguments

sep_gt

Genotype matrix similar to the @sep_gt slot of a vcfR object.