def get_values_from_pvalue_file(pvalue_file, delim=" "):
    """
        Parses p-value file created using GUILD scores (e.g., using run_scoring, scoring_folder/output_scores.sif.scoring_type.pval).
    """
    f = open(pvalue_file)
    line = f.readline() # skip header
    node_to_values = {}
    for line in f.readlines():
        node, score, pval = line.strip().split(delim)
        node_to_values[node] = (float(score), float(pval))
    return node_to_values