Literature DB >> 30355288

wTO: an R package for computing weighted topological overlap and a consensus network with integrated visualization tool.

Deisy Morselli Gysi1,2, Andre Voigt3, Tiago de Miranda Fragoso4, Eivind Almaas3,5, Katja Nowick6.   

Abstract

BACKGROUND: Network analyses, such as of gene co-expression networks, metabolic networks and ecological networks have become a central approach for the systems-level study of biological data. Several software packages exist for generating and analyzing such networks, either from correlation scores or the absolute value of a transformed score called weighted topological overlap (wTO). However, since gene regulatory processes can up- or down-regulate genes, it is of great interest to explicitly consider both positive and negative correlations when constructing a gene co-expression network.
RESULTS: Here, we present an R package for calculating the weighted topological overlap (wTO), that, in contrast to existing packages, explicitly addresses the sign of the wTO values, and is thus especially valuable for the analysis of gene regulatory networks. The package includes the calculation of p-values (raw and adjusted) for each pairwise gene score. Our package also allows the calculation of networks from time series (without replicates). Since networks from independent datasets (biological repeats or related studies) are not the same due to technical and biological noise in the data, we additionally, incorporated a novel method for calculating a consensus network (CN) from two or more networks into our R package. To graphically inspect the resulting networks, the R package contains a visualization tool, which allows for the direct network manipulation and access of node and link information. When testing the package on a standard laptop computer, we can conduct all calculations for systems of more than 20,000 genes in under two hours. We compare our new wTO package to state of art packages and demonstrate the application of the wTO and CN functions using 3 independently derived datasets from healthy human pre-frontal cortex samples. To showcase an example for the time series application we utilized a metagenomics data set.
CONCLUSION: In this work, we developed a software package that allows the computation of wTO networks, CNs and a visualization tool in the R statistical environment. It is publicly available on CRAN repositories under the GPL -2 Open Source License ( https://cran.r-project.org/web/packages/wTO/ ).

Entities:  

Keywords:  Co-expression network; Co-occurrence network; Consensus Network; Expression; Meta analysis; Metagenomics; Network; R package; Software; wTO

Mesh:

Substances:

Year:  2018        PMID: 30355288      PMCID: PMC6201546          DOI: 10.1186/s12859-018-2351-7

Source DB:  PubMed          Journal:  BMC Bioinformatics        ISSN: 1471-2105            Impact factor:   3.169


Background

Recent applications of complex network analysis methods have provided important new knowledge of the functioning and interactions of genes at the systems level [1-4]. Within the area of biological network analyses, co-expression networks have received much attention [5, 6]. For the co-expression networks, a pair of nodes are typically connected by a link if the genes they represent show a significantly correlated expression pattern. In the network, this link may be represented as a binary relationship, where 1= “presence” and 0= “absence” of the link, or alternatively, the link may have a numeric value (often called weight). The magnitude of the weight is typically interpreted as representing the strength of a gene-pair relationship, and the sign as indicative of the type of associated gene interaction: positive if the genes are co-regulated, negative if they are oppositely controlled [7]. In many implementations of network analyses, we may primarily be interested in an a priori defined subset of genes with a specific set of properties. Examples include transcription factors (TFs), genes with known orthologs in a set of organisms of interest, or disease associated genes [8, 9]. For these situations, oftentimes the choice is made to only take into account direct interactions between the gene-subset of interest, instead of including the full set of correlations. A major drawback with such an approach, is that relevant information contained in interaction patterns among excluded genes that would affect network topology and link strength values, is not incorporated in the network. The loss of such information is not only undesirable, but may also lead to biased results. When analyzing networks in which the links have non-binary weights, the method of weighted topological (wTO) network analysis [10] has been found very useful. In a wTO-analysis, a new link-weight for a pair of connected nodes is determined through an averaging process that accounts for all common network neighbors [10]. Thus, wTO is a method that implicitly includes correlations among nodes that are going to be exempt from further analysis. The wTO method [10-12] can be used to determine the overlap among classes of transcripts, for example TFs and non-coding RNAs (ncRNAs). The resulting wTO network provides a more robust representation of the connections and interactions among the node-set of interest than a simple correlation network analysis focused only on the node-set of interest [13]. The packages WGCNA [14, 15] and ARACNe [16, 17] are widely used for weighted gene co-expression network analysis studies. The former provides functions for the calculation of the adjacency matrix for all pairs of genes as the n-th power of absolute correlations, resulting in an unsigned network. Network modules can be defined with this package by unsupervised clustering. The latter uses the mutual information (MI) of the expression in order to build the networks. These methods have received much attention in the literature [7, 18]. Previously, Nowick and collaborators [13] developed a mathematical method to calculate the wTO for a set of nodes that explicitly takes into account both positive and negative correlations. This version of the wTO-measure is especially valuable for investigating networks, in which it matters whether an interaction is activating or inhibiting/repressing. For instance, in gene regulatory networks the effect of a transcription factor or a ncRNA on its target genes can be activating or repressing. In metabolic networks, the increase of a substance can lead to an increase or decrease of another substance. Or in ecological networks, species interactions can be positive or negative, for instance in symbiotic or predator-prey relationships. In such cases, a distinction between positive and negative correlations for the calculation of the wTO is necessary and using the absolute correlations would falsify the biological insights. This wTO-calculation methodology is implemented in the R package presented here. In order to avoid confusion, we will refer to the method for calculating a pair-wise link score as wTO and to the package as wTO. When analyzing similar datasets, e.g. from a repeated experiment or independent studies on a similar subject, the resulting networks are usually different [19]. These differences may arise from several sources: (A) technical differences, such as the platform on which the expression data was measured, the facility where data was collected and prepared, or how data was processed. (B) Another cause may be biological differences from confounding factors, such as sex, age, and geographic origin of the individuals measured. It is thus desirable to obtain an integrated network that considers all independently derived networks as biological replicates and systematically identifies their commonalities. We developed a novel method to compute the network that captures all this information; we call this the consensus network (CN). Here, we present wTO, an R package that is capable of computing both signed and unsigned wTO networks as well as the CN, thus providing methods for assigning p-values to each link. The package also comes with an integrated tool to visualize the resulting networks and allows for nine different methods for network clustering to aid in module identification. The workflow of the package is shown in Fig. 1.
Fig. 1

The wTO package workflow. Gray boxes refer to inputs, red boxes refer to content of the wTO package, yellow boxes are functions included in the package, blue boxes are outputs of those functions, and green boxes refer to methods internal to the package. Our package can deal with multiple kinds of data, for example RNA-seq counts or normalized values, microarray expression data, abundance data coming from metagenomic studies, and many more. All input data should be pre-processed with the quality control and normalization methods recommended for each respective type of data. The function wTO.Complete calculates the wTO values, as many times as desired. As output, the user will obtain an object containing the signed and absolute wTO values for each pair of nodes, p-values and p-values for multiple testing. This output can be used for the construction of a CN from independent networks using the function wTO.Consensus. Outputs from the wTO and CN networks can be used as an input for NetVis, which is an integrated tool for plotting networks. As an interactive tool it also allows the user to modify the network

The wTO package workflow. Gray boxes refer to inputs, red boxes refer to content of the wTO package, yellow boxes are functions included in the package, blue boxes are outputs of those functions, and green boxes refer to methods internal to the package. Our package can deal with multiple kinds of data, for example RNA-seq counts or normalized values, microarray expression data, abundance data coming from metagenomic studies, and many more. All input data should be pre-processed with the quality control and normalization methods recommended for each respective type of data. The function wTO.Complete calculates the wTO values, as many times as desired. As output, the user will obtain an object containing the signed and absolute wTO values for each pair of nodes, p-values and p-values for multiple testing. This output can be used for the construction of a CN from independent networks using the function wTO.Consensus. Outputs from the wTO and CN networks can be used as an input for NetVis, which is an integrated tool for plotting networks. As an interactive tool it also allows the user to modify the network We compare our method to other state of art methods. To exemplify the usage of our package, we show here results from the calculation of wTO and CN networks from three independent genome-wide expression studies of healthy human pre-frontal cortex samples and an analysis of a time-series dataset from a metagenomics study.

Implementation

Input data

Our package can handle a wide range of input data. Data can be discrete or continuous values. We recommend performing all commonly used steps for quality control and normalization before passing on the data to our package. For RNA-Seq data, our package can handle normalized quantification, for example RPKM (Reads Per Kilobase Million), FPKM (Fragments Per Kilobase Million), and TPM (Transcripts Per Kilobase Million). For microarray data, rma or mas5 values can be used. If our package is used with metagenomics data, for instance for analyzing co-occurrence networks, we recommend the abundance data to be normalized per day/ sample.

Weighted topological overlap calculation

For a system of N nodes (e.g. genes or species), we define the adjacency matrix A= [a] based on correlations between a pair of nodes i and j as with ρ being a correlation measure. Assuming that nodes i and j represent a sub-set of factors (e.g genes) of particular interest selected from the N nodes, we calculate the weighted topological overlap (wTO [13], ω) between node i and node j as where Note that, this expression explicitly includes both positive and negative correlations, and thus allows for ω to take both positive and negative values. Other software packages calculating the ω have implemented definitions of the wTO method that do not allow for negative values [14], making this version valuable for gene regulatory network analysis. The wTO package also calculates the unsigned network, and for that, it takes as an input the absolute values of the correlation. Since Eq. (2) explicitly allows a≤0, we need to be aware of the limits of this expression. Consider three nodes i, j and u, and assume that a≤0. All the terms in the numerator of Eq. (2) will be negative if aa≤0 for all nodes u. However, if aa>0, then at least some contributions to the sum will cancel out. The same rationale applies for the case of a≥0. To systematically assess the potential effect of term cancellation in Eq. (2), we calculate the absolute weighted topological overlap, |ω| which uses the absolute value of the correlations (a=|a|) as input for Eq. (2). In this case, the sign of the correlation is excluded from the analysis and only the magnitude of the link-strength is taken into account. Consequently, by generating a scatter plot of the signed and unsigned weights, it is possible to assess at which ω-values term cancellations start affecting the results. Thus, for wTO values of interest, the closer the plot of ω vs. |ω| is to y=|x|, the better. However, by just computing the wTO network we do not avoid all spurious correlations. A way to detect them is to compute a probability of each one of the link scores being zero using the hypothesis test of the null hypothesis (H0) of no association against the two-sided alternative (H) of non-zero association. This can be computed by using bootstrap [20] or permutation resampling methods [13]. In the former, one resamples individuals, thus approximating the weights’ empirical distribution and calculating the probability that an observed weight is sufficiently distant from zero. In the latter, one operates under the null hypothesis of no dependence among genes and permutes the gene labels, obtaining the weights’ distribution under the null hypothesis, which is rejected if the observed weight is sufficiently extreme. We define δ as the maximal distance between the ω calculated with each bootstrap and the ω of the real dataset. This means that, the smaller δ is, the stronger is our confidence in a particular ω. By default, δ is set to 0.2. One advantage of the wTO package is its application to analyze and make networks out of time-series data. Therefore, we are interested in the implementation of blocked bootstrap resampling [20] that can be used for temporal data without sample replicates for each time point. This type of resampling is necessary once there are two correlation components in those samples: The correlation inside the factors of each sample and the correlation across the time of different samples. For this situation, the use of a lag is required. Lags are particularly helpful in time-series analyses as autocorrelations are often present: a tendency of consecutive values to be correlated. An important benefit of the presence of autocorrelations is that we may be able to identify patterns inside a time-series, such as seasonality (patterns that repeat themselves at a periodic frequency). Therefore, the lag can be chosen using a partial correlation of the time per sample. This is followed by calculating the wTO for a time series where the observations are not independent of each other.

A method for determining a consensus network

Berto and collaborators [19] described a consensus network based on gene-expression data from primates’ frontal lobes by applying a Wilcoxon test on the links. Our proposed methodology allows the use of two or more datasets, each generating different (and significant) wTO values, to be combined into a single CN. Our approach has the advantage of penalizing links with opposite signs. According to the same rationale, links with the same sign among the multiple wTO networks, will have their CN values closer to the largest ω of a link among the k networks. Our first step is to remove nodes that do not exist in all networks. Consequently, if a node is absent in at least one network, we are not able to compute a consensus of the links that belong to that node. It is particularly important not to associate factors that were not measured in a particular condition. In order to obtain a single integrated network derived from multiple independent wTO networks, we calculate a CN using the following approach: If we have k=1,…,n replicated networks (note that n means the index of the networks, not the exponent of α nor ω), then we define the consensus network wTOCN=[Ω] as where A threshold can be used to remove links with Ω values close to zero, thus should not be included in the consensus network. To join networks that were generated with the proposed wTO method into the consensus network, the p-values are combined using the Fisher’s method.

Results and discussion

The representation of interactions between a set of nodes by the wTO method [10-12] takes into account the overall commonality of all the links a node has, instead of basing the analysis only on calculating raw correlations among the nodes. It thus provides a more comprehensive understanding of how two nodes are related. Therefore, it is expected that a wTO network contains more robust information about the connections among nodes than what would result from simply taking direct correlations into account [11, 13]. The wTO can be computed based on a similarity matrix, where the link weights are calculated using Pearson’s product moment correlation coefficient or the Spearman Rank correlation. The first one measures the linear relationship between two genes. Note that, the Pearson’s correlation coefficient is sensitive to extreme values, and therefore it can exaggerate or under-report the strength of a relationship. The Spearman Rank Correlation is recommended when data is monotonically correlated, skewed or ordinal, and it is less sensitive to extreme outliers than the Pearson coefficient [21-24].

Package functions

The function wTO calculates the weights for all links according to Eq. (2) between a set of nodes for a given input data set. If the user is not interested in the resampling option, one may simply run this wTO function. To test whether the calculated wTO is different from random expectation and to decide on a suitable threshold value for including link weights, we implemented the function wTO.Complete. Here, the wTO is calculated a number of times, n specified by the user, by using either the 1) Bootstrapping (method_resampling = “Bootstrap”), or (method_resampling = “BlockBootstrap”) for time series data or 2) Permuting the expression values for each individual (method_resampling = “Reshuffle”) [13]. The user may specify the correlation method that this function should use, Pearson correlation is the default choice. Because bootstrapping and permutation tests can be computationally expensive, the wTO.Complete can also run in parallel over multiple cores to reduce the wall clock time. For running in parallel, the user may specify a given number of k computer threads to be used in the calculations. To implement the parallel function, we used the R package parallel [25]. The execution of the wTO.Complete function returns two outputs; a diagnosis set of plots and a list consisting of the following three objects: $Correlation is a data.table containing the Pearson or Spearman correlations between all the nodes, not only the set of interest. The wTO links for the set of nodes of interest are based on these correlations. The default of this output is set to FALSE. $wTO is a data.table containing the nodes, the wTO values (signed and unsigned), the p-values and the adjusted p-values computed using both signed and unsigned correlations. $Quantile is a table containing the quantiles for the empirical distribution, computed using the bootstrap and the quantiles for the real data: 0.1%, 2.5%, 10%, 90%, 97.5% and 99.9%. Those empirical values can be used as a threshold for the wTO values, when it is not desired to visualize low wTO scores. The set of plots indicate the quality of the resample: the closer the density of the resampled data is to the real data, the better. Another generated plot is the scatter plot of the ω vs |ω|, as previously discussed. The scatter plot of p-values against the ω and |ω| is also plotted along with suggested threshold values that are the empirical quantiles. Computing of the CN is done using the function wTO.Consensus. This function allows the user to give a list of networks in the format of data.frames with: Node 1, Node 2, the link weight and the p-value. The output is a data.table containing the two nodes’ names and the consensus weight, and the combined p-value. This allows the user to filter out the links that were not significant in part of the networks. A visual representation of the Consensus Network methodology is shown in Fig. 2. The thicker the link between two nodes is, the stronger the correlation between them. The signs are represented by the colors blue and orange, respectively. If a link has different signs in the networks, the strength of the link in the CN is close to zero. When all links agree to the same value or show little deviation, the strength of the resulting CN value is closer to the determined |maximum| value. If a node is absent in at least one network, it is removed.
Fig. 2

