goatools.gosubdag.godag_rcnt module

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

class goatools.gosubdag.godag_rcnt.CountRelatives(go2obj, relationships=None, dcnt=True, go2letter=None)[source]

Bases: object

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

get_parents_letters(goobj)[source]

Get the letters representing all parent terms which are depth-01 GO terms.

get_d1str(goobj, reverse=False)[source]

Get D1-string representing all parent terms which are depth-01 GO terms.