예제 #1
0
 def test_samtools_compare(self):
     with open(self.samtools, 'r') as expect:
         expect = expect.read()
     index = Faidx.build_fai(self.fasta)
     result = ''.join(index)
     assert result == expect
예제 #2
0
 def test_order(self):
     index = Faidx.build_fai(self.fasta)
     genes = [x.split()[0] for x in index]
     assert genes == list(self.faidx.index.keys())
예제 #3
0
 def test_build(self):
     with open(self.expect, 'r') as fai:
         expect = fai.read()
     index = Faidx.build_fai(self.fasta)
     result = ''.join(index)
     assert result == expect