def score_cells_percentile(val, percs, score_hi=1, score_low=-1): 
    """
    Returns a score given value of a single cell.
    
    Cells with score = -1  will be cells in low prototype (cells below the 
    bottom percentile). Conversely, cells with a score =1, will be
    the top prototype. 
    
    Params
    ------
    val (float): 
        Value of the cell at given dimension. 
    percs (tuple): 
        Tuple of top and bottom percentiles to compare with.
    
    Returns 
    -------
    score(int)
        Score of the cell.
    """
    low_perc, hi_perc = percs
    if val > hi_perc:
        score = score_hi
    elif val < low_perc: 
        score = score_low
    else: 
        score = 0
    return score