A schematic example of the CN method: Panel I shows four independent networks to be combined into one CN. Note that the rightmost network does not include the ’A’ node. Blue links indicate negative sign, while orange, positive. The CN can be seen on Panel II. Note that the missing node from Panel I is not present in the CN. Also, only links that are constant in their sign among networks are present in the final network. For example, the link between D and E is removed since it has a different signal in the last network

A schematic example of the CN method: Panel I shows four independent networks to be combined into one CN. Note that the rightmost network does not include the ’A’ node. Blue links indicate negative sign, while orange, positive. The CN can be seen on Panel II. Note that the missing node from Panel I is not present in the CN. Also, only links that are constant in their sign among networks are present in the final network. For example, the link between D and E is removed since it has a different signal in the last network The output data.frames (from both, wTO.Complete and wTO.Consensus) can be easily exported using the function export.wTO. This allows, for instance, to pass on the results of our package to Cytoscape [26] for further analysis. Our R package also includes options to visualize the resulting networks. The function NetVis generates an interactive graph using as input a list of links and their corresponding weights. The analysis functions wTO.Complete and wTO.Consensus both generate network data-structures (edge list) that can be visualized with this function. The user needs to choose a relevant wTO-threshold (the quantiles resulting from the bootstrap), or p-value cut-off, to select the set of links to be plotted. Additionally, the user may choose a layout for the network visualization from those available in the igraph [27] package. By default, the wTO-threshold value is set to 0.5, and the network layout-style is set to layout_nicely. To avoid false positives, we recommend to filter the data according to the desired significance p-value and to choose the wTO-threshold according to the computed empirical quantiles. The size of the nodes is relative to their degree. Our package further includes an option for MakeCluster from the nodes; if allowed, nodes are colored according to the cluster they belong to. The user can choose the method to create the clusters. One important difference between our package and the WGCNA package, is that we only use significant links for cluster (modules) network representation instead of the full set of co-expressions, as in the WGCNA package. The width of a link is relative to the wTO, and its color is respective to its sign (if a signed network was calculated). Nodes can have different shapes, allowing for labeling nodes of different classes, for example target genes or protein coding and non-protein coding genes. Furthermore, the user may also zoom in and out of the network visualization, drag nodes and links, edit nodes and links, and export the image as html or png. The package provides example datasets and an example of nodes of interest as well.

