Skip to main content
Bioinformatics logoLink to Bioinformatics
. 2018 Mar 24;34(15):2684–2686. doi: 10.1093/bioinformatics/bty188

SPV: a JavaScript Signaling Pathway Visualizer

Alberto Calderone 1,, Gianni Cesareni 1
Editor: Oliver Stegle
PMCID: PMC6061680  PMID: 29590303

Abstract

Summary

The visualization of molecular interactions annotated in web resources is useful to offer to users such information in a clear intuitive layout. These interactions are frequently represented as binary interactions that are laid out in free space where, different entities, cellular compartments and interaction types are hardly distinguishable. Signaling Pathway Visualizer is a free open source JavaScript library, which offers a series of pre-defined elements, compartments and interaction types meant to facilitate the representation of signaling pathways consisting of causal interactions without neglecting simple protein–protein interaction networks.

Availability and implementation

Freely available under Apache version 2 license; Source code: https://github.com/Sinnefa/SPV_Signaling_Pathway_Visualizer_v1.0. Language: JavaScript; Web technology: Scalable Vector Graphics; Libraries: D3.js.

1 Introduction

Signaling pathways are the mental abstraction used by biologists to represent a coordinated cascade of events leading to the expression of one or more genes ultimately resulting in observable phenotypes. These series of events are usually described as a collection of entities, proteins, small molecules, protein complexes, chemicals and so on connected by oriented or non-oriented links, representing interactions or signal propagations.

One way of representing biological pathways is the reaction-based model. In this representation, a reaction is defined by the stoichiometry of the participating elements and by differential equations specifying their dynamics. This representation is adopted, for instance, by Reactome (Fabregat et al., 2016), a web resource that uses a hierarchical reaction based visualization, and by Pathway Commons (Cerami et al., 2011), which also offers reaction-based models collected from external resources.

A different way of representing biological pathways is by based on causal interaction where an entity has a binary effect (activation/inhibition) on its target. Some online resources have started collecting signaling interaction information from the literature and to represent it as a set of causal relationships (Fazekas et al., 2013; Perfetto et al., 2015). Causal interactions are a relatively new focus of data curation and, as such, a clear automatic graphic representation is still missing.

A number of web applications have been developed to represent protein interaction network including but not limited to those based on Cytoscape.js (Franz et al., 2015) such as CerebralWeb by InnateDB (Breuer et al., 2013) or the visualizer of the CellWhere database (Zhu et al., 2015). Other web applications are based on a different JavaScript library called D3.js (Bostock et al., 2011), for instance, CellNetVis (Heberle et al., 2017). CerebralWeb, CellNetVis and CellWhere offer the possibility of visualizing protein interactions within cellular compartment but they do not provide out-of-the-box graphical elements specifically designed for signaling cascades consisting of causal interactions.

Here, we introduce Signaling Pathway Visualizer (SPV) whose development started with Mentha (Calderone et al., 2013) which stores protein–protein interaction information and continued with SIGNOR (Perfetto et al., 2015) which collects causal signaling information. SPV is a JavaScript library which, by offering several already defined entities and interaction types, aims at simplifying the visualization of signaling pathways represented as a set of causal interactions in a biologically oriented intuitive top-down representation without neglecting simple protein–protein interaction networks.

2 Implementation

A clear, intuitive representation of signaling pathways can be hard because of two major factors: (i) the large variety of entity types and signaling effects and (ii) the need to visualize pathways in the way biologists are used to, i.e. in a top-down cascade where the signal is propagated from the membrane to the nucleus. To simplify these two tasks, we have developed a JavaScript library based on D3.js, which simplifies signaling pathways visualization. The advantages are particularly evident when representing the highly detailed annotation of SIGNOR (Perfetto et al., 2015) with its variety of interacting entities, which include protein complexes, protein families, small molecules and so on, and as several different causal interaction types.

SPV is a JavaScript library conceived to visualize signaling pathways and protein interactions by displaying entities of different types connected by different links. The library offers two distinct layouts, one for protein–protein interaction networks (Fig. 1B) and one specifically designed for causal relationships (Fig. 1D). SPV consists of a basic toolbar (Fig. 1A) and a graphical stage where the network is visualized.

Fig. 1.

Fig. 1.

