def create_freq2opacity(n: int) -> dict:
    """Create mapping between variant frequency (lower-bound) and 
    opacity level"""
    freq2opacity = {}
    for i in range(n):
        freq2opacity[i] = (1./n)*(i+1)
    return freq2opacity