goatools.gosubdag.plot.goea_results module

Manages GO Term fill colors and bordercolors.

class goatools.gosubdag.plot.goea_results.GoeaResults(goea_results, **kws)[source]

Bases: object

Manages GOEA Results for plotting.

kws_set = {'id2symbol', 'items_p_line ', 'pval_name', 'study_items'}
dflt_items_p_line = 5
fmtres = '{study_count} genes'
alpha2col = {0.005: 'mistyrose', 0.01: 'moccasin', 0.05: 'lemonchiffon1', 1.0: 'grey95'}
prt_summary(prt=sys.stdout)[source]

Print summary of GOEA plotting object.

get_study_txt(goid)[source]

Get GO text from GOEA study.

set_goid2color_pval(goid2color)[source]

Fill missing colors based on p-value of an enriched GO term.

get_goid2color_pval()[source]

Return a go2color dict containing GO colors determined by P-value.