cmatrix.find_mul_seq¶
- cmatrix.find_mul_seq()¶
The main sequence finder algorithm. Return the sequence (if founded) with number of repetition. First thinked as data compressor, it should be used as ARN/ADN sequence analizer :) The algorithm use the various micro-function written above.
Parameters
type
Description
liste
list
The raw data to treat as list
- Returns
- tuple
A tuple containing the sequence as list and the number of repetition as int (if found)
See also
create_mutants()
find_seq_in_list()
count_seq()
suppr_double()
find_max()
Examples
>>> l=[1,2,3,7,3,4,7,3,4,7,3,4] >>> m=[4,2,1,4,2,1,4,2,1,5,7,9] >>> n=[1,2,6,4,5,6,4,5,6,4,5,8,3,9] >>> find_mul_seq(l) ([7, 3, 4], 3) >>> find_mul_seq(m) ([4, 2, 1], 3) >>> find_mul_seq(n) ([6, 4, 5], 3)