def write_rmsd(data, tgt_file):
    """Writes the given RMSD data list into the given target location.

    :param data: The list of data to write.
    :param tgt_file: The target file location.
    """
    with open(tgt_file, 'w') as w_file:
        for i, rmsd_val in enumerate(data, 1):
            w_file.write('\t'.join((str(i), str(rmsd_val))))
            w_file.write('\n')
    print('Wrote file: {}'.format(tgt_file))
