def wr_xlsx(self, fout_xlsx, goids, sortby=None, **kws_usr): """Write goids into a table.""" nts = GoSubDag(goids, self.go2obj).get_nts(goids, sortby) kws_wr = kws_usr.copy() if 'fld2col_widths' not in kws_wr: kws_wr['fld2col_widths'] = self.fld2col_widths wr_xlsx_tbl(fout_xlsx, nts, **kws_wr)
def wr_xlsx(self, fout_xlsx="gos_depth01.xlsx", **kws): """Write xlsx table of depth-01 GO terms and their letter representation.""" data_nts = self.get_d1nts() if 'fld2col_widths' not in kws: kws['fld2col_widths'] = {'D1': 6, 'NS':3, 'depth': 5, 'GO': 12, 'name': 40} if 'hdrs' not in kws: kws['hdrs'] = self.hdrs wr_xlsx_tbl(fout_xlsx, data_nts, **kws)