Fill missing colors based on p-value of an enriched GO term.

def set_goid2color_pval(self, goid2color):
        """Fill missing colors based on p-value of an enriched GO term."""
        alpha2col = self.alpha2col
        if self.pval_name is not None:
            pval_name = self.pval_name
            for goid, res in self.go2res.items():
                pval = getattr(res, pval_name, None)
                if pval is not None:
                    for alpha, color in alpha2col.items():
                        if pval <= alpha and res.study_count != 0:
                            if goid not in goid2color:
                                goid2color[goid] = color