def indexFile(options):
sys.stdout.write('Compressing output file ... ')
sys.stdout.flush()
pysam.tabix_compress(options.output, options.output + '.gz', force=True)
sys.stdout.write('OK\n')
sys.stdout.write('Indexing output file ... ')
sys.stdout.flush()
pysam.tabix_index(options.output + '.gz', seq_col=1, start_col=2, end_col=2, meta_char='#', force=True)
sys.stdout.write('OK\n')
# Read records from file as a list
评论列表
文章目录