def group(genes, entities):
    """
    create lists for each gene relations

    :param genes:
    :param entities:
    :return:
    """
    genes_relations = []
    for gen in genes:
        genes_relations.append(list(filter(lambda x: x[0] == gen, entities)))

    return genes_relations