def processing_combinations(hybridizations,aligned_peaks_dict):
    
    """
    Function used to create a list of tuples containing the pair hybridization
    and gene (Ex. (Hybridization1, Gfap)) that will be used to process the dots
    removal in parallel.
    
    Parameters:
    -----------

    hybridizations: list 
        List of the hybridization to process 
        (ex. [Hybridization1, Hybridization2]).
    aligned_peaks_dict: dict 
        Dictionary containing only the coords of the selected peaks after 
        registration (still with pos information).
                                
                                
    Returns:
    ---------
    combinations: list 
        List containing the pairs hybridization and gene 
        (Ex. (Hybridization1, Gfap))
    
    """  
    
    combinations_tmp=list()
    if isinstance(hybridizations,list):
        for hybridization in hybridizations:
            combinations_tmp.append([(hybridization,gene) for gene in aligned_peaks_dict[hybridization].keys()])
        combinations=[el for grp in combinations_tmp for el in grp]
    else:
        hybridization=hybridizations
        combinations=[(hybridization,gene) for gene in aligned_peaks_dict[hybridization].keys()]
    return combinations