goatools.gosubdag.rpt.wr_xlsx module¶
Used to operate on a sub-graph of a larger GO DAG.
- class goatools.gosubdag.rpt.wr_xlsx.GoSubDagWr(go2obj)[source]¶
Bases:
objectContains a sub-graph of the original obo from geneontology.org.
- fld2col_widths = {'D1': 6, 'GO': 12, 'GO_name': 45, 'NS': 3, 'dcnt': 6, 'depth': 4, 'level': 4}¶
- goatools.gosubdag.rpt.wr_xlsx.read_d1_letter(fin_txt)[source]¶
Reads letter aliases from a text file created by GoDepth1LettersWr.
- class goatools.gosubdag.rpt.wr_xlsx.GoDepth1LettersWr(rcntobj)[source]¶
Bases:
objectWrites reports for a GoDepth1Letters object.
- str2ns = {'biological_process': 'BP', 'cellular_component': 'CC', 'molecular_function': 'MF'}¶
- hdrs = ['D1', 'NS', 'descendants', 'depth', 'GO', 'GO description']¶
- wr_xlsx(fout_xlsx='gos_depth01.xlsx', **kws)[source]¶
Write xlsx table of depth-01 GO terms and their letter representation.
- wr_txt(fout_txt='gos_depth01.txt', title=None)[source]¶
write text table of depth-01 GO terms and their letter representation.
- static prt_header(prt, title=None, pre='')[source]¶
write text table of depth-01 GO terms and their letter representation.