import csv


def read_sumstats_as_dict(ss_tsv):
    """
    Load sumstats tsv input as {hpo : str}
    """

    ss = {}

    with open(ss_tsv) as fin:
        for hpo, ssbed in csv.reader(fin, delimiter='\t'):
            if '#' in hpo:
                continue
            else:
                ss[hpo] = ssbed

    return ss