# Path: alfpy/lempelziv.py
# def complexity(s):
# def complexity1(seq):
# def is_reproducible(seq, index, hist_len, last_match=0):
#     def __init__(self, seq_records, disttype='d1_star'):
#     def __precompute_complexity(self):
#     def __get_complexity(self, seq1idx, seq2idx):
#     def pwdist_d(self, seq1idx, seq2idx):
#     def pwdist_d_star(self, seq1idx, seq2idx):
#     def pwdist_d1(self, seq1idx, seq2idx):
#     def pwdist_d1_star(self, seq1idx, seq2idx):
#     def pwdist_d1_star2(self, seq1idx, seq2idx):
#     def set_disttype(self, disttype):
# def main():
# class Distance:
# 
# Path: alfpy/utils/distmatrix.py
# def create(id_list, distance):
# def read_highcharts_matrix(id_list, data):
#     def __init__(self, id_list, data):
#     def normalize(self):
#     def __iter__(self):
#     def writer(self, handle, f, decimal_places):
#     def display(self, f="phylip", decimal_places=7):
#     def write_to_file(self, handle, f="phylip", decimal_places=7):
#     def highcharts(self):
#     def format(self, decimal_places=7):
#     def min(self):
#     def max(self):
#     def is_zero(self):
#     def __repr__(self):
# class Matrix():


import unittest
from alfpy import lempelziv
from alfpy.utils import distmatrix
from . import utils




class VectorTest(unittest.TestCase, utils.ModulesCommonTest):

    def __init__(self, *args, **kwargs):
        super(VectorTest, self).__init__(*args, **kwargs)
        utils.ModulesCommonTest.set_test_data()

    def test_complexity(self):
        seq = 'MFTDNAKIIIVQLNASVEINCTRPNNNTR'
        c = lempelziv.complexity(seq)
        self.assertEqual(c, 19)

    def test_complexity1(self):
        seq = 'MFTDNAKIIIVQLNASVEINCTRPNNNTR'
        c = lempelziv.complexity1(seq)
        self.assertEqual(c, 20)

    def test_complexities(self):

# Path: alfpy/lempelziv.py
# def complexity(s):
# def complexity1(seq):
# def is_reproducible(seq, index, hist_len, last_match=0):
#     def __init__(self, seq_records, disttype='d1_star'):
#     def __precompute_complexity(self):
#     def __get_complexity(self, seq1idx, seq2idx):
#     def pwdist_d(self, seq1idx, seq2idx):
#     def pwdist_d_star(self, seq1idx, seq2idx):
#     def pwdist_d1(self, seq1idx, seq2idx):
#     def pwdist_d1_star(self, seq1idx, seq2idx):
#     def pwdist_d1_star2(self, seq1idx, seq2idx):
#     def set_disttype(self, disttype):
# def main():
# class Distance:
# 
# Path: alfpy/utils/distmatrix.py
# def create(id_list, distance):
# def read_highcharts_matrix(id_list, data):
#     def __init__(self, id_list, data):
#     def normalize(self):
#     def __iter__(self):
#     def writer(self, handle, f, decimal_places):
#     def display(self, f="phylip", decimal_places=7):
#     def write_to_file(self, handle, f="phylip", decimal_places=7):
#     def highcharts(self):
#     def format(self, decimal_places=7):
#     def min(self):
#     def max(self):
#     def is_zero(self):
#     def __repr__(self):
# class Matrix():


# Path: tests/test_lempelziv.py
import unittest
from alfpy import lempelziv
from alfpy.utils import distmatrix
from . import utils





class VectorTest(unittest.TestCase, utils.ModulesCommonTest):

    def __init__(self, *args, **kwargs):
        super(VectorTest, self).__init__(*args, **kwargs)
        utils.ModulesCommonTest.set_test_data()

    def test_complexity(self):
        seq = 'MFTDNAKIIIVQLNASVEINCTRPNNNTR'
        c = lempelziv.complexity(seq)
        self.assertEqual(c, 19)

    def test_complexity1(self):
        seq = 'MFTDNAKIIIVQLNASVEINCTRPNNNTR'
        c = lempelziv.complexity1(seq)
        self.assertEqual(c, 20)

    def test_complexities(self):

        dist = lempelziv.Distance(self.pep_records)