View source: R/bidirectionalKL.R
bidirectionalKL | R Documentation |
This function calculates the Kullback-Leibler divergence for shared genetic markers between two populations, considering allele frequencies. It normalizes data, adjusts zero frequencies, and calculates divergence in both directions.
bidirectionalKL(data1, data2, minFreq = 1e-10)
data1 |
DataFrame with allele frequencies for the first population. |
data2 |
DataFrame with allele frequencies for the second population. |
minFreq |
Minimum frequency to be considered for unobserved or poorly observed alleles. |
A list containing the Kullback-Leibler divergence from data1 to data2 and vice versa.
bidirectionalKL(Argentina, BosniaHerz)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.