goatools.gosubdag.plot.go2color module

Manages GO Term fill colors and bordercolors.

class goatools.gosubdag.plot.go2color.Go2Color(gosubdag, objgoea=None, **kws)[source]

Bases: object

Manages GO Term fill colors and bordercolors.

kws_dct = {'dflt_bordercolor', 'go2bordercolor', 'go2color', 'key2col'}
alpha2col = {0.005: 'mistyrose', 0.01: 'moccasin', 0.05: 'lemonchiffon1', 1.0: 'grey95'}
key2col = {'go_leafchild': '#eae8e8', 'go_sources': '#ffffe4', 'level_01': '#f1fbfd'}
get_bordercolor(goid)[source]

Return GO Term border color.

init_goid2color()[source]

Set colors of GO terms.