Algorithm compute time with varying system size

Normally, when running the wTO, the interest lies on a subset of nodes of interest. In Fig. 3 we show the runtime for different network sizes, and different proportions of nodes of interest. When running the wTO for all expressed genes coding for transcription factors (TFs) being the genes of interest, we have around 14% of nodes of interest. Using a standard laptop computer, it’s possible to compute the wTO for a full network with 20,000 nodes in 20 miliseconds per link. This shows that it is quite feasible to compute the full wTO for a realistic gene expression network.
Fig. 3

Computational time for the calculation of wTO for each link for different sizes of networks and proportions of sets of nodes of interest: The run time of the wTO calculation increases with increasing proportion of nodes of interest. The graph presented here shows the time for computing each link for different sizes of nodes and proportions of subsets of nodes of interest

Computational time for the calculation of wTO for each link for different sizes of networks and proportions of sets of nodes of interest: The run time of the wTO calculation increases with increasing proportion of nodes of interest. The graph presented here shows the time for computing each link for different sizes of nodes and proportions of subsets of nodes of interest

Comparison with existing methods

A variety of methods currently exist to analyze gene co-expression networks, in particular ARACNe [16, 17], SPACE [28] and WGCNA [14, 15]. These methods rest on a multitude of different mathematical principles, particularly with respect to how co-expression is quantified. Of particular interest is WGCNA, which shares notable similarities with our wTO package in heuristic terms, but with some substantial differences in functionality. In particular, WGCNA also uses the weighted topological overlap (in their nomenclature, the “topological overlap matrix”, or TOM) to quantify co-expression at the gene-pair level. But in WGCNA, the final edge weight corresponds to the absolute value of ω as defined in Eq. 2, or the absolute value of the terms in the numerator of Eq. 2. These are referred to as signed or unsigned, respectively. Topological overlap as a measure of co-expression has previously been shown to compare favourably with other methods [18]. While wTO and WGCNA construct the networks based on overlaping topologies, the ARACNe method builds the network using the mutual information (MI) and removing links that are indirect interactions using data processing inequality (DPI). Another important difference between the methods is that wTO and WGCNA will compute a link for all pair-wise possible connections, while ARACNe will only compute the pair-wise information if their information is not independent (Table 1).
Table 1

