calculate_heterozygosity: Calculate heterozygosity

View source: R/calculate_heterozygosity.R

calculate_heterozygosityR 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


thijsjanzen/GenomeAdmixR documentation built on Feb. 16, 2024, 7:27 p.m.