Literature DB >> 34335702

Crosslink: An R Package for Network Visualization of Grouped Nodes.

Di Liu1, Zhijie Bai2, Bing Liu2,3,4, Zongcheng Li3.   

Abstract

The demand for network visualization of relationships between nodes attributed to different categories grows in various biomedical research scenarios, such as gene regulatory networks, drug-target networks, ligand-receptor interactions and association networks of multi-omics elements. Elegantly visualizing the relationships between nodes with complex metadata of nodes and edges appended may inspire new insights. Here, we developed the crosslink R package, tailored for network visualization of grouped nodes, to provide a series of flexible functions for generating network diagrams. We first designed a CrossLink class for storage of metadata about nodes and edges and manipulation of node coordinates. Then affine transformation and function mapping transformation are implemented to perform fundamental node coordinates transformation by groups, based on which various network layouts can be defined easily. For convenience, we predefined several commonly used layouts, including row, column, arc, polygon and hive, which also can be combined in one layout. Finally, we designed a user-friendly wrapper function to draw network connections, aesthetic mappings of metadata and decoration with related annotation graphs in one interface by taking advantage of the powerful ggplot2 system. Overall, the crosslink R package is easy-to-use for achieving complex visualization of a network diagram of grouped nodes surrounded by associated annotation graphs.
AVAILABILITY AND IMPLEMENTATION: Cosslink is an open-source R package, freely available from github: https://github.com/zzwch/crosslink; A detailed user documentation can be found in https://zzwch.github.io/crosslink/.
Copyright © 2021 Liu, Bai, Liu and Li.

Entities:  

Keywords:  R package; crosslink; grouped data; network; visualization

Year:  2021        PMID: 34335702      PMCID: PMC8322777          DOI: 10.3389/fgene.2021.706854

Source DB:  PubMed          Journal:  Front Genet        ISSN: 1664-8021            Impact factor:   4.599


Introduction

With the rapid development of multi-omic technologies, intricate relationships between different categories of biomedical molecules were established, which brought huge opportunities and challenges to network visualization. Visualization of relationships between various biomolecules from different layers is helpful to explain and extract comprehensive biological information. For instance, Youqiong Ye etc. presented the network among the identified molecular alterations and the sensitivity of anticancer drugs to directly display a multi-omic molecular feature landscape of tumor hypoxia (Ye et al., 2019). And recently, there is a study characterizing the network among the expression of altered m6A regulators and cancer related pathways to illustrate the role of m6A in carcinogenesis (Li et al., 2019). Besides, researches in brain disease and plant development often provide an intuitive correlation network diagram to explain the influence of key regulators on other related layers (Shahan et al., 2018; Gilson et al., 2020). These cases show the common elements required for network visualization in many biomedical researches: (1) connections between multiple groups of biomolecules (i.e., grouped nodes), (2) mapping of additional biological information onto biomolecules and connections (i.e., nodes and edges), (3) arrangement of biomolecules in columns according to their categories, and (4) combination of annotation graphs around the network diagram. A number of tools have been developed for visualization of various complex network, such as Cytoscape (Shannon et al., 2003), igraph (Csardi and Nepusz, 2006), ggraph (Pedersen, 2020) and Gelphi (Bastian et al., 2009). Recently, CellChat (Jin et al., 2021) was released to specifically analyze and visualize cell-cell communication network. Importantly, none of the tools above offer the function to combine the network diagram with the corresponding annotation graphs for grouped nodes. For the present, a tool specially designed for network visualization of grouped nodes that supports nodes decoration with annotation plots is still lacking. Therefore, the user-friendly R package crosslink is developed here to arrange nodes by group, map metadata onto aesthetics of nodes and edges and align annotation graphs with the network. This package would hopefully meet various specific demands on network visualization of grouped biomolecules in biomedical research.

Materials and Methods

The crosslink is developed in R language and mainly includes four modules, which is CrossLink class, coordinate transformation methods, layout modules and the plotting function, as shown in Figure 1A. The CrossLink class is the basic module, storing the metadata of nodes and edges, node coordinates and other parameters. The other three modules are operated on the data structure of CrossLink class. Here, we termed the group of nodes as “cross” and the edge between groups as “link”.
FIGURE 1

Overviw and usage examples of crosslink. (A). A schematic diagram of crosslink showing four modules and associated functions. (B) Schematic diagram and examples showing transformation effects after using the coordinate transformation functions as indicated. (C) Examples of five predefined layout styles. (D) A typical application of combination network visualization by using crosslink.

Overviw and usage examples of crosslink. (A). A schematic diagram of crosslink showing four modules and associated functions. (B) Schematic diagram and examples showing transformation effects after using the coordinate transformation functions as indicated. (C) Examples of five predefined layout styles. (D) A typical application of combination network visualization by using crosslink. First, the function “crosslink” is used to generate a CrossLink object. With this function users can easily initialize a default network by inputting nodes and edges information. Several adjustments including spaces between nodes and gaps between crosses (groups) are also available for fine-tuning the default layout. Second, coordinate transformation module, consisting of several affine transformation methods and the method to define the function for mapping transformation, is then applied for node coordinate transforming by crosses. The “tf_affine” function is designed for coordinate transforming of grouped nodes in the network. It requires a CrossLink object as the input and returns the object with transformed coordinates. This function provides several designed modes including rotating, shifting, shearing, flipping and scaling (Figure 1B), which would be useful when adjusting node coordinates in one or all groups to beautify presentation of complex relationships among multiple types of data, as shown in Figure 1D. The “tf_fun” interface allows users to customize transforming function according to specific needs. Here, as an example, we designed a “sin” transformation method using “tf_fun” interface to illustrate its usage (Figure 1B). Third, commonly used styles are predefined in the layout module, including row, column, arc, polygon and hive as shown in Figure 1C. Users can specify a predefined network layout or combine multiple predefined layouts to design a diverse network. Fourth, the plotting function “cl_plot” allows various aesthetic settings for nodes, edges, node labels and headers by taking advantage of “ggplot2” system (Ito and Murphy, 2013). In particular, this function provides the annotation interface to achieve the combination of the network diagram and corresponding annotation graphs, with node coordinates aligned (Figure 1D). Additionally, the plotting module also includes several data extraction functions, such as “get_cross” and “get_link”, which can be used to obtain the coordinate and metadata information. The “set_header” function is provided to place cross (group) headers. In summary, crosslink provides a friendly interface for users to realize diverse network plotting of grouped nodes. This package can be applied to various biomedical studies for visualizing complex information and relationships between biomolecules in different categories (Goh et al., 2007; Neph et al., 2012; Chen and Wu, 2013; Shahan et al., 2018).