Comparison of key differences between wTO, WGCNA and ARACNe

MethodwTOWGCNAARACNe
Topological overlapYesYesNo
Signed topological overlapOptionalNoNo
Consensus topological overlapWeighted sumMinimum weight (strict)No
Pairwise p-valuesYesNoUsed to filter MI
Network viewNativeExported to CytoscapeExported to Cytoscape
Soft thresholdingNoOptional (on by default)No
Correlation choicesSpearman, PearsonBicor, PearsonSpearman, Pearson, Kendall
Able to deal with time-seriesYesNoNo
Comparison of key differences between wTO, WGCNA and ARACNe Relative to WGCNA, wTO provides three major additions: the determination of p-values (determined by bootstrapping) for each pairwise wTO value; the calculation of a consensus network, and the ability to visualize the topological overlap network (along with node grouping according to a choice of nine algorithms). While WGCNA provides a variety of tools for visualizing the hierarchical tree forming the network, as well as for rendering the correlation matrix in heatmap form, it does not provide a node-and-edge type view of the co-expression network (but does allow for exporting networks into Cytoscape, in which network views are possible). Additionally, the consensus network as defined in Eq. 6 differs from the consensus TOM defined in WGCNA, which simply assigns to each edge of the consensus network the minimal value of the topological overlap across the input conditions. This is a strict version of consensus (unanimity), in that it will discard any gene pair if the overlap is weak in even a single network. In contrast, while Eq. 6 will remove contributions from networks where the topological overlap is weak (or where the sign of the wTO score is in conflict with the other networks), an edge may still be included if it is sufficiently present across the other networks. Further additions in wTO include the possibility of choosing the Spearman correlation as the basis of a (while WGCNA provides biweight midcorrelation, or bicor for short; both provide Pearson), as well as reducing computation time by the option of restricting the calculation of wTO scores to a set of genes of interest (while still including the adjacency to genes outside this set in each inter-set wTO score). Another minor difference resides in how wTO is determined for each gene with itself. From Eq. 2, we see that (assuming a=0 and a=a): For an unweighted network, where a=0 or a=1 for all (i,j), this approximates to for large k. However, this is not the case for weighted networks. WGCNA differs from the wTO package in that w=1 is explicitly set for all i, while our package retains the score as defined by Eq. 2.

Comparing wTO, WGCNA and ARACNe using an E. coli transcription factor network

In order to quantitatively compare the performance of wTO, WGCNA and ARACNe, we downloaded a gene expression dataset from E. coli from http://systemsbiology.ucsd.edu/InSilicoOrganisms/Ecoli/EcoliExpression2 [29-32]. The data consists of 213 Affymetrix microarray gene expression profiles, corresponding to multiple different strains under different growth conditions, and contains gene expression data for 7312 distinct probes. Gene expressions were calculated as the mean of probes corresponding to the same gene. To assess the capability of the three tools in identifying true TF-TF interactions, we used the RegulonDB [33] database, which contains experimental data from E. coli, as a reference. We defined as True-Positive interactions those that are described in RegulonDB, and as True-Negatives all interactions that could not be experimentally validated in that dataset. For comparison, we also calculated networks using only the raw Pearson correlation. We generated the network for WGCNA following the steps described by the authors in the Tutorial [11, 34]. We used the functions pickSoftThreshold and pickHardThreshold for defining the power of the soft-threshold and for choosing the hard-threshold, respectively. The power was defined as 4 and the hard-threshold was set to 0.3. The ARACNe network was built using the Pearson correlation with build.mim and ARACNe functions in the minet R package [35]. The wTO networks were built using 1000 simulations, Pearson correlation and filtered for p-values ≤0.01 and the 90% quantile. One wTO network was constructed using a δ of 0.2, the default of the package, and another network was built using a δ of 0.1. All networks were filtered to only contain TFs with information in the RegulonDB. We calculated the Receiver operating characteristic (ROC)-curve using the pROC R package [36] (see Fig. 4).
Fig. 4

