goatools.godag_obosm module

Given GO ids and an obo, creates a small sub-graph DAG.

Sub-graphs can be used to create shortcut paths and eliminate nodes.

class goatools.godag_obosm.OboToGoDagSmall(**kws)[source]

Bases: object

Given a list of GO ids and the full obo dag, return a sub GO DAG graph.