def is_bam(path):
"""Checks if a path is a BAMfile"""
try:
pysam.Samfile(path)
except IOError:
raise RuntimeError('Path {} does not exist'.format(path))
except ValueError:
return False
return True
misc.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录