def mapProteinsContigs(listProteins, listContigs):
    """
    map the list of proteins with the contig into two dictionaries.

    :param listProteins: List of all the proteins of the bacteriophage
    :param listContigs: List of all the contigs of the bacteriophage

    :type listProteins: List[Protein]
    :type listProteins: List[Contig]

    :return: two dictionaries with the proteins and contigs mapped
    :rtype dictProteins: dictionary{int: list[Proteins]}
    :rtype dictContigs: dictionary{int: Contig}

    """
    dictProteins = {}
    dictContigs = {}
    for element in listProteins:
        if element.fk_id_contig in dictProteins.keys():
            dictProteins[element.fk_id_contig].append(element)
        else:
            dictProteins[element.fk_id_contig] = [element]

    for element in listContigs:
        dictContigs[element.id_contig] = element
    
    return dictProteins, dictContigs