def bam_indexing(samtools, variable_name):
    """Will take a file variable name and a samtools path and will print
    bash code that will create a bam index using samtools """
    return ('# Indexing\n' + samtools + ' index $' + variable_name +
        ' >> $logFile 2>&1')
