oaklib.utilities.obograph_utils
Utilities for the OBOGraph Datamodel
See Datamodels
Functions
|
Given an OBO Graph, and a list of start/seed curies, calculate various statistics about each graph node. |
|
Convert to a networkx |
|
Convert to a networkx |
|
Convert to a networkx |
|
|
|
|
|
Return a depth-first ordering of the nodes in the graph. |
|
Generates an image from a graph using graph_to_image then open for display |
|
Given a parent node and a list of children, return a list of edges |
|
|
|
Create a subgraph that has only edges whose predicates are in the predicate list |
|
Serialize a graph to a dict. |
|
Iterate over the ids in a graph |
|
Return a set of all ids in a graph |
|
|
|
|
|
Renders a graph to png using obographviz. |
|
Translate a graph to a textual tree representation |
|
Linearizes a graph to a list of trees. |
|
Returns an index of lists of edges keyed by object id |
|
Returns an index of lists of edges keyed by predicate id |
|
Returns an index of lists of edges keyed by subject id |
|
Returns an index of lists of edges keyed by subject and object |
|
Returns an index of all nodes key by node id |
|
|
|
Load an OBOGraph document from a file |
|
Merge two nodes into a single node |
|
Merge two graphs into a single graph |
|
Iterate over the ids in a graph and modify them. |
|
|
|
Remove the specified nodes from the graph, and cascade to any edges that reference these nodes |
|
Finds all shortest paths from a set of start nodes to a set of end nodes |
|
Returns a topological sort of the graph. |
|
|
|
Remove all nodes more than a specified distance from a set of seed nodes |
Classes
|
An enumeration. |
|