Skip to main content
. 2017 Jun 1;24(6):558–570. doi: 10.1089/cmb.2016.0146

Algorithm 1.

2SNV Algorithm

Procedure 1: constructing the consensus haplotype for all reads:
   Initialize the set of all clusters with a single cluster with all reads Inline graphic
   For each position i find allele of highest frequency ai
    Inline graphic
Procedure 2: partitioning reads into simple clusters
   while not all clusters are simple do
    for each non-simple cluster Inline graphicdo
      if no pair SNVs is linked according to (2–4) then
       Regard C as a simple cluster
     else
      Find a pair of linked SNVs I2 and J2 minimizing (3)
      Find the set C1 of all reads with the 2-haplotype Inline graphic
      Find the consensus Inline graphic
      Inline graphic
       Inline graphic, Inline graphic
       Inline graphic
 Procedure 3: estimating frequencies of the consensuses of simple clusters
  Run kGEM algorithm for the set of haplotypes Inline graphic.