Beispiel #1
0
 def test_run_dnadiff(self):
     """Test single dnadiff run"""
     dnadiff_dist_matrix.run_dnadiff(
         ospj(DATA_PATH, "sample0_gt1000_bin0.fa"),
         ospj(DATA_PATH, "sample0_gt1000_bin1.fa"),
         ospj(TMP_BASENAME_DIR, "out"))
     ok_(os.path.exists(ospj(TMP_BASENAME_DIR, "out.report")))
    def test_mummer_report_class(self):
        """Test mummer report class"""
        dnadiff_dist_matrix.run_dnadiff(ospj(DATA_PATH,
            "sample0_gt1000_bin0.fa"), ospj(DATA_PATH,
                "sample0_gt1000_bin1.fa"), ospj(TMP_BASENAME_DIR, "out"))
        ok_(os.path.exists(ospj(TMP_BASENAME_DIR, "out.report")))

        mumr = dnadiff_dist_matrix.MUMmerReport(ospj(TMP_BASENAME_DIR,
            "out.report"))
        assert_equal(mumr.tot_bases[0], 3213)
        assert_equal(mumr.tot_bases[1], 43514)
        assert_equal(mumr.aligned_bases[0], 0)
        assert_equal(mumr.aligned_bases[1], 0)
Beispiel #3
0
    def test_mummer_report_class(self):
        """Test mummer report class"""
        dnadiff_dist_matrix.run_dnadiff(
            ospj(DATA_PATH, "sample0_gt1000_bin0.fa"),
            ospj(DATA_PATH, "sample0_gt1000_bin1.fa"),
            ospj(TMP_BASENAME_DIR, "out"))
        ok_(os.path.exists(ospj(TMP_BASENAME_DIR, "out.report")))

        mumr = dnadiff_dist_matrix.MUMmerReport(
            ospj(TMP_BASENAME_DIR, "out.report"))
        assert_equal(mumr.tot_bases[0], 3213)
        assert_equal(mumr.tot_bases[1], 43514)
        assert_equal(mumr.aligned_bases[0], 0)
        assert_equal(mumr.aligned_bases[1], 0)
 def test_run_dnadiff(self):
     """Test single dnadiff run"""
     dnadiff_dist_matrix.run_dnadiff(ospj(DATA_PATH,
         "sample0_gt1000_bin0.fa"), ospj(DATA_PATH,
             "sample0_gt1000_bin1.fa"), ospj(TMP_BASENAME_DIR, "out"))
     ok_(os.path.exists(ospj(TMP_BASENAME_DIR, "out.report")))