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_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_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_partial_overlap(self): peak = Peak('chr1', '350', '550') feature = Feature('NM1', 'chr1', '250', '400', '+') self.assertEqual(direction(feature, peak), DOWNSTREAM)
def test_peak_full_overlap_feature(self): peak = Peak('chr1', '200', '450') feature = Feature('NM1', 'chr1', '250', '400', '+') self.assertEqual(direction(feature, peak), OVERLAP)
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)
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)
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_peak_upstream_from_feature(self): peak = Peak('chr1', '100', '200') feature = Feature('NM1', 'chr1', '250', '400', '+') self.assertEqual(direction(feature, peak), 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)
def test_peak_upstream_from_feature(self): peak = Peak('chr1','100','200') feature = Feature('NM1','chr1','250','400','+') self.assertEqual(direction(feature,peak),UPSTREAM)