CNVice algorithm. hk and hq are alleles, where k and q represent the number of copies of a gene in each chromosome. The observed diploid copy number, or the total copy number, is denoted by j, where j
=
k
+
q, k and q being natural numbers. The population structure parameter is f (or fCNV), and the probability of an allele to be k is pk. For example, an individual with genotype (h3, h1) for a locus L has 3 copies of the allele in one chromosome, 1 copy on the other, and diploid copy number 4; the probability of the allele to be h3 in the population is given by p3 and of the allele h1 is given by p1. n is the total number of individuals in the sample, and g is the number of iterations. δit is a binary variable that indicates whether the t allele is present in genotype i = (hk, hq). Steps: E, expectation; M, maximization.