Skip to main content
. 2022 Jul 15;24(7):978. doi: 10.3390/e24070978
Algorithm 1SpectralEnvelope (s, k)
Input: DNA sequence s and frequency k
Output: Mapping M
  •  1:

    Compute the set of binary indicator vectors of s

  •  2:

    Compute Xk using (10) and (12)

  •  3:

    Eigendecomposition of Xk*Xk←QΛQ−1

  •  4:

    λk←max(diag(Λ))

  •  5:

    w← eigenvector of λk

  •  6:

    return w