Discussion

This work presented the first network visualization R package tailored for grouped nodes that implements a series of functions to store network data, manipulate node coordinates, and plot network diagram with supports for aesthetic mappings for nodes and edges and aligned graph annotation.

Data Availability Statement

The original contributions presented in the study are included in the article/Supplementary Material, further inquiries can be directed to the corresponding author/s.

Author Contributions

ZL and BL conceived and designed the study. ZL completed the R package “crosslink” and wrote the manuscript. DL performed the figure test and wrote the user guide and the manuscript. ZB proofread and corrected the manuscript. All authors contributed to the article and approved the submitted version.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
  10 in total

1.  Cytoscape: a software environment for integrated models of biomolecular interaction networks.

Authors:  Paul Shannon; Andrew Markiel; Owen Ozier; Nitin S Baliga; Jonathan T Wang; Daniel Ramage; Nada Amin; Benno Schwikowski; Trey Ideker
Journal:  Genome Res       Date:  2003-11       Impact factor: 9.043

2.  The human disease network.

Authors:  Kwang-Il Goh; Michael E Cusick; David Valle; Barton Childs; Marc Vidal; Albert-László Barabási
Journal:  Proc Natl Acad Sci U S A       Date:  2007-05-14       Impact factor: 11.205

3.  Characterization of Hypoxia-associated Molecular Features to Aid Hypoxia-Targeted Therapy.

Authors:  Youqiong Ye; Qingsong Hu; Hu Chen; Ke Liang; Yuan Yuan; Yu Xiang; Hang Ruan; Zhao Zhang; Anren Song; Huiwen Zhang; Lingxiang Liu; Lixia Diao; Yanyan Lou; Bingying Zhou; Li Wang; Shengtao Zhou; Jianjun Gao; Eric Jonasch; Steven H Lin; Yang Xia; Chunru Lin; Liuqing Yang; Gordon B Mills; Han Liang; Leng Han
Journal:  Nat Metab       Date:  2019-03-18

4.  Circuitry and dynamics of human transcription factor regulatory networks.

Authors:  Shane Neph; Andrew B Stergachis; Alex Reynolds; Richard Sandstrom; Elhanan Borenstein; John A Stamatoyannopoulos
Journal:  Cell       Date:  2012-09-05       Impact factor: 41.582

5.  Consensus Coexpression Network Analysis Identifies Key Regulators of Flower and Fruit Development in Wild Strawberry.

Authors:  Rachel Shahan; Christopher Zawora; Haley Wight; John Sittmann; Wanpeng Wang; Stephen M Mount; Zhongchi Liu
Journal:  Plant Physiol       Date:  2018-07-10       Impact factor: 8.340

6.  Application of ggplot2 to Pharmacometric Graphics.

Authors:  K Ito; D Murphy
Journal:  CPT Pharmacometrics Syst Pharmacol       Date:  2013-10-16

7.  Inference and analysis of cell-cell communication using CellChat.

Authors:  Suoqin Jin; Christian F Guerrero-Juarez; Lihua Zhang; Ivan Chang; Raul Ramos; Chen-Hsiang Kuan; Peggy Myung; Maksim V Plikus; Qing Nie
Journal:  Nat Commun       Date:  2021-02-17       Impact factor: 17.694

8.  Systems biology as an integrated platform for bioinformatics, systems synthetic biology, and systems metabolic engineering.

Authors:  Bor-Sen Chen; Chia-Chou Wu
Journal:  Cells       Date:  2013-10-11       Impact factor: 6.600

9.  Molecular characterization and clinical relevance of m6A regulators across 33 cancer types.

Authors:  Yongsheng Li; Jun Xiao; Jing Bai; Yi Tian; Yinwei Qu; Xiang Chen; Qi Wang; Xinhui Li; Yunpeng Zhang; Juan Xu
Journal:  Mol Cancer       Date:  2019-09-14       Impact factor: 27.401

10.  Model-based whole-brain effective connectivity to study distributed cognition in health and disease.

Authors:  Matthieu Gilson; Gorka Zamora-López; Vicente Pallarés; Mohit H Adhikari; Mario Senden; Adrià Tauste Campo; Dante Mantini; Maurizio Corbetta; Gustavo Deco; Andrea Insabato
Journal:  Netw Neurosci       Date:  2020-04-01
  10 in total
  1 in total

1.  MicrobioSee: A Web-Based Visualization Toolkit for Multi-Omics of Microbiology.

Authors:  JinHui Li; Yimeng Sang; Sen Zeng; Shuming Mo; Zufan Zhang; Sheng He; Xinying Li; Guijiao Su; Jianping Liao; Chengjian Jiang
Journal:  Front Genet       Date:  2022-04-08       Impact factor: 4.772

  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.