Skip to main content
  • Methodology article
  • Open access
  • Published:

Conversion of KEGG metabolic pathways to SBGN maps including automatic layout

Abstract

Background

Biologists make frequent use of databases containing large and complex biological networks. One popular database is the Kyoto Encyclopedia of Genes and Genomes (KEGG) which uses its own graphical representation and manual layout for pathways. While some general drawing conventions exist for biological networks, arbitrary graphical representations are very common. Recently, a new standard has been established for displaying biological processes, the Systems Biology Graphical Notation (SBGN), which aims to unify the look of such maps. Ideally, online repositories such as KEGG would automatically provide networks in a variety of notations including SBGN. Unfortunately, this is nonā€trivial, since converting between notations may add, remove or otherwise alter map elements so that the existing layout cannot be simply reused.

Results

Here we describe a methodology for automatic translation of KEGG metabolic pathways into the SBGN format. We infer important properties of the KEGG layout and treat these as layout constraints that are maintained during the conversion to SBGN maps.

Conclusions

This allows for the drawing and layout conventions of SBGN to be followed while creating maps that are still recognizably the original KEGG pathways. This article details the steps in this process and provides examples of the final result.

Background

Biological network sources

Life scientists commonly use biological networks from online databases in research and teaching. As an example, metabolic pathways are of high interest for exploring organismā€specific metabolism, mapping ā€omics data onto metabolic networks for further analysis, and simulating metabolic processes using techniques such as flux balance analysis.

There are various online repositories for biological pathways, see http://www.pathguide.org/. Here we will concentrate on metabolic networks. Major databases for metabolism are the Kyoto Encyclopedia of Genes and Genomes (KEGG) PATHWAY [1], a multiā€organism pathway database containing thousands of metabolic pathways, represented as manually drawn pathway maps; BioCyc/MetaCyc [2], a collection of organismā€specific pathway databases; Reactome [3], a multiā€organism pathway database initially established with a focus on human biology; and PANTHER pathway [4], also a multiā€organism pathway database. There are also many special metabolic pathway databases covering a specific species or group of species, e. g., PlantCyc [5] and MetaCrop [6] for plants.

KEGG provides graphical representations for pathways and the layout information is publicly available for download via the XMLā€based KGML file format. As KEGG also contains the largest collection of metabolic pathways we choose this database for our work.

Biological network visualization

Biological network visualization requires (1) single biological elements to be represented by meaningful graphical symbols (glyphs), and (2) the spatial placement (layout) of these glyphs to form a readable map.

Exchange of information between humans can often be enhanced by the use of wellā€defined unambiguous standards for visual representation. While informal drawing conventions exist for the visualization of biological networks, arbitrary graphical representations are still commonly used. Uniform systems of nomenclature describing the components of networks based on a wellā€defined set of symbols are well established within fields such as engineering, computer science, and physics. For the visual representation of biological networks and cellular processes the Systems Biology Graphical Notation (SBGN) has been recently introduced [7]. Similar to wiring maps in electrical engineering, SBGN allows the unambiguous representation of biological knowledge using a limited number of easily recognizable glyphs. The three different languages (Process Description, Entity Relationship, Activity Flow) covered by SBGN enable the representation of any kind of biological network such as metabolic, regulatory, and interaction networks on different levels of granularity. Figure 1(b) shows an example SBGN Process Description map.

Figure 1
figure 1

Pentose phosphate pathway from the KEGG database. Part of the pathway map shown as (a) SBGN representation after translation without layout adjustment, and (b) SBGN representation after translation with constraint layout applied (see also Figures 2, 3 and 4 for a complete version of the map).

Figure 2
figure 2

Pentose phosphate pathway from the KEGG database. Part of the pathway map shown as (a) KEGG reference image, and (b) KGML representation (see also Figure 1).

Figure 3
figure 3

