multi_kl_divergence {mispitools}R Documentation

Multi-dataset Kullback-Leibler Divergence Calculation

Description

This function calculates the Kullback-Leibler divergence for all pairs of provided datasets, considering allele frequencies. It normalizes data, adjusts zero frequencies, and computes KL divergence in both directions for each pair.

Usage

multi_kl_divergence(datasets, minFreq = 1e-10)

Arguments

datasets

List of dataframes, each containing allele frequencies for different populations.

minFreq

Minimum frequency to be considered for unobserved or poorly observed alleles.

Value

A matrix containing the Kullback-Leibler divergence for each dataset pair.

Examples

kl_matrix <- multi_kl_divergence(list(Argentina, BosniaHerz, Europe))

[Package mispitools version 1.1.0 Index]