# Path: alfpy/ncd.py
# def complexity(s):
#     def __init__(self, seq_records):
#     def __precompute_complexity(self):
#     def pairwise_distance(self, seq1idx, seq2idx):
# 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 ncd
from alfpy.utils import distmatrix
from . import utils




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

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

    def test_complexity1(self):
        seq = 'AACGTACCATTGAACGTACCGTAGG'
        c = ncd.complexity(seq)
        self.assertEqual(c, 26)

    def test_complexity2(self):
        seq = 'MFTDNAKIIIVQLNASVEINCTRPNNNTR'

# Path: alfpy/ncd.py
# def complexity(s):
#     def __init__(self, seq_records):
#     def __precompute_complexity(self):
#     def pairwise_distance(self, seq1idx, seq2idx):
# 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_ncd.py
import unittest
from alfpy import ncd
from alfpy.utils import distmatrix
from . import utils





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

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

    def test_complexity1(self):
        seq = 'AACGTACCATTGAACGTACCGTAGG'
        c = ncd.complexity(seq)
        self.assertEqual(c, 26)

    def test_complexity2(self):
        seq = 'MFTDNAKIIIVQLNASVEINCTRPNNNTR'

        c = ncd.complexity(seq)