Esempio n. 1
0
 def test_feature_downstream_from_peak(self):
     peak = Peak('chr1', '100', '200')
     feature = Feature('NM1', 'chr1', '250', '400', '+')
     self.assertEqual(direction(peak, feature), DOWNSTREAM)
Esempio n. 2
0
 def test_peak_downstream_from_feature_neg_strand(self):
     peak = Peak('chr1', '450', '550')
     feature = Feature('NM1', 'chr1', '250', '400', '-')
     self.assertEqual(direction(feature, peak), UPSTREAM)
Esempio n. 3
0
 def test_peak_upstream_from_feature_neg_strand_partial_overlap(self):
     peak = Peak('chr1', '100', '300')
     feature = Feature('NM1', 'chr1', '250', '400', '-')
     self.assertEqual(direction(feature, peak), DOWNSTREAM)
Esempio n. 4
0
 def test_peak_downstream_from_feature_partial_overlap(self):
     peak = Peak('chr1', '350', '550')
     feature = Feature('NM1', 'chr1', '250', '400', '+')
     self.assertEqual(direction(feature, peak), DOWNSTREAM)
Esempio n. 5
0
 def test_peak_full_overlap_feature(self):
     peak = Peak('chr1', '200', '450')
     feature = Feature('NM1', 'chr1', '250', '400', '+')
     self.assertEqual(direction(feature, peak), OVERLAP)
Esempio n. 6
0
 def test_feature_downstream_from_peak_neg_strand_partial_overlap(self):
     peak = Peak('chr1', '350', '550')
     feature = Feature('NM1', 'chr1', '250', '400', '-')
     self.assertEqual(direction(peak, feature), DOWNSTREAM)
 def test_peak_downstream_from_feature_partial_overlap(self):
     peak = Peak('chr1','350','550')
     feature = Feature('NM1','chr1','250','400','+')
     self.assertEqual(direction(feature,peak),DOWNSTREAM)
 def test_feature_upstream_from_peak_neg_strand(self):
     peak = Peak('chr1','100','200')
     feature = Feature('NM1','chr1','250','400','-')
     self.assertEqual(direction(peak,feature),UPSTREAM)
 def test_feature_downstream_from_peak_neg_strand_partial_overlap(self):
     peak = Peak('chr1','350','550')
     feature = Feature('NM1','chr1','250','400','-')
     self.assertEqual(direction(peak,feature),DOWNSTREAM)
 def test_feature_downstream_from_peak(self):
     peak = Peak('chr1','100','200')
     feature = Feature('NM1','chr1','250','400','+')
     self.assertEqual(direction(peak,feature),DOWNSTREAM)
 def test_feature_upstream_from_peak_partial_overlap(self):
     peak = Peak('chr1','350','550')
     feature = Feature('NM1','chr1','250','400','+')
     self.assertEqual(direction(peak,feature),UPSTREAM)
 def test_peak_upstream_from_feature_neg_strand_partial_overlap(self):
     peak = Peak('chr1','100','300')
     feature = Feature('NM1','chr1','250','400','-')
     self.assertEqual(direction(feature,peak),DOWNSTREAM)
 def test_peak_downstream_from_feature_neg_strand(self):
     peak = Peak('chr1','450','550')
     feature = Feature('NM1','chr1','250','400','-')
     self.assertEqual(direction(feature,peak),UPSTREAM)
 def test_peak_full_overlap_feature(self):
     peak = Peak('chr1','200','450')
     feature = Feature('NM1','chr1','250','400','+')
     self.assertEqual(direction(feature,peak),OVERLAP)
Esempio n. 15
0
 def test_feature_upstream_from_peak_partial_overlap(self):
     peak = Peak('chr1', '350', '550')
     feature = Feature('NM1', 'chr1', '250', '400', '+')
     self.assertEqual(direction(peak, feature), UPSTREAM)
 def test_feature_full_overlap_peak_neg_strand(self):
     peak = Peak('chr1','200','450')
     feature = Feature('NM1','chr1','250','400','-')
     self.assertEqual(direction(peak,feature),OVERLAP)
Esempio n. 17
0
 def test_feature_upstream_from_peak_neg_strand(self):
     peak = Peak('chr1', '100', '200')
     feature = Feature('NM1', 'chr1', '250', '400', '-')
     self.assertEqual(direction(peak, feature), UPSTREAM)
Esempio n. 18
0
 def test_peak_upstream_from_feature(self):
     peak = Peak('chr1', '100', '200')
     feature = Feature('NM1', 'chr1', '250', '400', '+')
     self.assertEqual(direction(feature, peak), UPSTREAM)
Esempio n. 19
0
 def test_feature_full_overlap_peak_neg_strand(self):
     peak = Peak('chr1', '200', '450')
     feature = Feature('NM1', 'chr1', '250', '400', '-')
     self.assertEqual(direction(peak, feature), OVERLAP)
 def test_peak_upstream_from_feature(self):
     peak = Peak('chr1','100','200')
     feature = Feature('NM1','chr1','250','400','+')
     self.assertEqual(direction(feature,peak),UPSTREAM)