def get_go2nt(self, goids):
        """Return dict of GO ID as key and GO object information in namedtuple."""
        get_nt = self.go2nt
        goids_present = set(goids).intersection(self.go2obj)
        if len(goids_present) != len(goids):
            print("GO IDs NOT FOUND IN DAG: {GOs}".format(
                GOs=" ".join(set(goids).difference(goids_present))))
        return {g:get_nt[g] for g in goids_present}
def get_go2nt ( self , goids ) : get_nt = self . go2nt goids_present = set ( goids ) . intersection ( self . go2obj ) if len ( goids_present ) != len ( goids ) : print ( "GO IDs NOT FOUND IN DAG: {GOs}" . format ( GOs = " " . join ( set ( goids ) . difference ( goids_present ) ) ) ) return { g : get_nt [ g ] for g in goids_present }
Return dict of GO ID as key and GO object information in namedtuple.