flexdog
.E-step in flexdog
.
get_wik_mat(probk_vec, refvec, sizevec, ploidy, seq, bias, od)
The vector of current prior probabilities of each genotype.
A vector of counts of reads of the reference allele.
A vector of total counts.
The ploidy of the species. Assumed to be the same for each individual.
The starting value of the sequencing error rate.
The starting value of the bias.
The starting value of the overdispersion parameter.
A matrix of numerics. The rows index the individuals and the
columns index the genotype. These weights are used in the EM algorithm
(and is indeed the E-step) in flexdog_full
.
flexdog
for the full EM algorithm.