goatools.rpt.write_hierarchy_base module

Print a GO term’s lower-level hierarchy.

class goatools.rpt.write_hierarchy_base.WrHierPrt(id2obj, id2nt, cfg, prt=sys.stdout)[source]

Bases: object

Print the hierarchy of a set of objects w/attrs=[item_id, children].

fmt_dashes = '{DASHES} {ID}'
prt_hier_rec(item_id, depth=1)[source]

Write hierarchy for a GO Term record and all GO IDs down to the leaf level.