ROC curves for the comparison of methods. Overall, our wTO method performs better than ARACNe, WGCNA and raw Pearson correlations. ARACNe is better in finding true positives, while WGCNA is more conservative, and therefore better in finding true negatives but identifies fewer true positives

ROC curves for the comparison of methods. Overall, our wTO method performs better than ARACNe, WGCNA and raw Pearson correlations. ARACNe is better in finding true positives, while WGCNA is more conservative, and therefore better in finding true negatives but identifies fewer true positives ARACNe was able to better identify the amount of true positives compared to WGCNA and wTO, but performs worse when finding true negatives and also has a larger number of false positives (Fig. 4, Table 2). WGCNA is better at finding true negatives, but does not identify many true links. Our proposed wTO method performs better than WGCNA in finding true positives and better than ARACNe in finding true negatives. It also finds fewer false positives than ARACNe. In general, even when using a large δ, wTO performs better than the two other methods, as seen in the Area Under the Curve (AUC; the closer it is to unity, the better). This demonstrates that the use of the wTO method further reduces false effects coming from incorrectly assigned linked genes (false positives) when compared to ARACNe and raw correlations.
Table 2

Accuracy of the 3 methods and correlation

ReactomeDB (Total)Pearson correlationARACNeWGCNAwTO (delta 0.1)wTO (delta 0.2)
True negative723422592633709265205235
False negative0216245321318288
False positive0497546011427141999
True positive3281128371040
Total756275627562756275627562
Accuracy of the 3 methods and correlation

Examples of wTO networks using the wTO R package

wTO and CN networks for TFs of the human prefrontal cortex

To exemplify the usage and results of our package, we analyzed three independent datasets of microarray data from human prefrontal cortex. Data sets were downloaded as raw data from Gene Expression Omnibus (GEO) website [37]. From the study GSE20168 [38, 39], we used data from a total of 15 postmortem brain samples. From the study GSE2164 [40], we used a total of 26 samples from post mortem brains. And finally, from the study GSE54568 [41] we used all the 15 controls. All individuals were older than 5 years and died without any neuro-pathological phenotypes. We chose the TFs to be our genes of interest and calculated a TF-wTO network for each of the three datasets. Subsequently, we computed the consensus network for the three TF wTO networks. The downloaded data were pre-processed and normalized by ourselves independently, using the R environment [42], and the affy [43] package from the Bioconductor set. The probe expression levels (RMA expression values) and MAS5 detection p-values were computed, and only probesets significantly detected in at least one sample (p-value <0.05) were considered. After the Quality Control and normalization of the data, the probes that were not specific for only one gene were deleted. If one gene was bound by more than one probeset, the average expression was computed. Here, we will focus on how TFs are co-expressed in brain networks. We used a set of 3229 unique TF symbols from the TF-Catalog (Perdomo-Sabogal et al. (in preparation)) with ENSEMBL protein IDs. The construction of this catalog contains the information for TF proteins sourced from the most influential studies in the field of human Gene Regulatory Factors (GRF) inventories [44-51] that are associated with gene ontology terms for regulation of transcription, DNA-depending transcription, RNA polymerase II transcription co-factor and co-repressor activity, chromatin binding, modification, remodeling, or silencing, among others. Signed wTO networks were calculated for each dataset separately using the function wTO.Complete of our wTOR package and then merged with the function wTO.Consensus into the consensus. Significance of all networks was evaluated using 1000 bootstraps, Pearson correlation and filtered for p-value of <0.01. The Consensus Network was built based on the calculated signed wTO values of significant links. Weights for links with in-significant wTO were set to zero. Figure 5 shows the distributions and the networks for our three datasets.
Fig. 5

Comparison of the three networks used to compute the CN. The first row shows the distribution of significant wTO values (p-value <0.01). Note that the wTO range of the second network is larger than of the other two networks. The second row show the wTO network for each method. The third and forth row refer to the CN. Note that now the distribution of the wTO values does not include the wTO values close to zero, and retains only values that show a high correlation between the TFs. In the histograms, the presence of negative wTO values is visible, indicating that there are TFs that downregulate other genes

Comparison of the three networks used to compute the CN. The first row shows the distribution of significant wTO values (p-value <0.01). Note that the wTO range of the second network is larger than of the other two networks. The second row show the wTO network for each method. The third and forth row refer to the CN. Note that now the distribution of the wTO values does not include the wTO values close to zero, and retains only values that show a high correlation between the TFs. In the histograms, the presence of negative wTO values is visible, indicating that there are TFs that downregulate other genes TFs were clustered using the Louvain algorithm with the NetVis function, which identified 5 clusters in the CN. When considering each network independently, we had 18, 8 and 16 clusters. This shows that the CN detects fewer clusters of genes, which are more densely connected, compared to the clusters detected in the individual wTO networks. In order to investigate the function of each one of the 5 CN clusters, we calculated the correlation of each TF of a cluster with all other expressed genes using Pearson correlation. Genes with a correlation of at least |0.80| with at least one TF of the cluster were used for GO enrichment analysis for that cluster, using the R package topGO [52]. The enrichment analysis revealed many brain related functions, for instance, clusters 1 and 3 show overrepresentation of groups related to cognition (Table 3 and Fig. 6).
Table 3

GO terms associated with each one of the CN Clusters

