CMD = """\
prefix=$(echo "{output.index}" | sed 's/\\.1\\.ebwt$//')
bowtie-build {input.reference} $prefix --threads {threads} {params.options} > {log} 2>&1
samtools faidx {input.reference} >> {log} 2>&1
"""
