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
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())
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