Cluster# TFsGenesGO.IDTerm
correlated
to TFs
158958GO:0042775mitochondrial ATP
synthesis coupled
GO:0010498proteasomal protein
catabolic process
GO:0050890cognition
GO:0033238regulation of cellular
amine metabolic pathway
GO:0008090retrograde axonal transport
GO:0070050neuron cellular homeostasis
GO:0090168Golgi reassembly
GO:0006099tricarboxylic acid cycle
GO:0051443positive regulation of
ubiquitin-protein
GO:0061418regulation of transcription
from RNA polimerase
GO:0047496vesicle transport along
microtubule
GO:0061640cytoskeleton-dependent
cytokinesis
GO:0043488regulation of mRNA stability
GO:0000086G2/M transition of mitotic cell
cycle
GO:0038061NIK/NF-kappaB signaling
GO:0000209protein polyubiquitination
GO:0007052mitotic spindle organization
GO:0031333negative regulation of protein
complex
GO:0002223stimulatory C-type lectin
receptor signal
GO:0016486peptide hormone processing
GO:0034314Arp2/3 complex-mediated
actin nucleation
GO:1900271regulation of long-term
synaptic potential
GO:0000715nucleotide-excision repair,
DNA damage
GO:1901983regulation of protein acetylation
GO:0016082synaptic vesicle priming
GO:0043243positive regulation of protein
complex
GO:2000637positive regulation of gene
silencing
GO:0021902commitment of neuronal cell
GO:0051683establishment of Golgi
localization
GO:0060013righting reflex
GO:0061732mitochondrial acetyl-CoA
biosynthetic pr...
264777GO:0035773insulin secretion involved in
cellular
GO:0098930axonal transport
GO:0000086G2/M transition of mitotic cell
cycle
GO:0061640cytoskeleton-dependent
cytokinesis
GO:0090083regulation of inclusion body
assembly
GO:0034112positive regulation of homotypic
GO:1902750negative regulation of cell cycle
G2/M
GO:0031146SCF-dependent proteasomal
ubiquitin-dependent
GO:0061003positive regulation of dendritic
spine
GO:0032922circadian regulation of gene
expression
GO:0072600establishment of protein
localization
GO:0061077chaperone-mediated protein
folding
GO:0016191synaptic vesicle uncoating
GO:1902309negative regulation of
peptidyl-serine
GO:0048024regulation of mRNA splicing,
via spliceosome
GO:0016486peptide hormone processing
GO:0048268clathrin coat assembly
GO:0000209protein polyubiquitination
GO:0035902response to immobilization
stress
GO:2000757negative regulation of
peptidyl-lysine
34017GO:0043687post-translational protein
modification
GO:0050851antigen receptor-mediated
signaling pathway
GO:0002479antigen processing and
presentation
GO:0090199regulation of release of
cytochrome c
GO:1905323telomerase holoenzyme
complex assembly
GO:0050890cognition
GO:0043248proteasome assembly
GO:0030177positive regulation of Wnt
GO:0030177signaling pat...
GO:0047496vesicle transport along
microtubule
GO:0042775mitochondrial ATP synthesis
GO:0035773insulin secretion involved in
cellular
GO:0045116protein neddylation
GO:0090141positive regulation of
mitochondrial
GO:0060071Wnt signaling pathway,
planar cell
GO:0010635regulation of mitochondrial
fusion
GO:0016579protein deubiquitination
GO:0090090negative regulation of canonical
Wnt signal
GO:0051131chaperone-mediated protein
complex
GO:0051560mitochondrial calcium ion
homeostasis
GO:0008090retrograde axonal transport
GO:0032700negative regulation of
interleukin-17
GO:0048170positive regulation of
GO:0048170long-term neuronal
GO:0051036regulation of endosome size
GO:0061588calcium activated phospholipid
GO:0090149mitochondrial membrane fission
GO:0097112gamma-aminobutyric acid
receptor
GO:0097332response to antipsychotic drug
GO:0097338response to clozapine
GO:1902683regulation of receptor
localization
GO:0060052neurofilament cytoskeleton
organization
GO:0048678response to axon injury
467739GO:0007612learning
GO:0000209protein polyubiquitination
GO:0070646protein modification by small
protein
GO:0035567non-canonical Wnt signaling
pathway
GO:0038061NIK/NF-kappaB signaling
GO:0090313regulation of protein targeting
to membrane
GO:0016339calcium-dependent cell-cell
adhesion
GO:0002223stimulatory C-type lectin
receptor signal
GO:0043687post-translational protein
modification
GO:0008090retrograde axonal transport
GO:0061732mitochondrial acetyl-CoA
biosynthetic
GO:0070050neuron cellular homeostasis
GO:0016236macroautophagy
GO:0043488regulation of mRNA stability
GO:0061178regulation of insulin secretion
involved...
GO:0016486peptide hormone processing
GO:0035493SNARE complex assembly
GO:0034112positive regulation of homotypic
GO:1902260negative regulation of delayed
rectifier...
GO:1902267regulation of polyamine
transmembrane
GO:2000574regulation of microtubule
motor activity
GO:0016082synaptic vesicle priming
GO:0051560mitochondrial calcium ion
homeostasis
GO:0006596polyamine biosynthetic process
GO:0060052neurofilament cytoskeleton
organization
GO:1903608protein localization to
cytoplasmic stress
GO:0000715nucleotide-excision repair,
DNA damage
GO:0047496vesicle transport along
microtubule
GO:1990542mitochondrial transmembrane
transport
GO:0031333negative regulation of protein
complex
GO:0046826negative regulation of protein
export
5184GO:0072369regulation of lipid transport
GO:1901379regulation of potassium ion
transmembrane
GO:0032700negative regulation of
interleukin-17
GO:0051036regulation of endosome size
GO:1904219positive regulation of
CDP-diacylglycerol
GO:1904222positive regulation of serine
C-palmitoyl
GO:1905664regulation of calcium ion import
GO:2000286receptor internalization
GO:0021769orbitofrontal cortex
development
GO:0045716positive regulation of
low-density lipo.
GO:0060430lung saccule development
GO:0070885negative regulation of
calcineurin-NFAT
GO:1900272negative regulation of
long-term synaptic
GO:1902951negative regulation of dendritic
spine
Fig. 6

GO terms enriched within each cluster. Enriched GO terms of the category “biological process” are clustered by REVIGO [76] with the SimRel measurement and allowed similarity of 0.5. The size of the circle represents the frequency of the GO term in the database, i.e. GO groups with many members are represented by larger circles. The color code refers to the log10(p-value) of the GO enrichment analysis: the closer to 0, the more red, the lower this value, the greener the bubble is. After removing redundancies, the remaining terms are visualized in semantic similarity-based scatter-plots, where the axes correspond to semantic distance. Brain related functions were detected, for instance in Clusters 1 and 3, that are involved with cognition

