public class AlleleFreqCache
Cache for allele frequency statistics. Allele frequency can be expensive to recalculate at large scale, so these class efficiently loops through blocks of sites and caches the statistics on them.
public static int SITE_BLOCK_MASK
public static int UNKNOWN_COUNT
public static int UNKNOWN_GAMETE_COUNT
public static int HETEROZYGOUS_COUNT
public static int HOMOZYGOUS_COUNT
public AlleleFreqCache(GenotypeCallTable genotype, int maxNumAlleles)
public kotlin.Array[] getAllelesSortedByFrequency(int site)
public static kotlin.Array[] allelesSortedByFrequencyNucleotide(kotlin.Array[] data)
public static Stats allelesSortedByFrequencyAndCountsNucleotide(int index, kotlin.Array[] data)
public static byte majorAllele(kotlin.Array[] alleles)
public static double majorAlleleFrequency(kotlin.Array[] alleles)
public static byte minorAllele(kotlin.Array[] alleles)
public static double minorAlleleFrequency(kotlin.Array[] alleles)
public static int totalGametesNonMissingForSite(kotlin.Array[] alleles)
public static double proportionHeterozygous(kotlin.Array[] counts,
int totalCount)
public static double proportionHeterozygous(kotlin.Array[] data)