def create_base_num_dicts(bases_file):
    """
    This function creates two dictionaries from the number of bases file, which has three columns.  The first column is
    case name, the second column is the number of bases in the whole exome, and the third column is the number bases in
    the coding exon.

    :param bases_file: The file name
    :type bases_file: str

    :return: Two dictionaries: one has key = case and value = number of bases in the whole exome; the other has
    key = case and value = number of bases in coding exon
    :rtype: tuple
    """
    num_bases_whole_exome_dict = dict()
    num_bases_coding_exons_dict = dict()

    with open(bases_file, 'r') as num_bases_file_obj:
        for line in num_bases_file_obj:
            if not line.startswith('#'):
                line_items = line.strip().split('\t')
                case = line_items[0]
                whole_exome = line_items[1]
                coding_exon = line_items[2]

                num_bases_whole_exome_dict[case] = int(whole_exome)
                num_bases_coding_exons_dict[case] = int(coding_exon)
            else:
                continue

    return num_bases_whole_exome_dict, num_bases_coding_exons_dict