def ss_to_index(ss):
    """Secondary structure symbol to index.

    H=0
    E=1
    C=2
    """
    if ss == "H":
        return 0
    if ss == "E":
        return 1
    if ss == "C":
        return 2
    assert 0