Exemple #1
0
 def test_distances_feature_contains_peak(self):
     self.assertEqual(
         edge_distances(Peak('chr1', '250', '350'),
                        Feature('NM6', 'chr1', '100', '400', '+')), (0, 0))
Exemple #2
0
 def test_distances_feature_overlaps_peak_start(self):
     self.assertEqual(
         edge_distances(Peak('chr1', '250', '350'),
                        Feature('NM4', 'chr1', '300', '400', '+')), (0, 50))
Exemple #3
0
 def test_distances_feature_before_peak(self):
     self.assertEqual(
         edge_distances(Peak('chr1', '250', '400'),
                        Feature('NM2', 'chr1', '100', '200', '+')),
         (50, 150))
 def test_distances_feature_contains_peak(self):
     self.assertEqual(edge_distances(Peak('chr1','250','350'),
                                Feature('NM6','chr1','100','400','+')),
                      (0,0))
 def test_distances_feature_overlaps_peak_start(self):
     self.assertEqual(edge_distances(Peak('chr1','250','350'),
                                Feature('NM4','chr1','300','400','+')),
                      (0,50))
 def test_distances_feature_before_peak(self):
     self.assertEqual(edge_distances(Peak('chr1','250','400'),
                                Feature('NM2','chr1','100','200','+')),
                      (50,150))