def map_opacity(freq: float, freq2opacity: dict) -> float:
    """Take an input iSNV frequency and return the corresponding 
    opacity level for plotting"""
    x = int(freq*10)
    return freq2opacity[x]