Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)