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!')
评论列表
文章目录