matrix.py 文件源码

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

项目:pheweb 作者: statgen 项目源码 文件源码
def run(argv):

    if should_run():
        args = [
            ffi.new('char[]', sites_filepath.encode('utf8')),
            ffi.new('char[]', common_filepaths['pheno']('*').encode('utf8')),
            ffi.new('char[]', matrix_gz_tmp_filepath.encode('utf8'))
        ]
        lib.cffi_make_matrix(*args)
        os.rename(matrix_gz_tmp_filepath, matrix_gz_filepath)
        pysam.tabix_index(
            filename=matrix_gz_filepath, force=True,
            seq_col=0, start_col=1, end_col=1 # note: these are 0-based, but `/usr/bin/tabix` is 1-based
        )
    else:
        print('matrix is up-to-date!')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号