Ejemplo n.º 1
0
 def wr_tsv(self, fout_tsv):
     """Print grouped GOEA results into a tab-separated file."""
     with open(fout_tsv, 'w') as prt:
         kws_tsv = {
             'fld2fmt': {f:'{:8.2e}' for f in self.flds_cur if f[:2] == 'p_'},
             'prt_flds':self.flds_cur}
         prt_tsv_sections(prt, self.desc2nts['sections'], **kws_tsv)
         print("  WROTE: {TSV}".format(TSV=fout_tsv))
Ejemplo n.º 2
0
 def wr_tsv(self, fout_tsv):
     """Print grouped GOEA results into a tab-separated file."""
     with open(fout_tsv, 'w') as prt:
         kws_tsv = {
             'fld2fmt': {f:'{:8.2e}' for f in self.flds_cur if f[:2] == 'p_'},
             'prt_flds':self.flds_cur}
         prt_tsv_sections(prt, self.desc2nts['sections'], **kws_tsv)
         print("  WROTE: {TSV}".format(TSV=fout_tsv))