calculate_heterozygosity {GenomeAdmixR}R Documentation

Calculate heterozygosity

Description

Calculate the average population level heterozygosity

Usage

calculate_heterozygosity(source_pop, locations, progress_bar = FALSE)

Arguments

source_pop

Population for which to estimate allele frequencies, or a list of individuals for which to calculate average heterozygosity

locations

A vector indicating the locations (in Morgan) of markers for which to calculate the heterozygosity

progress_bar

Displays a progress_bar if TRUE. Default value is TRUE

Value

A tibble containing the heterozygosities


[Package GenomeAdmixR version 2.1.7 Index]