# Path: bipy/toolbox/dss.py
# def _plot_disp_ests(r, dispersion_plot_out):
# def _plot_MvA(r, mva_plot_out):
# def load_count_file_as_matrix(in_file, r):
# def make_count_set(conds, r):
# def run(in_file, conds, tests, out_prefix):


from bipy.toolbox import dss
from bcbio.utils import safe_makedir, file_exists
import os
import unittest


class TestDss(unittest.TestCase):

    def setUp(self):
        self.count_file = "test/data/pasilla_gene_counts.tsv"
        self.conds = ["untreat", "untreat", "untreat", "untreat",
                      "treat", "treat", "treat"]

    def test_run(self):
        out_prefix = "results/tests/dss/test_dss"
        safe_makedir(os.path.dirname(out_prefix))

# Path: bipy/toolbox/dss.py
# def _plot_disp_ests(r, dispersion_plot_out):
# def _plot_MvA(r, mva_plot_out):
# def load_count_file_as_matrix(in_file, r):
# def make_count_set(conds, r):
# def run(in_file, conds, tests, out_prefix):


# Path: test/dss/test_dss.py
from bipy.toolbox import dss
from bcbio.utils import safe_makedir, file_exists
import os
import unittest



class TestDss(unittest.TestCase):

    def setUp(self):
        self.count_file = "test/data/pasilla_gene_counts.tsv"
        self.conds = ["untreat", "untreat", "untreat", "untreat",
                      "treat", "treat", "treat"]

    def test_run(self):
        out_prefix = "results/tests/dss/test_dss"
        safe_makedir(os.path.dirname(out_prefix))

        result = dss.run(self.count_file, self.conds, ("untreat", "treat"), out_prefix=out_prefix)