goatools.gosubdag.godag_rcnt_init module

Get descendant/parent counts for all GO terms in a GODag and broad L0 and L1 terms.

class goatools.gosubdag.godag_rcnt_init.CountRelativesInit(go2obj, relationships, dcnt, go2letter)[source]

Bases: object

Get descendant/parent counts for all GO terms in a GODag and broad L0 and L1 terms.

get_goone2ntletter(go2dcnt, depth2goobjs)[source]

Assign letters to depth-01 GO terms ordered using descendants cnt.

static get_depth2goobjs(go2obj, max_depth=2)[source]

Init depth2goobjs using list sorted by depth, get level-00/01 GO terms.