Pentose phosphate pathway (KEGG). Pentose phosphate pathway from the KEGG database (http://www.kegg.jp/kegg/pathway/map/map00030.html), reference image.

Figure 4
figure 4

Pentose phosphate pathway (SBGN). Pentose phosphate pathway from the KEGG database (http://www.kegg.jp/kegg/pathway/map/map00030.html), downloaded as KGML file, translated to SBGN and laid out using constraints with the described method.

Ideally, online repositories for biological networks would provide networks in a variety of notations including SBGN, automatically converting between them as necessary. Such conversions should preserve the existing layout as much as possible, since it will often have been carefully chosen by a human expert to emphasize important biological features in the map. Unfortunately, this is nonā€trivial because the conversion may add, remove or alter map elements, preventing use of the exact same layout.

Automatic layout of biological networks can be done with graph drawing algorithms, see the book of [8]. These techniques have also been applied to specific biological network layout applications, such as for signal transduction maps (e. g., [9]), protein interaction networks (e. g., [10]), and metabolic pathways (e. g., [11, 12]). However, manually drawn layouts tend to be easier to understand and aesthetically preferable to automatic layouts. Furthermore, automatic layout methods often cannot fulfill particular specific layout requirements, such as those given in the SBGN specification. For example, these approaches do not allow specification of positions of enzymes or modifiers relative to processes, layout for reaction groups, or specific bundled routing via certain paths to draw visual attention to particular structures.

Here we describe a method to automatically translate the widely used KEGG metabolic pathways into SBGN format. We infer important properties of the KEGG layout and model these as layout constraints that are maintained during the conversion to SBGN. This allows for style and layout conventions of SBGN to be followed while creating maps that are still recognizably the same pathway.

Our approach (see also Figures 1 and 2) relies on (1) using SBGN as an unambiguous graphical representation for biological objects and interactions, and (2) solving geometric constraints which capture structural layout requirements (e. g., nonā€overlap of map elements) as well as arrangement preferences of the original author (e. g., alignment) for automatic layout based on the original KEGG map.

There are three main steps. The first step is to convert the KEGG map into the SBGN Process Description (PD) [13] notation, adding and deleting nodes and edges where necessary. The second step involves finding an arrangement for the nodes in the diagram. It is based on the constraintā€based layout method in [14] which allows a network map to be laid out subject to computed or userā€specified geometric placement constraints, such as nonā€overlap, alignment, and containment. In this step we start with the layout of the initial KEGG maps to infer important structural constraints, such as relative orderings and alignment. We remove overlap between new or modified nodes while enforcing containment relationships, preserving structural constraints and following the layout guidelines of SBGN. In the third step, we perform orthogonal edge routing to create routes for edges which do not overlap nodes or each other [15]. Our basic approach of using inferred constraints to preserve existing layout while specifying further constraints to enforce required drawing conventions is a powerful and flexible technique which could easily be adapted for translating between other biological network notations.

Constraintā€based layout techniques originate with the early CAD tool SketchPad [16] and are now widely used in GUI widget layout, CAD systems and diagramming tools. They have been used for a variety of purposes: to support parametric objects whose shape changes to different design contexts, automatic adjustment of user interfaces and maps to different viewing contexts (e. g., [17]), enforcing similarity between consecutive layouts in interactive and other dynamic settings (e. g., [18]), preserving geometric relationships during editing (e. g., [16]), and tailoring network map layouts to take into account layout styles and user interests (e. g., [19]). To the best of our knowledge our use of them to preserve the userā€™s ā€œmental mapā€ of a layout during translation between two different map notations is novel.

Geometric constraints can either be inferred from a map or explicitly imposed by the user. Typically constraint inference is based on map elements satisfying a possible constraint within some error tolerance [20, 21], but may also take into account syntactic requirements of the particular map notation [22]. A wide variety of different techniques have been suggested for solving geometric constraints in graphical applications [23]. Our approach utilizes constrainedā€satisfaction methods for constrained graph layout [14, 19] in combination with automatic orthogonal edge routing techniques [15].

Some of the closest work to ours is research on converting from SBML [24] or BioPAX [25] formats into graphical formats like SBGN. Some examples for SBML are Arcadia [26], which uses GraphViz [27] for layout and the SBML Layout Extension [28]. BioPAX to SBGN conversion is done, for example, by Paxtools [29] and BioUML [30]. However, these approaches canā€™t translate the widely used KEGG maps into SBGN, and they mostly compute entirely new layouts rather than utilizing layout information derived from the original (KEGG, SBML, or BioPAX) map. Tools such as KEGGtranslator [31] and MGV [32] can load and translate KEGG maps but also do not support layout adjustment based on information from the original KEGG map.

Methods

Translation of KEGG to SBGN

Some pathway database providers have begun to adopt SBGN for the graphical representation of pathways [3, 4, 6, 33, 34]. However, the popular KEGG database still provides pathway maps in its own representation both as static image files and as KGML files for utilization in software tools.

The KGML files serve as the basis for our translation from KEGG to SBGN since they contain all information (including layout information for pathway entities) necessary to reconstruct a pathway map. Note that the static KEGG images contain often less edges than the corresponding KGML file as several reactions are often manually reduced to a single reaction in the static image. We will focus on the translation of metabolic pathways from the KEGG representation (KGML) to SBGN Process Description (PD) maps.

In general, a pathway map can be considered as a graph G=(V,E) composed of a set of nodes V representing pathway entities and a set of edges E, where each edge connects two nodes and thus represents a relation between the pathway entities. KEGG pathway maps in particular consist of several types of nodes and edges [35]a. Let G K =(V K ,E K ) be a graph representing a metabolic pathway map from the KEGG database. In metabolic pathway maps from KEGG all three types of nodes can be found: (1) gene product, mostly protein but including RNA node v GP āˆˆV K , (2) other molecule, mostly chemical compound node v OM āˆˆV K , and (3) another map node v AM āˆˆV K . In addition, two types of edges can be found: (1) molecular interaction or relation edge e MI āˆˆE K and (2) link to another map edge e LM āˆˆE K . A typical drawing of a KEGG pathway map can be seen in Figure 2(a), a gene product node v GP is drawn as a rectangle showing a reaction, an other molecule node v OM is represented by a circle showing a substrate or product of a reaction, another map node v AM is drawn as a rectangle with rounded corners, a molecular interaction or relation edge e MI is shown as an edge with a filled arrowhead, and a link to another map edge e LM is drawn as a dotted edge with an empty arrowhead.

For all elements of a KEGG metabolic pathway map a respective element (or several respective elements) in the SBGN Process Description (PD) language can be found; for a description of all SBGN PD elements see [13]. However, to create a valid SBGN PD map the number of nodes and edges increases during the translation as described below. Let G S =(V S ,E S ) be a graph representing the SBGN PD map. The translation of an other molecule node, another map node, and a link to another map edge from KEGG to SBGN PD is a oneā€toā€one translation: an other molecule node v OM is mapped to a simple chemical node v SC āˆˆV S , a another map node v AM is mapped to a submap node v SM āˆˆV S including the required number of terminal nodes v TE āˆˆV S , and a link to another map edge e LM is mapped to an equivalence arc edge e EA āˆˆE S . A reaction in a KEGG pathway map shown by a gene product node v GP is translated to a macromolecule node v MA āˆˆV S showing the enzyme catalyzing the reaction plus an additional process node v PN āˆˆV S showing the reaction itself. Both nodes are connected by an additional catalysis arc edge e CA āˆˆE S . The translation of a reaction node therefore increases the number of nodes and edges. Molecular interaction or relation edges e MI have to be translated according to the reaction they are connected to. In case of an irreversible reaction the edge e MI from the substrate node to the reaction node is translated to a consumption arc edge e CA āˆˆE S and the edge e MI from the reaction node to the product node is translated to a production arc edge e PA āˆˆE S . For reversible reactions the translation is simplified, all edges e MI are translated to production arc edges e PA āˆˆE S indicating the reversibility of the reaction. See Table 1 for more information about the translation process, Figures 1 and 2 for detailed examples and Figures 3 and 4 for the full maps.

Table 1 Translation of KEGG metabolic pathways to SBGN PD maps using KGML files

As an added complication, the KGML files for some pathway maps have errors and do not contain the complete information necessary for a correct automatic translation. Typical KGML errors are missing information about (1) the reversibility of a reaction, (2) the type of a compound (substrate or product) or (3) substrates and products of a reaction at all. We automatically detect these rare cases and render the relevant nodes and edges in red to highlight the ambiguity.

Layout process

Pathway diagrams contained in the KEGG database are manually drawn [35] and provide a layout that emphasizes the biological features regarded as important by the author. A reference image for each pathway is available online (http://www.kegg.jp/kegg/pathway.html). These images show the pathways in a simplified manner where the number of edges is reduced. In principle, a reaction taking place between two compounds is shown by an edge drawn from the substance to the reaction node and an edge drawn from the reaction node to the product. If several reactions take place between two compounds there is only one edge drawn between the two compounds and the reaction nodes are drawn together underneath or above the edge.

In contrast, the KGML files provided by the KEGG database contain enough information to reconstruct all nodes and all edges but do not include the complete layout information. The files only contain node layout information (node positions, node sizes) but do not contain edge routing information. Thus, a KEGG pathway map can be reconstructed from a KGML file that preserve the authorā€™s intended layout except for the edge routing (see Figure 2(b)).

The translation of KEGG metabolic pathways to SBGN PD maps increases the number of nodes and edges as described in Section ā€œ Translation of KEGG to SBGN ā€ and thereby breaks the initial layout by introducing node overlaps (see Figure 1(a)).

Scaling the space between nodes in both the x and y dimension would be a straightforward solution to eliminate node overlaps but has the disadvantage that the maps become unnecessarily large due to increased whitespace. Furthermore, we would still need to produce new routes for edges. For this reason we perform automatic layout of the SBGN PD maps. This process is designed to (1) preserve the original layout intent of the author, including the use of orthogonal edge routing and (2) arrange the pathway map according to SBGN layout rules.

The specification for SBGN PD maps describes requirements and recommendations for layout which govern the visual appearance and aesthetics of the Process Description (PD) language [13]. Layout requirements and recommendations most important for the translation of KEGG metabolic pathway maps to SBGN PD maps are summarized below:

  1. 1.

    nodes are not allowed to overlap, except where one node is contained by another;

  2. 2.

    if an edge crosses a node it must be drawn on top, it is recommended that edges not cross nodes;

  3. 3.

    edges are not allowed to overlap the border line of nodes;

  4. 4.

    edges are not allowed to overlap each other (only crossing is allowed);

  5. 5.

    consumption and production arcs are attached to the center of opposite sides of a process node;

  6. 6.

    catalysis (modulatory) arcs are attached to the two other sides of the process node;

  7. 7.

    at least a part of a label has to be placed inside the node it belongs to;

  8. 8.

    labels should be horizontal; and

  9. 9.

    the number of crossings between edges should be minimized.

Conceptually, the layout process is performed in two main steps. The first stage determines a position for the nodes in the SBGN map. It starts with a desired position for each node based on their positions in the KEGG map and a set of geometric constraints. Then a greedy heuristic is used to find node positions that satisfy these constraints and avoid overlap between nodes (Requirement 1 above). The second stage is to take the resulting node positions as well as edge connection information and compute orthogonal objectā€avoiding paths for edges. The paths satisfy Requirements 2-6. In the next sections we describe these stages in more detail.

We follow Requirements 7 and 8 when drawing labels, although it is often unavoidable that this results in text that overlaps other objects. The final recommendation of minimizing edge crossings is a known intractable problem [36], but we employ heuristic approaches that give reasonable results.

Computing node positions

The first stage of the layout process is to find node positions using constraintā€based layout. This takes sizes and a desired position for each node (from the KGML layout description file) as well as a set of constraint relationships that we would like to be satisfied. These constraints are of three types: (1) Recognizability: Alignment and separation constraints are used to preserve recognizability of the original KEGG layout and the authorā€™s original layout intent; (2) Beautification: Nonā€overlap and spacing constraints are used to make sure the new layout is not bad; and (3) Style: Enforcement of SBGN style using containment and alignment constraints for hierarchical nodes and fixedā€relativeā€position constraints to keep macromolecules positioned in relation to process nodes in a reaction and nonā€overlap of nodes. These constraints are shown for our previous example in Figure 5.

Figure 5
figure 5

Pentose phosphate pathway from Figure 1(b). Pentose phosphate pathway from Figure 1(b) with alignment, separation, containment, fixedā€relativeā€position constraints and reaction group shown. Nonā€overlap constraints are determined automatically, taking into account containment constraints. Node labels have been removed for better readability.

Recognizability constraints are determined by analyzing the network to find groups of nodes that are visually aligned in the original KEGG layout. When looking for x or y alignment we use a small tolerance to include cases where there was an obvious visual intention to align objects but they are not pixel perfectly aligned. This alignment inference is performed for all compounds (simple chemicals in SBGN) and reactions (process nodes in SBGN) regardless of whether or not they are connected. Once we have determined the alignment relationships we add separation constraints between each alignment group to preserve the relative orthogonal order of these within the layout. If two compounds are aligned either in x or y direction and several reactions take place between them, additional alignment and separation constraints are defined for these reactions to line them up in horizontal or vertical reaction groups (see Figure 5).

Beautification constraints are nonā€overlap constraints generated between all nodes to stop them from overlapping and to leave enough empty space between them for subsequent edge routing. To achieve this spacing, we specify slightly enlarged sizes for nodes during the layout step.

In order to satisfy the drawing conventions of SBGN we define Style constraints for the containment of hierarchical nodes and to keep particular nodes in a fixed position relative to each other.

According to the SBGN specification, submaps contain terminal nodes graphically shown as overlapping nodes contained within them but sharing a border. Thus containment constraints have to be defined for submaps and the corresponding terminals to force them to be positioned within their parent node and to prevent overlap constraints being generated between them. Additionally, an alignment constraint between a submap and each of its terminals has to be defined to keep the terminals positioned on the border of the submap.

For a macromolecule and a process node connected by a catalysis arc the relative position is fixed by two constraints, either an alignment constraint in x direction and a separation constraint specifying a fixed distance in y direction or vice versa.

For the layout, the highā€level geometric relationships we use are represented at a low level in the solver as multiple separation constraints of the form u+gā‰¤(=) v, enforcing a minimum (or precise) gap g between the positions u and v of pairs of objects in either the x or y dimensions of the drawing [19]. For example, a vertical alignment between three nodes would be represented as a position variable for the alignment and three equality constraints that force the x position of each node to be the same as the alignment position. Alignment, separation and fixedā€relativeā€position constraints are specified at this highā€level. We use the algorithm from [19] to project the desired position of the objects onto the low level separation constraintsā€”this means that objects are placed as close as possible to the desired position while satisfying the layout constraints.

However, not all layout constraints have a direct translation to separation constraints. For instance, nonā€overlap of two objects can be modeled by choosing to constrain the first object to be ā€œaboveā€, ā€œbelowā€, ā€œleftā€ or ā€œrightā€ of the second: the best choice depends upon the desired object position and interaction with other constraints. We solve this by using the greedy heuristic described in [14]. Using this method, we do not specify nonā€overlap constraints using individual separation constraints, but instead let the solver compute the choice for how best to resolve overlap. Importantly, we give nonā€overlap constraints a lower priority, hence considering them after all other constraints have been satisfied. The four alternatives for enforcing each nonā€overlap constraint are ranked based on minimizing potential node movement. We try adding each alternative in turn until we find one that does not cause itself or previously added constraints to become unsatisfied. Each time we encounter an unsuccessful alternative we backtrack by resetting node positions to their earlier values and try a different alternative.

Since we require the nonā€overlap requirement to be relaxed for nodes contained within submaps, we extended the method in [14] so that containment hierarchies may be specified. The solver then considers these containment relationships when resolving nonā€overlap, and instead generates separation constraints keeping children inside parent nodes as well as nonā€overlap constraints between siblings at each level of the hierarchy. An added benefit of this is that nodes at each level of the hierarchy are standard objects within the layout engine, which allows additional constraints between them, such as the alignment of terminal nodes on the boundary of submaps.

Edge routing

To achieve high quality layout that follows the drawing conventions of SBGN there are several requirements for the edge routing. We require that edges do not cross or touch nodes other than at the point where they are connected to that node. The edge routes themselves should be orthogonal paths made up of only vertical and horizontal line segments with the minimum cost (i. e., weighted sum of the total length and number of segments). We draw these edges with slight rounded corners but this is not a consideration in the routing problem itself. Finally, where resultant edge routes share paths with each other, even when connected to a common node, we require that they are nudged apart so that they may be visually discerned, as per the SBGN specification.

Edge routing is performed using a technique that generates an orthogonal visibility graph from a set of rectangular obstacles and uses this to generate orthogonal objectā€avoiding routes [15]. The edge router requires us to give the locations of all nodes as rectangles with positions, as well as the edges and information on the nodes to which they are connected. We are able to specify connection ports on a node, which are specific positions and directions by which an edge must be routed into the node.

For most nodes we require that edges connect from any direction to the center of the node, though are only drawn to its border. For process nodes and macromolecules we define specific ports on the nodes which specify a particular position and direction that catalysis, consumption and production arcs must attach to. We use expanded node dimensions for process nodes and macromolecules, so that no edges cross catalysis arcs. We also specify connection ports on terminal nodes to force edges to connect to them at the boundary they share with their containing submap.

For reaction groups we route edges from each of the two compounds together so they diverge at a common point inside the reaction group, see Figure 5. This was done by extending the routing method in [15] to allow specification of checkpoints that must be visited by a route. This effectively involves routing individual subā€routes between pairs of endpoints or checkpoints along a route while appropriately penalizing bends occurring at the checkpoints.

After routing is performed, we use the nudging feature of [15] to separate overlapping edge routes. We extended this nudging to also include final edge segments attached to nodes. While these would usually be fixed in place due to attaching to a pin or the center of a node, if multiple edges all enter a node from one side we allow these to be spaced apart up to the bounds of the node. We also modified the nudging to take checkpoints into account.

We also found that it was fairly common for fixedā€distance nudging to fail when there were many edges running through a limited space. For this reason we made the fairly simple extension of having the router recursively try increasingly smaller nudging distances for individual bundles of edges when this occurs.

Results and discussion

Our implementation of the described technique for translation of KEGG pathways into SBGN is available in SBGNā€ED [37], an addā€on for the VANTED framework [38]b. This article describes a complete automated process for translating KEGG maps to SBGN, including detection and display of ambiguous informationc. In addition to the translation process, we detail additions to our previous constraintā€based layout [14] to allow containment hierarchies. The article also extends our prior edge routing work [15] with checkpoints and improved nudging, which permit edge bundling for reaction groups.

We have applied this completely automated process to a large number of examples from the KEGG database. Some examples of the SBGN diagrams along with the original KEGG reference images are shown in Figures 3, 4, 6, 7, 8, 9, 10 and 11. It takes an average of four seconds to complete the translation and layout process for an individual pathway. For some larger pathway maps from the KEGG database with up to 300 nodes the overall process can take up to 15 seconds.

Figure 6
figure 6

Glycolysis / Gluconeogenesis (KEGG). Glycolysis / Gluconeogenesis from the KEGG database (http://www.kegg.jp/kegg/pathway/map/map00010.html), reference image.

Figure 7
figure 7

Glycolysis / Gluconeogenesis (SBGN). Glycolysis / Gluconeogenesis from the KEGG database (http://www.kegg.jp/kegg/pathway/map/map00010.html), downloaded as KGML file, translated to SBGN and laid out using constraints with the described method.

Figure 8
figure 8

Citrate cycle (TCA cycle) (KEGG). Citrate cycle (TCA cycle) from the KEGG database (http://www.kegg.jp/kegg/pathway/map/map00020.html), reference image.

Figure 9
figure 9

Citrate cycle (TCA cycle) (SBGN). Citrate cycle (TCA cycle) from the KEGG database (http://www.kegg.jp/kegg/pathway/map/map00020.html), downloaded as KGML file, translated to SBGN and laid out using constraints with the described method.

Figure 10
figure 10

Valine, leucine and isoleucine degradation (KEGG). Valine, leucine and isoleucine degradation from the KEGG database (http://www.kegg.jp/kegg/pathway/map/map00280.html), reference image.

Figure 11
figure 11

Valine, leucine and isoleucine degradation (SBGN). Valine, leucine and isoleucine degradation from the KEGG database (http://www.kegg.jp/kegg/pathway/map/map00280.html), downloaded as KGML file, translated to SBGN and laid out using constraints with the described method.

Notice that layout features and the overall look of the original maps are retained in the produced SBGN examples, including prominent vertical pathways in Figures 6, 7, 10 and 11, the TCA cycle in the lower half of Figures 8 and 9, and recognizable reaction loops in all three of these examples. The quality of our produced layouts show that the described method does a good job of translating KEGG maps into SBGN maps while preserving important aspects of the layout.

There are also some limitations to our approach. Firstly, it can be slow for very large examples. While it is fast for small examples and the layout algorithms have polynomial complexity, they can take up to 30 minutes for a network with 2,000 nodes and 2,000 edges. We are investigating some possible improvements in this area. Secondly, we currently do not focus on producing compact layouts, though it would be possible to adapt the techniques to achieve this and still satisfy all the layout constraints. Thirdly, we can sometimes have issues positioning large numbers of edges routed along common paths if there is not enough space between elements for them to be ideally spaced. We could look at moving objects slightly to make space in this case, again taking advantage of the layout constraints so as not to degrade the quality of the layout.

While not necessarily a limitation of our approach, labels on the maps we produce can be difficult to read when they overlap with other elements. The SBGN specification requires that shapes representing compounds have a fixed shape, rather than being sized to fit labels. Also, it dictates that labels must be drawn on shapes, which precludes us employing various approaches to map labeling that have been investigated to solve this general problem. The SBGN working group are aware of the problem and these requirements will hopefully be changed in future revisions of SBGN.

Conclusions

Databases of biological networks are widely used in research and teaching by life scientists. While graphical representation of these networks follow some common drawing conventions they still often make use of various somewhat arbitrary notations. Ideally, databases containing biological networks should provide these networks in a variety of graphical representations including SBGN.

We have described a method to automatically translate pathway maps from the wellā€known and widely used KEGG pathway database into a SBGN representation. We employ a constraintā€based layout method to follow drawing and layout conventions of SBGN while preserving important layout features of the KEGG layout, allowing the resulting map be easily read and to remain recognizable as the original. The latter is especially important since KEGG pathways are manually drawn so that their layout emphasizes biological relationships regarded as important by domain experts.

Our proposed constraintā€based layout method could be adapted for use on SBGN maps converted from SBML or BioPAX formats. Similarly, these maps would mainly consist of the SBGN elements simple chemical, macromolecule, process, and the corresponding arcs. The main difference is that position information is not specified in BioPAX format or in SBML format (when not extended by layout information using the SBML Layout Extension [28]). Thus positions have to be determined from the context of the map, e. g., fixed relative position of a macromolecule and a process node connected by a modulatory arc, or positioned first with more traditional graph layout approaches.

In terms of future work, we would like to investigate doing some form of compaction on the final layout, since our method can still sometimes result in unnecessary whiteā€space being added into the maps. We would also like to improve the case of detecting otherwise unconstrained reactions that appear to be incorrectly left out of alignment relationships. Adjusting the alignment inference tolerance may solve this for individual maps, but we would like to do this analysis by looking at the network structure as well as the inferred constraints so that it works more generally. While not particularly difficult, solving these issue are important since they tend to be examples of the more obvious problems that users will notice in automatically generated layouts. It could also be interesting to translate the large KEGG global maps into SBGN using our technique.

Availability and requirements

  • Project name: SBGNā€ED

  • Project home page: http://www.sbgn-ed.org

  • Operating system(s): Windows (32ā€bit, 64ā€bit), Linux (32ā€bit, 64ā€bit), and Mac OS (32ā€bit, 64ā€bit)

  • Programming language: Java 6/7

  • License: GNU GPL 2.0

Endnotes

a For a detailed description see http://www.kegg.jp/kegg/document/{help}_pathway.html.

b SBGN-ED with KEGG to SBGN translation including automatic layout is currently available for Windows (32ā€bit, 64ā€bit), Linux (32ā€bit, 64ā€bit), and Mac (32ā€bit, 64ā€bit).

c In contrast, our previous simple KEGGā€SBGN conversion in [37] did not translate all elements (such as groups), did not highlight errors from the KGML, and included no layout or edge routing other than scaling up the entire diagram to reduce overlaps.

References

  1. Kanehisa M, Goto S, Sato Y, Furumichi M, Tanabe M: KEGG for integration and interpretation of largeā€scale molecular data sets. Nucleic Acids Res. 2012, 40: D109-D114. 10.1093/nar/gkr988.

    ArticleĀ  PubMed CentralĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  2. Caspi R, Altman T, Dreher K, Fulcher CA, Subhraveti P, Keseler IM, Kothari A, Krummenacker M, Latendresse M, Mueller LA, Ong Q, Paley S, Pujar A, Shearer AG, Travers M, Weerasinghe D, Zhang P, Karp PD: The MetaCyc database of metabolic pathways and enzymes and the BioCyc collection of pathway/genome databases. Nucleic Acids Res. 2012, 40: D742-D753. 10.1093/nar/gkr1014.

    ArticleĀ  PubMed CentralĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  3. Croft D, Oā€™Kelly G, Wu G, Haw R, Gillespie M, Matthews L, Caudy M, Garapati P, Gopinath G, Jassal B, Jupe S, Kalatskaya I, Mahajan S, May B, Ndegwa N, Schmidt E, Shamovsky V, Yung C, Birney E, Hermjakob H, Dā€™Eustachio P, Stein L: Reactome: a database of reactions, pathways and biological processes. Nucleic Acids Res. 2011, 39: D691-D697. 10.1093/nar/gkq1018.

    ArticleĀ  PubMed CentralĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  4. Mi H, Muruganujan A, Thomas PD: PANTHER in 2013: modeling the evolution of gene function, and other gene attributes, in the context of phylogenetic trees. Nucleic Acids Res. 2013, 41: D377ā€”D386-

    ArticleĀ  PubMed CentralĀ  PubMedĀ  Google ScholarĀ 

  5. Zhang P, Dreher K, Karthikeyan A, Chi A, Pujar A, Caspi R, Karp P, Kirkup V, Latendresse M, Lee C, Mueller LA, Muller R, Rhee SY: Creation of a genomeā€wide metabolic pathway database for Populus trichocarpa using a new approach for reconstruction and curation of metabolic pathways for plants. Plant Physiol. 2010, 153 (4): 1479-1491. 10.1104/pp.110.157396.

    ArticleĀ  PubMed CentralĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  6. Schreiber F, Colmsee C, Czauderna T, Grafahrendā€Belau E, Hartmann A, Junker A, Junker BH, KlapperstĆ¼ck M, Scholz U, Weise S: MetaCrop 2.0: managing and exploring information about crop plant metabolism. Nucleic Acids Res. 2012, 40: D1173-D1177. 10.1093/nar/gkr1004.

    ArticleĀ  PubMed CentralĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  7. Le NovĆØre N, Hucka M, Mi H, Moodie S, Schreiber F, Sorokin A, Demir E, Wegner K, Aladjem MI, Wimalaratne SM, Bergman FT, Gauges R, Ghazal P, Kawaji H, Li L, Matsuoka Y, VillĆ©ger A, Boyd SE, Calzone L, Courtot M, Dogrusƶz U, Freeman TC, Funahashi A, Ghosh S, Jouraku A, Kim S, Kolpakov F, Luna A, Sahle S, Schmidt E, et al: The systems biology graphical notation. Nat Biotechnol. 2009, 27: 735-741. 10.1038/nbt.1558.

    ArticleĀ  PubMedĀ  Google ScholarĀ 

  8. Di Battista G, Eades P, Tamassia R, Tollis IG: Graph Drawing: Algorithms for the Visualization of Graphs. 1999, New Jersey: Prentice Hall

    Google ScholarĀ 

  9. Genc B, Dogrusƶz U: A layout algorithm for signaling pathways. Inf Sci. 2006, 176: 135-149. 10.1016/j.ins.2004.11.006.

    ArticleĀ  Google ScholarĀ 

  10. Han K, Ju BH: A fast layout algorithm for protein interaction networks. Bioinformatics. 2003, 19 (15): 1882-1888. 10.1093/bioinformatics/btg346.

    ArticleĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  11. Karp PD, Paley SM, Romero P: The pathway tools software. Bioinformatics. 2002, 18: S225ā€”S232-

    ArticleĀ  PubMedĀ  Google ScholarĀ 

  12. Schreiber F: High quality visualization of biochemical pathways in BioPath. In Silico Biol. 2002, 2 (2): 59-73.

    CASĀ  PubMedĀ  Google ScholarĀ 

  13. Moodie S, Le NovĆØre N, Demir E, Mi H, VillĆ©ger A: Systems biology graphical notation: process description language level 1. 2011, 10.1038/npre.2011.3721.4.

    Google ScholarĀ 

  14. Schreiber F, Dwyer T, Marriott K, Wybrow M: A generic algorithm for layout of biological networks. BMC Bioinformatics. 2009, 10: 375-10.1186/1471-2105-10-375.

    ArticleĀ  PubMed CentralĀ  PubMedĀ  Google ScholarĀ 

  15. Wybrow M, Marriott K, Stuckey PJ: Orthogonal connector routing. GD 2009, Volume 5849 of LNCS. 2010, Berlin: Heidelberg: Springer, 219-231.

    Google ScholarĀ 

  16. Sutherland I: Sketch pad: a manā€machine graphical communication system. DAC ā€™64: Proceedings of the SHARE Design Automation Workshop. 1964, New York: ACM Press, 6.329-6.346.

    Google ScholarĀ 

  17. Badros GJ, Tirtowidjojo JJ, Marriott K, Meyer B, Portnoy W, Borning A: A constraint extension to scalable vector graphics. Proceedings of the 10th international conference on World Wide Web, WWW ā€™01. 2001, New York: ACM, 489-498.

    Google ScholarĀ 

  18. Misue K, Eades P, Lai W, Sugiyama K: Layout adjustment and the mental map. J Vis Lang Comput. 1995, 6: 183-210. 10.1006/jvlc.1995.1010.

    ArticleĀ  Google ScholarĀ 

  19. Dwyer T, Koren Y, Marriott K: IPSepā€CoLa: an incremental procedure for separation constraint layout of graphs. IEEE Trans Vis Comp Graph. 2006, 12 (5): 821-828.

    ArticleĀ  Google ScholarĀ 

  20. Kurlander D, Feiner S: Inferring constraints from multiple snapshots. ACM Trans Graph (TOG). 1993, 12 (4): 277-304. 10.1145/159730.159731.

    ArticleĀ  Google ScholarĀ 

  21. Igarashi T, Matsuoka S, Kawachiya S, Tanaka H: ACM SIGGRAPH 2007 courses, SIGGRAPH ā€™07. 2007, New York: ACM

    Google ScholarĀ 

  22. Chok SS, Marriott K: Automatic generation of intelligent diagram editors. ACM Trans Computā€Hum Interact. 2003, 10: 244-276. 10.1145/937549.937553.

    ArticleĀ  Google ScholarĀ 

  23. Hower W, Graf W: A bibliographical survey of constraintā€based approaches to CAD, graphics, layout, visualization, and related topics. Knowlā€Based Syst. 1996, 9 (7): 449-464. 10.1016/S0950-7051(96)01055-6.

    Google ScholarĀ 

  24. Hucka M, Finney A, Sauro HM, Bolouri H, Doyle JC, Kitano H, Arkin AP, Bornstein BJ, Bray D, Cornishā€Bowden A, Cuellar AA, Dronov S, Gilles ED, Ginkel M, Gor V, Goryanin II, Hedley WJ, Hodgman TC, Hofmeyr JH, Hunter PJ, Juty NS, Kasberger JL, Kremling A, Kummer U, Le NovĆØre N, Loew LM, Lucio D, Mendes P, Minch E, Mjolsness ED, et al: The systems biology markup language (SBML): a medium for representation and exchange of biochemical network models. Bioinformatics. 2003, 19: 524-531. 10.1093/bioinformatics/btg015.

    ArticleĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  25. Demir E, Cary MP, Paley S, Fukuda K, Lemer C, Vastrik I, Wu G, Dā€™Eustachio P, Schaefer C, Luciano J, Schacherer F, Martinezā€Flores I, Hu Z, Jimenezā€Jacinto V, Joshiā€Tope G, Kandasamy K, Lopezā€Fuentes AC, Mi H, Pichler E, Rodchenkov I, Splendiani A, Tkachev S, Zucker J, Gopinath G, Rajasimha H, Ramakrishnan R, Shah I, Syed M, Anwar N, et al: The BioPAX community standard for pathway data sharing. Nature Biotechnol. 2010, 28 (9): 935-942. 10.1038/nbt.1666.

    ArticleĀ  CASĀ  Google ScholarĀ 

  26. VillƩger AC, Pettifer SR, Kell DB: Arcadia: a visualization tool for metabolic pathways. Bioinformatics. 2010, 26 (11): 1470-1471. 10.1093/bioinformatics/btq154.

    ArticleĀ  PubMed CentralĀ  PubMedĀ  Google ScholarĀ 

  27. GraphViz. [http://www.graphviz.org/]

  28. Gauges R, Rost U, Sahle S, Wegner K: A model diagram layout extension for SBML. Bioinformatics. 2006, 22 (15): 1879-1885. 10.1093/bioinformatics/btl195.

    ArticleĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  29. Paxtools. [http://www.biopax.org/paxtools.php]

  30. Kolpakov F, Puzanov M, Koshukov A: BioUML: Visual modeling, automated code generation and simulation of biological systems. Proceedings of The Fifth International Conference on Bioinformatics of Genome Regulation and Structure, BGRS 2006. 2006, Novosibirsk, Russia: Institute of Cytology and Genetics SB RAS, 281-284.

    Google ScholarĀ 

  31. Wrzodek C, DrƤger A, Zell A: KEGGtranslator: visualizing and converting the KEGG PATHWAY database to various formats. Bioinformatics. 2011, 27 (16): 2314-2315. 10.1093/bioinformatics/btr377.

    ArticleĀ  PubMed CentralĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  32. Symons S, Nieselt K: MGV: a generic graph viewer for comparative omics data. Bioinformatics. 2011, 27 (16): 2248-2255. 10.1093/bioinformatics/btr351.

    ArticleĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  33. Li C, Donizelli M, Rodriguez N, Dharuri H, Endler L, Chelliah V, Li L, He E, Henry A, Stefan M, Snoep J, Hucka M, Le NovĆØre N, Laibe C: BioModels Database: An enhanced, curated and annotated resource for published quantitative kinetic models. BMC Syst Biol. 2010, 4: 92-10.1186/1752-0509-4-92.

    ArticleĀ  PubMed CentralĀ  PubMedĀ  Google ScholarĀ 

  34. Sreenivasaiah PK, Rani S, Cayetano J, Arul N, Kim DH: IPAVS: Integrated pathway resources, analysis and visualization system. Nucleic Acids Res. 2012, 40: D803-D808. 10.1093/nar/gkr1208.

    ArticleĀ  PubMed CentralĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  35. Aokiā€Kinoshita KF, Kanehisa M: Gene annotation and pathway mapping in KEGG. Comparative Genomics, Volume 1, Methods in Molecular Biology. Edited by: Bergman NH. 2007, : Humana Press, 71-91.

    Google ScholarĀ 

  36. Garey MR, Johnson DS: Crossing number is NPā€complete. SIAM J Algebraic Discrete Methods. 1983, 4 (3): 312-316. 10.1137/0604033.

    ArticleĀ  Google ScholarĀ 

  37. Czauderna T, Klukas C, Schreiber F: Editing, validating and translating of SBGN maps. Bioinformatics. 2010, 26 (18): 2340-2341. 10.1093/bioinformatics/btq407.

    ArticleĀ  PubMed CentralĀ  CASĀ  PubMedĀ  Google ScholarĀ 

  38. Rohn H, Junker A, Hartmann A, Grafahrendā€Belau E, Treutler H, KlapperstĆ¼ck M, Czauderna T, Klukas C, Schreiber F: VANTED v2: a framework for systems biology applications. BMC Syst Biol. 2012, 6: 139-10.1186/1752-0509-6-139.

    ArticleĀ  PubMed CentralĀ  PubMedĀ  Google ScholarĀ 

Download references

Acknowledgements

This work was supported by the Australian Research Council (ARC) [Grants DP0987168 and DP110101390]; the German Ministry of Education and Research (BMBF) [Grants 0315430G and 0316181]; and the Go8 Australiaā€”Germany Joint Research Coā€operation Scheme (German Academic Exchange Service (DAAD) [Project ID 54391720]).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tobias Czauderna.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authorsā€™ contributions

TC implemented the KEGG to SBGN translation, integrated the layout algorithms into SBGNā€ED and wrote the code to infer and specify constraints. MW designed and implemented the extensions to previous constraintā€layout and connector routing algorithms, and advised about constraint specification. KM and FS supervised the project and contributed to the intellectual design of the described techniques, KM primarily on the layout side, and FS predominantly on the biology and translation side. All authors contributed to writing the article. All authors read and approved the final manuscript.

Authorsā€™ original submitted files for images

Rights and permissions

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and permissions

About this article

Cite this article

Czauderna, T., Wybrow, M., Marriott, K. et al. Conversion of KEGG metabolic pathways to SBGN maps including automatic layout. BMC Bioinformatics 14, 250 (2013). https://doi.org/10.1186/1471-2105-14-250

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/1471-2105-14-250

Keywords