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()
test_feature_conversion.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录