code: def prt_txt(prt, goea_results, prtfmt=None, **kws):
          
          objprt = PrtFmt()
          if prtfmt is None:
              flds = ['GO', 'NS', 'p_uncorrected',
                      'ratio_in_study', 'ratio_in_pop', 'depth', 'name', 'study_items']
              prtfmt = objprt.get_prtfmt_str(flds)
          prtfmt = objprt.adjust_prtfmt(prtfmt)
          prt_flds = RPT.get_fmtflds(prtfmt)
          data_nts = MgrNtGOEAs(goea_results).get_goea_nts_prt(prt_flds, **kws)
          RPT.prt_txt(prt, data_nts, prtfmt, prt_flds, **kws)
          return data_nts
docs: Print GOEA results in text format.