Learn R Programming

polyRAD (version 1.6)

InbreedingFromHindHe: Estimate Inbreeding from Hind/He for a Given Ploidy

Description

After running HindHe and examining the distribution of values across taxa and loci, InbreedingFromHindHe can be used to estimate the inbreeding statistic \(F\) from the median or mode value of \(H_{ind}/H_E\). The statistic estimated encompasses inbreeding from all sources, including population structure, self-fertilization, and preferential mating among relatives. It is intended to be used as input to the process_isoloci.py script.

Usage

InbreedingFromHindHe(hindhe, ploidy)

Value

A number indicating the inbreeding statistic \(F\). This is calculated as:

$$1 - hindhe * ploidy / (ploidy - 1)$$

Arguments

hindhe

A value for \(H_{ind}/H_E\). It should generally range from zero to one.

ploidy

A single integer indicating the ploidy of the population.

Author

Lindsay V. Clark

See Also

HindHe, ExpectedHindHe, readProcessSamMulti, readProcessIsoloci

Examples

Run this code
InbreedingFromHindHe(0.5, 2)
InbreedingFromHindHe(0.4, 2)
InbreedingFromHindHe(0.5, 4)

Run the code above in your browser using DataLab