Skip to main content
. 2019 Jan 22;10(2):73. doi: 10.3390/genes10020073
Algorithm 1 Mining Sequential Pattern (Note: min_support is the minimum support threshold, min_mon_wc is the minimal non-wildcard threshold, and last (a) is the last amino acid or nucleotides)
1: Mining (a,Sa)
2:  if |Sa| ≥ min_support then
3:    if non_wc (a) ≥ min_mon_wc and last (a) ≠ x then
4:     if a is a closed pattern then
5:       report a, |Sa|
6:    for each residue b or x do
7:      a: = a with b or x appended to it
8:      Mining (a,Sa)