def get_node_text(self, goid, goobj):
        """Return a string to be printed in a GO term box."""
        txt = []
        # Header line: "GO:0036464 L04 D06"
        txt.append(self.get_hdr(goid, goobj))
        # GO name line: "cytoplamic ribonucleoprotein"
        if 'no_name' not in self.present:
            txt.append(self._get_go_name(goobj))
        # study info line: "24 genes"
        if 'objgoea' in self.kws:
            study_txt = self.kws['objgoea'].get_study_txt(goid)
            if study_txt is not None:
                txt.append(study_txt)
        # Add user-specified text, if needed
        if 'go2txt' in self.kws and goid in self.kws['go2txt']:
            txt.append(self.kws['go2txt'][goid])
        return "\n".join(txt)
def get_node_text ( self , goid , goobj ) : txt = [ ] txt . append ( self . get_hdr ( goid , goobj ) ) if 'no_name' not in self . present : txt . append ( self . _get_go_name ( goobj ) ) if 'objgoea' in self . kws : study_txt = self . kws [ 'objgoea' ] . get_study_txt ( goid ) if study_txt is not None : txt . append ( study_txt ) if 'go2txt' in self . kws and goid in self . kws [ 'go2txt' ] : txt . append ( self . kws [ 'go2txt' ] [ goid ] ) return "\n" . join ( txt )
Return a string to be printed in a GO term box.