コード例 #1
0
 def testNoComplement(self):
     """
     If no ranges are on the complement strand, the orientations method
     must return just False.
     """
     ranges = GenomeRanges('join{[0:100](+), [400:600](+)}')
     self.assertEqual({True}, ranges.orientations())
コード例 #2
0
 def testMixed(self):
     """
     If the ranges are on the both the regular and the complement strand,
     the orientations method must return the set {True, False}.
     """
     ranges = GenomeRanges('join{[0:100](+), [400:600](-)}')
     self.assertEqual({True, False}, ranges.orientations())
コード例 #3
0
 def testAllComplement(self):
     """
     If all ranges are on the complement strand, the orientations method
     must return just True.
     """
     ranges = GenomeRanges('join{[0:100](-), [400:600](-)}')
     self.assertEqual({False}, ranges.orientations())