Toolbar, graphical elements supported in SPV and the mTOR pathway. The top menu bar various filtering and visualization options. SVP comes with several elements already defined such as proteins, external non-human/viral proteins, chemicals, complexes and others (C). Interactions can be of several types with different line strokes and one transparency effect to distinguish activations from, for instance, indirect activations, transcriptional activation etc. (B). All these elements can be combined to represent a signaling pathway from cellular membrane, in yellow, to nucleus, lilac (D) as well as simple protein-protein interaction networks (B). Protein forming a group, for instance, a complex, are enveloped in a hull which turns red on mouse hover (D)

We defined a collection of eight different elements and a variety of link types that can be used in any combination independent of the visualization used (Fig. 1B and C). This collection of elements and interactions can be extended by the programmer as needed. Nodes and edges are sensitive to mouse clicks which open pop-up windows displaying information about the selected elements.

Entities are represented as circles and are differently colored according to the types specified by the programmer. Complexes, phenotypes and small molecules are an exception and have distinctive shapes. We also defined a graphical representations for a variety of edge types: activation, inhibition, binding, protein-protein interaction, complex formation and others, which can have different line strokes and one transparency level. These collections of different lines can be used to represent subclasses such as ‘indirectly activates’ or ‘transcriptional activation’. Lastly, in order to represent proteins belonging to a common group, for instance, protein complexes, it is possible to envelop with gray hulls nodes belonging to user defined lists of entities, which, on mouse hover, turn red showing the group name. Protein complexes visualization goes beyond the purpose of SVP due to the intrinsic complexity of such biological entities for which a dedicated JavaScript visualizer called ComplexViewer, a visualization tool for Complex Portal (Meldal et al., 2015), was recently released (Combe et al., 2017).

For the visualization of signaling pathways, we define four layers representing three compartments: extracellular, cellular membrane (receptors), nucleus (transcription factors) and a bottom layer to place phenotypes. Unconstrained nodes are confined in a bounding box that represents the cytosol of the cell. This bounding box prevents nodes from going outside of the membrane and inside the nucleus but, at the same time, it lets unfixed nodes free to move according to the default layout based on spring layout (Fruchterman and Reingold, 1991) with some fine tuning, such as automatic links curvature and automatic labels placement to avoid overlaps. On the other hand, for the visualization of protein–protein interaction networks, we let all nodes move freely according to the classical spring layout.

The top menu bar offers some filtering options to visualize only specific interaction types or only connections above a certain edge score threshold so that the user can easily see if and how two nodes are connected, for instance, only by up-regulations. In addition, it offers the possibility of exporting the currently visualized image as a standard SVG to be used in publications, presentations and posters. Finally, it allows the user to export the network as plain-text comma-separated file.

3 Compatibility

Our group is an active member of the IMEx Consortium (Orchard et al., 2012) focused on the curation of published molecular interaction extracted from peer reviewed literature. The IMEx Consortium promotes the Proteomics Standards Initiative-Molecular Interaction (PSI-MI) in order to facilitate data exchange (Hermjakob et al., 2004). In particular, the JavaScript Object Notation format MI-JSON will soon be published (Combe et al., 2017) and integrated in SPV.

Furthermore, we are actively working on defining a standard for causal interaction (manuscript in preparation), which will soon be formalized and integrated in SPV. In the meanwhile, we made SPV compatible with PSI-MI tab separated files downloadable via any PSICQUIC (Aranda et al., 2011) server and with the SIGNOR Causal Interaction file, which will soon be fully compliant with the PSI-MI Causal Tab file format.

4 Results and discussions

SPV can be used to visualize signaling pathways and protein–protein interaction networks. It can display a variety of objects and connections and it offers essential export and on-the-fly filtering options.

It was conceived to be simple and straightforward. In fact, its integrations in any webpage only requires the following lines to be added in an HTML pages:

<script> baseurl = “.”; </script>

<script src=“./js/SPV_v1.0.js”></script>

The graph to visualize is a simple JSON object with elements representing links i.e.: source, target, interaction type and optionally score. Nodes and edges can respond to clicks displaying information in a list of key-values HTML texts.

Finally, to display the graph you only need to create a <div> block and call the main function as follows:

initGraph(links, node_labels, edge_labels, “graphArea”, 640, 480, “A”, 1, 0, 1);

