goatools.grouper.plotobj module

GO Grouper Plotting objects.

class goatools.grouper.plotobj.PltGroupedGosArgs(grprobj, **kws)[source]

Bases: object

Arguments for plot_groups_all.

keys_plt = {'go2bordercolor', 'go2color', 'go2name', 'go2txt', 'max_gos'}
keys_loc = {'fout_dir', 'hdrgo_dflt_color', 'max_gos', 'max_upper', 'upper_trigger'}
hdrgo_dflt_color = '#ffedcc'
get_go2color_inst(hdrgo)[source]

Get a copy of go2color with GO group header colored.

get_kws_plt()[source]

Get keyword args for GoSubDagPlot from self unless they are None.

class goatools.grouper.plotobj.PltGroupedGos(grprplt)[source]

Bases: object

Plots grouped user GO IDs.

ntpltgo

alias of NtPltGo

plot_sections(fout_dir='.', **kws_pltargs)[source]

Plot GO DAGs for all sections (not Misc.).

plot_groups_all(fout_dir='.', **kws_pltargs)[source]

Plot GO DAGs for all groups of user GOs.

plot_groups_unplaced(fout_dir='.', **kws_pltargs)[source]

Plot GO DAGs for groups of user GOs which are not in a section.

get_pltdotstrs(**kws)[source]

Plot GO DAGs for all groups of user GOs.

class goatools.grouper.plotobj.GoSubDagPlotNt(grprobj, gosubdagplot, ntplt)[source]

Bases: object

Contains Grouper object, GoSubDagPlot object, and namedtuple.

wrplt(fout_dir, plt_ext='png')[source]

Write png containing plot of GoSubDag.

get_dotstr()[source]

Return a string containing DAG graph in Grpahviz’s dot language.

get_pltpat(plt_ext='svg')[source]

Return png pattern: {BASE}.png {BASE}_pruned.png {BASE}_upper_pruned.png