GO terms enriched within each cluster. Enriched GO terms of the category “biological process” are clustered by REVIGO [76] with the SimRel measurement and allowed similarity of 0.5. The size of the circle represents the frequency of the GO term in the database, i.e. GO groups with many members are represented by larger circles. The color code refers to the log10(p-value) of the GO enrichment analysis: the closer to 0, the more red, the lower this value, the greener the bubble is. After removing redundancies, the remaining terms are visualized in semantic similarity-based scatter-plots, where the axes correspond to semantic distance. Brain related functions were detected, for instance in Clusters 1 and 3, that are involved with cognition GO terms associated with each one of the CN Clusters

Time series: Metagenomics data from the ocean

Only about 1% of marine bacteria can be easily studied using standard laboratory procedures [53]. This is a major drawback for the understanding of how those microorganisms interact. Systems biology methods can provide helpful insights to shed light on species interactions. To demonstrate an application of our wTO package for time series data with no replicates, we use as an example metagenomics data from The USC Microbial Observatory. The data is public available at https://www.ebi.ac.uk/metagenomics/projects/ERP013549. The sampling site is located between Los Angeles and the USC Wrigley Marine Laboratory on Santa Catalina and spans approximately 900 m of water. Over the course of 98 months, samples were taken once a month. Operational Taxonomic Unity (OTUs) were determined using 16S ribosomal RNA (rRNA). The authors found 67 OTUs that will be used in our analysis. In order to find the correct lag for the blocked bootstrap, we used the autocorrelation function (acf) for all OTUs and chose a median lag of 2. This allowed us to define the blocks with high autocorrelation in the same sample, meaning that for them the abundance of the OTU on each specific time point is correlated to the following next 2 time points. Based on that, we built the network of bacteria co-occurrence in that environment (Fig. 7). We found that 61 out of 67 OTUs had at least one significant interaction (p-value <0.01). Positive correlations in co-occurence networks may represent symbiotic or commensal relationships, while negative correlations may represent predator-prey interactions, allelopathy or competition for limited resources. Using the community detection method for defining clusters we identified four distinct clusters of bacteria. We did not find any association of the phylogeny with clusters, which is in agreement with previous studies. However, we can clearly see (Fig. 7) that the blue group is rich in negative relationships, while both, the purple and orange groups, possess many positive relationships. These positive relationships are formed mostly by Flavobacteriales, bacteria that are known to infect fishes [54] and to live in commensality with other bacteria from the same order [55].
Fig. 7

OTUs analysis using the Time-Series method of the wTO package. In this network, the sizes of the nodes are proportional to a node’s degree, and the width of a link is proportional to its wTO-absolute value. The link color refers to its sign, with green links being negative and purple ones positive. Nodes belonging to the same cluster are shown in the same color. There are four distinct clusters of bacteria. The orange cluster contains only negative interactions (green links), suggesting that the bacterial species in this cluster do not co-exist. We also notice, that many of the bacteria belonging to the same order are well connected by purple links, indicating that they co-exist and share interactions. However, the number of interactions among non-related bacteria demonstrate that interactions are not intra-order specific

OTUs analysis using the Time-Series method of the wTO package. In this network, the sizes of the nodes are proportional to a node’s degree, and the width of a link is proportional to its wTO-absolute value. The link color refers to its sign, with green links being negative and purple ones positive. Nodes belonging to the same cluster are shown in the same color. There are four distinct clusters of bacteria. The orange cluster contains only negative interactions (green links), suggesting that the bacterial species in this cluster do not co-exist. We also notice, that many of the bacteria belonging to the same order are well connected by purple links, indicating that they co-exist and share interactions. However, the number of interactions among non-related bacteria demonstrate that interactions are not intra-order specific

Conclusion

This new wTO package allows wTO network calculation for both, positive and negative correlations, which is not provided in any other published R package. With this feature it becomes valuable for the analysis of gene regulatory network, metabolic networks, ecological networks and other networks, in which the biological interpretation strongly depends on distinguishing between activating and inhibiting/repressing interactions. Another novel feature is the computation of p-values for each link based on its empirical distribution, which allows for the reduction of false positive links in wTO networks. With our package, networks can also be calculated from time series data. In addition, our package includes the computation of a CN, which enables integrating networks derived from different studies or datasets to determine links that consistently appear in these networks. By focusing on what these independently derived networks have in common, the CN should be of higher biological confidence than each individual network is. We also provide an interactive visualization tool that can be used to visualize both, wTO networks and CN, for efficient further custom analysis. We qualitatively and quantitatively compared our new package to state-of-the-art methods and demonstrated that it performs better in identifying true positives and false negatives. We provide two use cases for our package, one on wTO and CN calculation from three independent genome-wide expression datasets of human pre-frontal cortex samples, and one on wTO co-occurence networks calculated from time series data of a metagenomics abundance dataset from the ocean. Here, we demonstrated that clusters and GO enrichment in the CN are more defined than in individual wTO networks, highlighting the benefits of our package for analyzing and interpreting large biological datasets.

Availability and requirements

Project name: wTO: Computing Weighted Topological Overlaps (wTO) & Consensus wTO Network Project home page: https://CRAN.R-project.org/package=wTO Operating system: Platform independent Programming language: R Other requirements: wTO relies on the following packages: som [56], plyr [57], stringr [58], network [59, 60], igraph [27], visNetwork [61], data.table [62] and the standard packages stats and parallel [25]. The visualization tool implemented in our package was built using a combination of the packages network [59, 60], igraph [27] and visNetwork [61]. The MakeGroups parameter, passed to the function NetVis for constructing the network, allows the user to choose clustering algorithms from: “walktrap” [63], “optimal”[64], “spinglass” [65-67], “edge.betweenness’ [68, 69], ‘fast_greedy” [70], “infomap’ [71, 72], “louvain” [73], “label_prop’ [74] and “leading_eigen” [75]. All those algorithms are implemented in the igraph package[27]. License: GLP-2
  52 in total

Review 1.  Network biology: understanding the cell's functional organization.

Authors:  Albert-László Barabási; Zoltán N Oltvai
Journal:  Nat Rev Genet       Date:  2004-02       Impact factor: 53.242

2.  Hierarchical organization of modularity in metabolic networks.

Authors:  E Ravasz; A L Somera; D A Mongru; Z N Oltvai; A L Barabási
Journal:  Science       Date:  2002-08-30       Impact factor: 47.728

3.  Integrating high-throughput and computational data elucidates bacterial networks.

Authors:  Markus W Covert; Eric M Knight; Jennifer L Reed; Markus J Herrgard; Bernhard O Palsson
Journal:  Nature       Date:  2004-05-06       Impact factor: 49.962

4.  Which is the correct statistical test to use?

Authors:  Evie McCrum-Gardner
Journal:  Br J Oral Maxillofac Surg       Date:  2007-10-24       Impact factor: 1.651

Review 5.  Human diseases through the lens of network biology.

Authors:  Laura I Furlong
Journal:  Trends Genet       Date:  2012-12-07       Impact factor: 11.639

6.  Latent pathway activation and increased pathway capacity enable Escherichia coli adaptation to loss of key metabolic enzymes.

Authors:  Stephen S Fong; Annik Nanchen; Bernhard O Palsson; Uwe Sauer
Journal:  J Biol Chem       Date:  2005-11-30       Impact factor: 5.157

7.  An ORFeome-based analysis of human transcription factor genes and the construction of a microarray to interrogate their expression.

Authors:  David N Messina; Jarret Glasscock; Warren Gish; Michael Lovett
Journal:  Genome Res       Date:  2004-10       Impact factor: 9.043

8.  Gene co-expression network analysis reveals common system-level properties of prognostic genes across cancer types.

Authors:  Yang Yang; Leng Han; Yuan Yuan; Jun Li; Nainan Hei; Han Liang
Journal:  Nat Commun       Date:  2014       Impact factor: 14.919

9.  TFClass: an expandable hierarchical classification of human transcription factors.

Authors:  Edgar Wingender; Torsten Schoeps; Jürgen Dönitz
Journal:  Nucleic Acids Res       Date:  2012-11-24       Impact factor: 16.971

10.  RegulonDB version 9.0: high-level integration of gene regulation, coexpression, motif clustering and beyond.

Authors:  Socorro Gama-Castro; Heladia Salgado; Alberto Santos-Zavaleta; Daniela Ledezma-Tejeida; Luis Muñiz-Rascado; Jair Santiago García-Sotelo; Kevin Alquicira-Hernández; Irma Martínez-Flores; Lucia Pannier; Jaime Abraham Castro-Mondragón; Alejandra Medina-Rivera; Hilda Solano-Lira; César Bonavides-Martínez; Ernesto Pérez-Rueda; Shirley Alquicira-Hernández; Liliana Porrón-Sotelo; Alejandra López-Fuentes; Anastasia Hernández-Koutoucheva; Víctor Del Moral-Chávez; Fabio Rinaldi; Julio Collado-Vides
Journal:  Nucleic Acids Res       Date:  2015-11-02       Impact factor: 16.971

View more
  11 in total

1.  Gene Co-expression Network Analysis.

Authors:  Juan D Montenegro
Journal:  Methods Mol Biol       Date:  2022

2.  Measuring subjective quality of life in autistic adults with the PROMIS global-10: Psychometric study and development of an autism-specific scoring method.

Authors:  Zachary J Williams; Carissa J Cascio; Tiffany G Woynaroski
Journal:  Autism       Date:  2022-04-11

3.  Investigating the structure of trait rumination in autistic adults: A network analysis.

Authors:  Zachary J Williams; Erin E McKenney; Katherine O Gotham
Journal:  Autism       Date:  2021-05-31

4.  Conserved paradoxical relationships among the evolutionary, structural and expressional features of KRAB zinc-finger proteins reveal their special functional characteristics.

Authors:  Pan Shen; Aishi Xu; Yushan Hou; Huqiang Wang; Chao Gao; Fuchu He; Dong Yang
Journal:  BMC Mol Cell Biol       Date:  2021-01-22

5.  Robust normalization and transformation techniques for constructing gene coexpression networks from RNA-seq data.

Authors:  Kayla A Johnson; Arjun Krishnan
Journal:  Genome Biol       Date:  2022-01-03       Impact factor: 13.583

6.  Smartphone-based digital phenotyping for dry eye toward P4 medicine: a crowdsourced cross-sectional study.

Authors:  Takenori Inomata; Masahiro Nakamura; Jaemyoung Sung; Akie Midorikawa-Inomata; Masao Iwagami; Kenta Fujio; Yasutsugu Akasaki; Yuichi Okumura; Keiichi Fujimoto; Atsuko Eguchi; Maria Miura; Ken Nagino; Hurramhon Shokirova; Jun Zhu; Mizu Kuwahara; Kunihiko Hirosawa; Reza Dana; Akira Murakami
Journal:  NPJ Digit Med       Date:  2021-12-20

7.  Construction, comparison and evolution of networks in life sciences and other disciplines.

Authors:  Deisy Morselli Gysi; Katja Nowick
Journal:  J R Soc Interface       Date:  2020-05-06       Impact factor: 4.118

8.  Combined Experimental and System-Level Analyses Reveal the Complex Regulatory Network of miR-124 during Human Neurogenesis.

Authors:  Lisa K Kutsche; Deisy M Gysi; Joerg Fallmann; Kerstin Lenk; Rebecca Petri; Anka Swiersy; Simon D Klapper; Karolina Pircs; Shahryar Khattak; Peter F Stadler; Johan Jakobsson; Katja Nowick; Volker Busskamp
Journal:  Cell Syst       Date:  2018-10-03       Impact factor: 10.304

9.  Exposure to environmental radionuclides is associated with altered metabolic and immunity pathways in a wild rodent.

Authors:  Jenni Kesäniemi; Toni Jernfors; Anton Lavrinienko; Kati Kivisaari; Mikko Kiljunen; Tapio Mappes; Phillip C Watts
Journal:  Mol Ecol       Date:  2019-09-30       Impact factor: 6.185

10.  Whole transcriptomic network analysis using Co-expression Differential Network Analysis (CoDiNA).

Authors:  Deisy Morselli Gysi; Tiago de Miranda Fragoso; Fatemeh Zebardast; Wesley Bertoli; Volker Busskamp; Eivind Almaas; Katja Nowick
Journal:  PLoS One       Date:  2020-10-15       Impact factor: 3.240

View more

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