The complexity of interactions in a pathway requires a rich variety of shapes and lines. The mTOR signaling pathway, as annotated in SIGNOR, is a good example of such complexity which, SPV makes it easier to understand and explore (http://signor.uniroma2.it/pathway_browser.php? organism=&pathway_list=SIGNOR-MS&x=20&y=14).

SPV is implemented in mentha to visualize protein-protein interactions (Calderone et al., 2013), and in SIGNOR (Perfetto et al., 2015) and DISNOR (Lo Surdo et al., 2017) to draw casual relationships in signaling pathways.

5 Conclusions and future developments

Causal interactions are a relatively new focus of data curation and, as such, are still missing a clear web visualization tool. SPV is a JavaScript library for visualizing molecular interaction data with a particular focus on causal interactions.

SPV has been developed, tested and embedded in our major databases and we are planning to extend it to other online resources and possibly add other features to make data visualization even more effective without overlooking simplicity. In particular, we are focused on implementing other layouts and extend the SPV file format compatibility as new standards will become available.

We are releasing our code not only to let others benefit from our work but also to benefit from and promote open source collaborations in biological data visualization.

Acknowledgements

The authors would like to thank all members of Molecular Genetics Group of the University of Rome Tor Vergata. A special thanks goes to the past and present members of the Bioinformatics and Computational Biology Unit for testing and evaluating this library during its years of development.

Funding

This work has been supported by the DEPTH project of the European Research Council [grant agreement no. 322749] to GC.

Conflict of Interest: none declared.

References

  1. Aranda B. et al. (2011) PSICQUIC and PSISCORE: accessing and scoring molecular interactions. Nat. Methods, 8, 528–529. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Bostock M. et al. (2011) D3 Data-Driven Documents. IEEE Trans. Vis. Comput. Graph, 17, 2301–2309. [DOI] [PubMed] [Google Scholar]
  3. Breuer K. et al. (2013) InnateDB: systems biology of innate immunity and beyond—recent updates and continuing curation. Nucleic Acids Res., 41, 1228–1233. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Calderone A. et al. (2013) Mentha: a resource for browsing integrated protein-interaction networks. Nat. Methods, 10, 690.. [DOI] [PubMed] [Google Scholar]
  5. Cerami E.G. et al. (2011) Pathway Commons, a web resource for biological pathway data. Nucleic Acids Res., 39, 685–690. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Combe C.W. et al. (2017) ComplexViewer: visualization of curated macromolecular complexes. Bioinformatics, 33, 3673–3675. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Fabregat A. et al. (2016) The reactome pathway knowledgebase. Nucleic Acids Res., 44, D481–D487. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Fazekas D. et al. (2013) SignaLink 2—a signaling pathway resource with multi-layered regulatory networks. BMC Syst. Biol., 7, 7.. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Franz M. et al. (2015) Cytoscape.js: a graph theory library for visualisation and analysis. Bioinformatics, 38, btv557. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Fruchterman T.M.J., Reingold E.M. (1991) Graph drawing by force-directed placement. Softw. Pr. Exper., 21, 1129–1164. [Google Scholar]
  11. Heberle H. et al. (2017) CellNetVis: a web tool for visualization of biological networks using force-directed layout constrained by cellular components. BMC Bioinformatics, 18, 395. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Hermjakob H. et al. (2004) The HUPO PSI’s molecular interaction format–a community standard for the representation of protein interaction data. Nat. Biotechnol., 22, 177–183. [DOI] [PubMed] [Google Scholar]
  13. Lo Surdo P. et al. (2017) DISNOR: a disease network open resource. Nucleic Acids Res., 46, D527–D534. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Meldal B.H.M. et al. (2015) The complex portal— an encyclopaedia of macromolecular complexes. Nucleic Acids Res., 43, D479–D484. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Orchard S. et al. (2012) Protein interaction data curation: the international molecular exchange (IMEx) consortium. Nat. Methods, 9, 345–350. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Perfetto L. et al. (2015) SIGNOR: a database of causal relationships between biological entities. Nucleic Acids Res. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Zhu L. et al. (2015) CellWhere: graphical display of interaction networks organized on subcellular localizations. Nucleic Acids Res., 43, W571–W575. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES