# Path: anoisetools/sff.py
# FLOW_ORDER = 'TACG'
# READ_BEGIN = 'TCAG'
# def cumsum(iterable):
# def find_clip(seqrecord):
# def flow_to_seq(flowgram, flow_order=FLOW_ORDER):
# def bases_from_flows(seq_record):
# def flows_to_string(seq_record):


import unittest
from anoisetools import sff


class TestFlowToSeq(unittest.TestCase):

    def setUp(self):
        self.test_flow = [0.18, 1.03, 1.02, 0.70, 1.12, 0.07, 0.14, 4.65]
        self.test_expected = 'ACGTGGGGG'
        self.test_flow_int = [int(i*100) for i in self.test_flow]

    def test_flow_to_seq(self):
        actual = sff.flow_to_seq(self.test_flow)
        self.assertEqual(self.test_expected, actual)

    def test_flow_to_seq_int(self):

# Path: anoisetools/sff.py
# FLOW_ORDER = 'TACG'
# READ_BEGIN = 'TCAG'
# def cumsum(iterable):
# def find_clip(seqrecord):
# def flow_to_seq(flowgram, flow_order=FLOW_ORDER):
# def bases_from_flows(seq_record):
# def flows_to_string(seq_record):


# Path: anoisetools/test/test_sff.py
import unittest
from anoisetools import sff



class TestFlowToSeq(unittest.TestCase):

    def setUp(self):
        self.test_flow = [0.18, 1.03, 1.02, 0.70, 1.12, 0.07, 0.14, 4.65]
        self.test_expected = 'ACGTGGGGG'
        self.test_flow_int = [int(i*100) for i in self.test_flow]

    def test_flow_to_seq(self):
        actual = sff.flow_to_seq(self.test_flow)
        self.assertEqual(self.test_expected, actual)

    def test_flow_to_seq_int(self):

        actual = sff.flow_to_seq(self.test_flow_int)