def test_merge_hits(self): hits = tuple(self.missed_genes_grouped["Os03g49400"]) hits = list(hits) merged_hit = merge_hits(hits,self.old_bed, self.missed_genes_dict) self.assertEqual(len(merged_hit),1) self.assertEqual(len(merged_hit['sorghum_v1_1_9901089_9901320']['locs']),3) self.assertEqual(merged_hit['sorghum_v1_1_9901089_9901320']['start'],9896924) self.assertEqual(merged_hit['sorghum_v1_1_9901089_9901320']['end'],9901320)
def test_merge_hits(self): hits = tuple(self.missed_genes_grouped["Os03g49400"]) hits = list(hits) merged_hit = merge_hits(hits, self.old_bed, self.missed_genes_dict) self.assertEqual(len(merged_hit), 1) self.assertEqual( len(merged_hit['sorghum_v1_1_9901089_9901320']['locs']), 3) self.assertEqual(merged_hit['sorghum_v1_1_9901089_9901320']['start'], 9896924) self.assertEqual(merged_hit['sorghum_v1_1_9901089_9901320']['end'], 9901320)
def test_merge_hits_none(self): ## none of the hits should merge hits = (self.missed_genes_grouped["Os01g58037"]) merged_hit = merge_hits(hits, self.old_bed, self.missed_genes_dict) self.assertEqual(len(merged_hit), 5)
def test_merge_hits_none(self): ## none of the hits should merge hits = (self.missed_genes_grouped["Os01g58037"]) merged_hit = merge_hits(hits,self.old_bed,self.missed_genes_dict) self.assertEqual(len(merged_hit),5)