test_feature_conversion.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:goodbye-genbank 作者: biosustain 项目源码 文件源码
def test_genbank_record_fixing(self):
        with open(os.path.join(FILES_PATH, 'sample.gb')) as f:
            first_record = next(SeqIO.parse(f, 'genbank'))

        first_record.features = [unconvert_feature(convert_feature(f)) for f in first_record.features]

        output = StringIO()
        SeqIO.write(first_record, output, "genbank")
        with open(os.path.join(FILES_PATH, 'sample.fixed.gb')) as f:
            self.assertEqual(output.getvalue(), f.read())
        output.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号