Algorithm 2: SSE subspace matching. |
Require: q: window size, z: window-sliding size, : the number of amino acids. |
1: Create empty data matrices , , and . |
2: Form first possible window. |
3: for all do |
4: Form column vector . |
5: Expand the corresponding data matrix by adding 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, . |
10: Estimate the rank (using rank estimation technique in [40]). For example, . |
11: Compute a subspace. For example, , i.e., the span of the first columns of . |
12: end for |