def test_neg_strand(self): segmentation = { 'gene_id_002': { 'tr_id_0003': [ mock.MagicMock(stop=100), ] }, } self.assertTrue( xlsites._intersects_with_annotaton(100, segmentation, 2, '-')) self.assertFalse( xlsites._intersects_with_annotaton(101, segmentation, 2, '-'))
def test_pos_strand(self): segmentation = { 'gene_id_001': { 'tr_id_0001': [ mock.MagicMock(start=100), ], 'gene_segment': [], } } self.assertTrue( xlsites._intersects_with_annotaton(100, segmentation, 1, '+')) self.assertFalse( xlsites._intersects_with_annotaton(101, segmentation, 1, '+'))
def test_neg_strand(self): self.assertTrue( xlsites._intersects_with_annotaton(100, self.annotation, 2, '-')) self.assertFalse( xlsites._intersects_with_annotaton(101, self.annotation, 2, '-'))