biopython v1.71.0 Bio.KEGG.KGML.KGML_pathway.Pathway

Represents a KGML pathway from KEGG.

Specifies graph information for the pathway map, as described in release KGML v0.7.1 (http://www.kegg.jp/kegg/xml/docs/)

Attributes:

  • name - KEGGID of the pathway map
  • org - ko/ec/[org prefix]
  • number - map number (integer)
  • title - the map title
  • image - URL of the image map for the pathway
  • link - URL of information about the pathway
  • entries - Dictionary of entries in the pathway, keyed by node ID
  • reactions - Set of reactions in the pathway

The name attribute has a restricted format, so we make it a property and enforce the formatting.

The Pathway object is the only allowed route for adding/removing Entry, Reaction, or Relation elements.

Entries are held in a dictionary and keyed by the node ID for the pathway graph - this allows for ready access via the Reaction/Relation etc. elements. Entries must be added before reference by any other element.

Reactions are held in a dictionary, keyed by node ID for the path. The elements referred to in the reaction must be added before the reaction itself.

Link to this section Summary

Functions

Initialize the class

Returns a readable summary description string

Add an Entry element to the pathway

Add a Reaction element to the pathway

Add a Relation element to the pathway

Coordinate bounds for all Graphics elements in the Pathway

Get a list of entries of type compound

Return the Pathway as a valid KGML element

Get a list of entries of type gene

Return the pathway as a string in prettified KGML format

Get a list of entries of type map

Get a list of entries of type ortholog

List of entries corresponding to each reaction in the pathway

Get a list of reactions in the pathway

Get a list of relations in the pathway

Remove an Entry element from the pathway

Remove a Reaction element from the pathway

Remove a Relation element from the pathway

Link to this section Functions

Initialize the class.

Returns a readable summary description string.

Add an Entry element to the pathway.

Add a Reaction element to the pathway.

Add a Relation element to the pathway.

Coordinate bounds for all Graphics elements in the Pathway.

Returns the [(xmin, ymin), (xmax, ymax)] coordinates for all Graphics elements in the Pathway

Get a list of entries of type compound.

Return the Pathway as a valid KGML element.

Get a list of entries of type gene.

Return the pathway as a string in prettified KGML format.

Get a list of entries of type map.

Get a list of entries of type ortholog.

Link to this function reaction_entries()

List of entries corresponding to each reaction in the pathway.

Get a list of reactions in the pathway.

Get a list of relations in the pathway.

Remove an Entry element from the pathway.

Link to this function remove_reaction()

Remove a Reaction element from the pathway.

Link to this function remove_relation()

Remove a Relation element from the pathway.