pykegg.KGML_graph module

class pykegg.KGML_graph.KGML_graph(path=None, pid=None)

Bases: object

KGML graph object.

get_coords()

Transform coords positions to edge DataFrame.

get_edges(add_group=False)

Get edges DataFrame of the KGML graph.

get_graph(layout='native', add_group=False)

Get igraph object of the KGML graph.

Parameters:

layoutstr

layout of the graph. If native, the original layout of the KGML file is used.

get_nodes(node_x_nudge=5, node_y_nudge=5, append_pathway_name=True)

Get nodes DataFrame of the KGML graph.