__init__.py 文件源码

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

项目:LociTools 作者: bnbowman 项目源码 文件源码
def _makeReference( output_path, type_suffix ):
    recs = []
    for resource in pkg.resource_listdir(_REF_DIR, ''):
        if pkg.resource_isdir(_REF_DIR, resource ):
            expected_file = "{0}_{1}.fasta".format(resource, type_suffix)
            expected_path = op.join(_REF_PATH, resource, expected_file)
            if op.exists( expected_path ):
                recs += _readFasta( expected_path )
            else:
                raise MissingReferenceException('Missing expected reference file "{0}" for Locus "{1}"'.format(expected_file, resource))
    _writeFasta( output_path, recs )
    return True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号