goatools.gosubdag.plot.go_node module

Create a pydot Node for a GO Term.

class goatools.gosubdag.plot.go_node.GoNodeOpts(gosubdag, **kws)[source]

Bases: object

Processes GO Node plot args.

exp_keys = {'go2txt', 'goobj2fncname', 'objgoea', 'prt_flds'}
exp_elems = {'c2ps', 'childcnt', 'mark_alt_id', 'no_ldr', 'no_name', 'parentcnt', 'prt_pcnt', 'shorten'}
get_kws()[source]

Only load keywords if they are specified by the user.

get_present()[source]

Only store keywords if they are specified by the user.

class goatools.gosubdag.plot.go_node.GoNode(gosubdag, objcolor, optobj)[source]

Bases: object

Creates pydot Node containing a GO term.

exclude = {'tfreq'}
get_node(goid, goobj)[source]

Return pydot node.

str_fmthdr(goid, goobj)[source]

Return hdr line seen inside a GO Term box.

get_node_text(goid, goobj)[source]

Return a string to be printed in a GO term box.

get_hdr(goid, goobj)[source]

Header for GO Term box. Ex: ‘G0001719 L6 D9 d3.’