def get_taxid_map_dict(tax_id_map_file_location):
    """
    This function returns a dict where the keys are uniprot ids and the values are organism ids
    :param tax_id_map_file_location: The location of the files that will be the base of the uniprot to organism id dict
    :type tax_id_map_file_location: str
    :return: A dict k: uniprot id v: organism id
    """

    # Declaring the dict that will be returned
    tax_id_dict = {}

    # Opening the files and looping through it
    with open(tax_id_map_file_location) as tax_id_map_file:

        # Skipping header
        tax_id_map_file.readline()

        # Looping throgh files and adding entries to the tax_id_dict
        for line in tax_id_map_file:

            # Assigning the line to variables
            uniprot_id, tax_id = line.strip().split('\t')

            # Adding the entries to the dict
            tax_id_dict[uniprot_id] = tax_id

    return tax_id_dict