@@ -31,6 +31,8 @@ def testInfo(self):
31
31
def testSequence (self ):
32
32
tb = py2bit .open (self .fname , True )
33
33
assert (tb .sequence ("chr1" ) == "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNACGTACGTACGTagctagctGATCGATCGTAGCTAGCTAGCTAGCTGATCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN" )
34
+ assert (tb .sequence ("chr1" , 1 , 2 ) == "N" )
35
+ assert (tb .sequence ("chr1" , 1 , 3 ) == "NN" )
34
36
assert (tb .sequence ("chr1" , 0 , 1000 ) == "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNACGTACGTACGTagctagctGATCGATCGTAGCTAGCTAGCTAGCTGATCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN" )
35
37
assert (tb .sequence ("chr1" , 24 , 74 ) == "NNNNNNNNNNNNNNNNNNNNNNNNNNACGTACGTACGTagctagctGATC" )
36
38
tb .close ()
@@ -42,12 +44,6 @@ def testBases(self):
42
44
assert (tb .bases ("chr1" , 24 , 74 , False ) == {'A' : 6 , 'C' : 6 , 'T' : 6 , 'G' : 6 })
43
45
tb .close ()
44
46
45
- def testSequence (self ):
46
- tb = py2bit .open (self .fname , True )
47
- assert (tb .sequence ("chr1" , 1 , 3 ) == "NN" )
48
- assert (tb .sequence ("chr1" , 1 , 2 ) == "N" )
49
- tb .close ()
50
-
51
47
def testHardMaskedBlocks (self ):
52
48
tb = py2bit .open (self .fname , True )
53
49
assert (tb .hardMaskedBlocks ("chr1" ) == [(0 , 50 ), (100 , 150 )])
0 commit comments