Skip to main content
. 2023 May 31;13(6):923. doi: 10.3390/biom13060923
  Algorithm 2: SSE subspace matching.
   Require: q: window size, z: window-sliding size, Na: the number of amino acids.
   1: Create empty data matrices WH, WB, and WL.
   2: Form first possible window.
   3: for all iNa do
   4:      Form (qd)×1 column vector wi=Cα(iq/2+1)Cα(i)Cα(i+q/2)T.
   5:      Expand the corresponding data matrix by adding wi as a new column vector.
   6:      Slide the window by z.
   7: end for
   8: for all data matrices do
   9:      Compute SVD. For example, WH=UHΣHVHT.
       10:      Estimate the rank (using rank estimation technique in [40]). For example,
                rank(WH)=rH.
       11:      Compute a subspace. For example, SH=Span(uH1,,uHrH), i.e., the span
                  of the first rH columns of UH.
       12: end for