Exemple #1
0
 def test_assign_reads_simple_only_one_con(self):
     res = assemble.assign_read_indexes(self.cons[0:1], self.em_results,
                                        self.haps, self.reads, 2)
     exp = {"hap1": {0, 1, 2, 3}}
     self.assertEqual(res, exp)
Exemple #2
0
 def test_assign_reads_simple_low_min_fold(self):
     res = assemble.assign_read_indexes(self.cons, self.em_results,
                                        self.haps, self.reads, 1.5)
     exp = {"hap1": {0, 1}, "hap2": {2, 3}}
     self.assertEqual(res, exp)
Exemple #3
0
 def test_assign_reads_simple_high_min_fold(self):
     res = assemble.assign_read_indexes(self.cons, self.em_results,
                                        self.haps, self.reads, 200)
     exp = {"unassigned": {0, 1, 2, 3}}
     self.assertEqual(res, exp)
Exemple #4
0
 def test_assign_reads_simple(self):
     res = assemble.assign_read_indexes(self.cons, self.em_results,
                                        self.haps, self.reads, 2.0)
     exp = {"hap1": {0, 1}, "hap2": {3}, "unassigned": {2}}
     self.assertEqual(res, exp)