code: def get_tcntobj(self, go_all, **kws):
          
          # kws: gaf (gene2go taxid)
          if 'gaf' in kws or 'gene2go' in kws:
              # Get a reduced go2obj set for TermCounts
              _gosubdag = GoSubDag(go_all, self.godag, rcntobj=False, prt=None)
              return get_tcntobj(_gosubdag.go2obj, **kws)
docs: Get a TermCounts object if the user provides an annotation file, otherwise None.