              required=True,)
@click.option('-d', '--mapping_dir', type=click.Path(exists=True),
              help='mapping directory.', required=True)
@click.option('-m', '--mapping_method', type=click.Choice(['star', 'hisat2']),
              help='mapping software.', default='star')
def main(sample_inf, mapping_dir, mapping_method):
    sample_df = pd.read_table(sample_inf, header=None, index_col=1)
    if mapping_method == 'star':
        out_file = os.path.join(mapping_dir, 'star_mapping.summary.txt')
        star_log_file_list = [os.path.join(
