Introduction

The increasing availability of genomic and proteomic data has propelled network biology to the frontier of biomedical research1,2,3,4. Network biology uses a graph to depict interactions between cellular components (proteins, genes, metabolites and so on), where the nodes are cellular components and the links represent interactions. Two of the most surprising discoveries from the genome sequencing projects are that the human gene repertoire is much smaller than had been expected, and that there are just over 200 genes unique to human beings5. As the number of genes alone does not fully characterize the biological complexity of living organisms, the scale of physiologically relevant protein and gene interactions are now being investigated to understand the basic biological principles of life6,7,8. Although the list of known protein–protein interactions (PPIs) and gene regulatory interactions (GRIs) is expanding at an ever-increasing pace, the human PPI and GRI networks are far from being complete and, hence, their dynamics have yet to be uncovered9,10,11.

The feed-forward loop (FFL) and several other graphlets (called motifs) are found to be over-represented in different biological networks11. Furthermore, over-represented motifs usually represent functional units of biological processes in cells. Hence, it is natural to ask whether a motif, such as a triangle, appears more often in the interactome of humans than in that of other species, or whether the FFL or the bi-fan appears more frequently in the human gene regulatory network. As the biological networks that have been reported are actually the subnetworks of the true ones and often contain remarkably many incorrect interactions for eukaryotic species, there are two approaches to answering these questions. One approach is to infer spurious and missing links in the entire network12,13,14, and then to count motif occurrences. Another approach is to estimate the number of motif occurrences in the interactome from the observed subnetwork data using the same method as that for estimating the size of eukaryotic interactomes9,10,15. If we have the number of occurrences of a motif or its estimate in a network, we can determine whether the motif is over-represented or not, based on how often the motif is seen in a random network with similar structural parameters11,16,17.

In the present work, we take spurious and missing link errors into account to develop an unbiased and consistent estimator for the motif count. The method works for both undirected and directed networks. We derive explicit mathematical expressions for the estimators of five commonly studied triad and quadriad network motifs (Fig. 1). These estimators are further validated extensively for each of the following four models: Erdös–Renyi (ER)18, preferential attachment19, duplication20 and the geometric model21 (Supplementary Note 1). By applying the method to eukaryotic interactomes, we find that the number of triangles in the human interactome is about 194 times that of the Saccharomyces cerevisiae interactome, three times as large as expected. By applying the method to human cell-specific transcription factor (TF) regulatory networks22, we discover a strong positive linear correlation between the counts of widely studied triads and quadriads. We also notice that the embryonic stem cell’s TF regulatory network has the smallest number of occurrences relative to its network size for all the five motifs under study.

Figure 1: Network motifs found in biological networks.
figure 1

The feed-forward loop, bi-fan and biparallel are over-represented, whereas feedback loop is under-represented in gene regulatory networks and neuronal connectivity networks11.

Results

Estimating motif occurrences

In this study, we shall consider PPIs and gene regulatory networks. The former are undirected, whereas the latter are directed networks. Consider a directed or undirected network (V, E), where V is the set of nodes and E is the set of links. For simplicity, we assume that has n nodes and V={1,2,3,…,n}. Let obs(Vobs, Eobs) be an observed subnetwork of . Following (ref. 9), we model an observed subnetwork as the outcome of a uniform node sampling process in the following sense. Let Xi be independent and identically distributed Bernoulli random variables with the parameter p(0,1] for i=1,2,…,n. We use Xi=1 and Xi=0 to denote the events that node i is sampled and not sampled, respectively. Then Vobs is the set of nodes i with Xi=1, and Eobs is induced from E by Vobs. For clarity of presentation, we first introduce our method for the case when the observed subnetwork is free from experimental errors, and then generalize it to handle noisy observed subnetwork data.

Consider a motif . We use N and to denote the number of occurrences of in and obs, respectively. We assume that the number of nodes, n, is known, but only links in Gobs are known. We are interested in estimating N from the observed subnetwork obs. As obs is assumed to be free from experimental errors, we can obtain simply by enumeration. Let us define the following:

where m and nobs are the number of nodes in and obs, respectively.

Let A=[aij]1≤i,jn denote the adjacency matrix of , where aij=1 if there is a link from i to j, and aij=0 otherwise. Furthermore, for a subset J{1,2,…,n}, A[J] denotes the submatrix consisting of entries in the rows and columns indexed by J. We write N as a function of A and as a function of A and the random variables Xi. We also assume the following:

where f() is a function chosen to decide whether occurs among nodes i1,i2,…,im or not. For the motifs listed in Table 1, their corresponding functions f() are given in Supplementary Table S1.

Table 1 Bias-corrected estimators for 14 motifs.

From equations (1) and (3), we have

where nobs is a random variable such that

As the random variables Xi are independent and identically distributed, for any 1≤i1<i2<…<imn, we also have

Hence, by equation (2),

By conditioning on the event that X1=X2=···=Xm=1, we rewrite equation (4) as

where ZBinomial(nm,p), and hence

As

we have

by applying integration by parts and simplification. Therefore, we have obtained the following theorem.

Theorem 1: Let be a network of n nodes. Assume obs is a subnetwork of obtained by a uniform node sampling process that selects a node with probability p. For any motif of m nodes, the estimator defined in equation (1) satisfies equation (5). Therefore, is an asymptotically unbiased estimator for N in the sense that as n goes to infinity. Moreover, the convergence is exponentially fast in n.

When the estimator (1) is applied to estimate the number of links in an undirected network , the variance has the following closed-form expression:

where N1 and N2 are, respectively, the number of links and three-node paths in (Supplementary Methods). This leads to our next theorem.

Theorem 2: When is generated from one of the ER, preferential attachment, duplication or geometric models, as n goes to infinity.

Theorem 2 says that is consistent. For an arbitrary motif, it is much more complicated to derive the variance of the estimator (1). Nevertheless, our simulation shows that for all the motifs in Fig. 1, the variance of the estimator converges to zero as n goes to infinity and, hence, it is consistent (Fig. 2 and Supplementary Figs S1–S8). We wish to point out that the notions ‘asymptotically unbiased’ and ‘consistent’ are not used in the usual statistical sense where the population is fixed and the number of observations increases to infinity.

Figure 2: Plots of and for counting the occurrences of FFL.
figure 2

The random networks of n nodes and edge density ρ are generated from the preferential attachment model. Both and depend on n, ρ and the node sampling probability p. also depends on the link error rates r and r+. (a) changes with n and ρ when p=0.1. (b) changes with n and ρ when p=0.1, r=0.85 and r+=0.00001. (c) and change with p when n=5,000, ρ=0.1, r=0.85 and r+=0.00001. (d) changes with r+ and r when n=5,000, ρ=0.1 and p=0.1.

For realistic estimation, one has to take error rates into account, as detecting PPIs or GRIs is error prone to some degree. PPIs or gene regulatory networks have spurious interactions (that is, false positives) and missing interactions (that is, false negatives). We define the false-positive rate r+ to be the probability that a non-existing link is incorrectly reported, and the false-negative rate r to be the probability that a link is not observed. Using the independent random variables and to model spurious and missing interactions in the observed subnetwork obs, we can represent the effect of experimental errors on an ordered pair of nodes (i1,i2) as

In other words, for any two nodes i1,i2Vobs, a link (i1,i2) is observed in the subnetwork obs (that is, ) if (i) there is a link (i1,i2) in the real network (that is, a i 1 i 2 =1) and there is no false negative (that is, ) or (ii) the link (i1,i2) does not exist in the real network (that is, a i 1 i 2 =0) but a false positive occurs (that is, ).

To take error rates into account, we simply replace each entry ai1,i2 in the adjacency matrix A with to obtain a new matrix, , and then replace A with in equation (3). For any motif in Table 1, the expectation of the estimator in equation (1) can be expressed as (Supplementary Methods)

where s is the number of links that has and W is a function of n, r, r+, and N for all proper submotifs ′ of (Supplementary Table S2). Thus, to correct the bias caused by link errors, we derive from W by replacing N with for all submotifs of , and use the following formula to estimate N:

For the motifs listed in Fig. 1, the corresponding bias-corrected estimators are given in Table 1.

We examined the accuracy of the proposed estimators on networks generated by a random network model. As these estimators are asymptotically unbiased, we used the mean square error (MSE) of the ratios and , defined later in equation (9), to measure their accuracy (see Methods section). Figure 2 summarizes the simulation results for the FFL motif in random networks generated from the preferential attachment model19. (The results for other motif network model combinations are similar and can be found in Supplementary Figs S1–S8.) First, when the edge density ρ is fixed, the MSE of the estimators for FFL decreases and converges to zero as n increases (Fig. 2a,b). Second, the MSE decreases as the edge density increases, suggesting that the estimators are even more accurate when applied to less sparse networks. Third, the MSE of the estimators decreases as p increases (Fig. 2c). Finally, the MSE increases with r and r+ (Fig. 2d). Altogether, our simulation tests confirm that the proposed estimators are accurate for any underlying network.

Motif richness in the human interactome

The entire interactomes for eukaryotic model organisms such as S. cerevisiae, Caenorhabditis elegans, Homo sapiens and Arabidopsis thaliana are not fully known. We estimated the interactome size (that is, the number of interactions) and the number of triangles in the entire PPI network for S. cerevisiae, C. elegans, H. sapiens and A. thaliana, using the data sets CCSB-YI1 (ref. 23), CCSB-WI-2007 (ref. 24), CCSB-HI1 (refs 25, 26) and CCSB-AI1-Main27. These data sets were produced from yeast two-hybrid experiments and their quality parameters are summarized in Table 2 for convenience.

Table 2 The interactome size and the number of triangles in the PPI networks of four species in our study.

First, we re-estimated the size of four interactomes using the bias-corrected estimator (Table 1). To test all possible interactions between selected proteins, the sets of bait and prey proteins should be exchanged in the two rounds of interaction mating in a high-throughput yeast two-hybrid experiment28. However, this is only true for the C. elegans and H. sapiens data sets (CCSB-WI-2007 and CCSB-HI1, respectively). For the S. cerevisiae and A. thaliana data sets (CCSB-YI1 and CCSB-AI1-Main, respectively), the set of bait proteins are slightly different from the set of prey proteins. For these two cases, we applied our estimator to the subnetwork induced by the intersection of the bait and prey protein sets.

The following estimator was proposed by Stumpf et al.9 for the size of an interactome and was later used to estimate the size of the eukaryotic interactomes23,24,26,27:

where ‘completeness’ is the fraction of all possible pairwise protein combinations that have been tested. In our notation,

(No. of observed interactions)=,

Sensitivity=1−r,

Precision=1−rd,

Completeness=, where rd is the proportion of spurious links among detected links and is called the false discovery rate. (Note that rd was called the false-positive rate in ref. 9.) Thus, the estimator (8) becomes

For PPI data sets, r+ is about 10−4 and thus 1−r≈1−rr+. As rd is also small, our estimator handles errors differently but is quite close to the estimator (8). In particular, when the precision is 100% or, equivalently, when rd=r+=0, these two estimators are equal (Supplementary Note 2 and Supplementary Fig. S9). Indeed, our estimates for interactome size agree well with those obtained from equation (8) (Table 2). Such an agreement demonstrates again that our estimators for counting motifs are accurate.

We proceed further to estimate the number of triangles in each of the interactomes using the corresponding bias-corrected estimator in Table 1. For each interactome, we estimated the number of triangles from the observed subnetwork data directly and from sampling the observed subnetwork repeatedly. The two estimates agree well (Table 2).

Our estimation shows that although the size of the A. thaliana interactome is about 1.8 times that of the human interactome, it contains fewer triangles than the human interactome does. The triangle density of the human and C. elegans interactomes are similar and are 1.7 times that of the A. thaliana and 5 times that of S. cerevisiae. The size of the human interactome is only 15 times that of the S. cerevisiae interactome, yet the number of triangles in the former is about 194 times that in the latter, 3 times as large as expected.

Correlation between motif counts in TF regulatory networks

Recently, the TF regulatory networks of 41 human cell and tissue types were obtained from genome-wide in vivo DNasel footprints map22. In these networks, the nodes are 475 TFs and the regulation of each TF by another is represented by network-directed links. Motif count analysis showed that the distribution of the motif count is unimodal, with the peak corresponding to the mean value for each motif (diagonal panels in Fig. 3). Surprisingly, there is a very strong linear correlation between the counts in the TF regulatory networks of different cell types, even for the triad and quadriad motifs that are topologically very different (Fig. 3).

Figure 3: Correlation of motif counts in 41 human cell-specific TF regulatory networks.
figure 3

The upper triangular panels are scatter plots of the counts of the 5 motifs in the TF regulatory networks of one embryonic stem cell (black), 7 blood cell types (red), 2 cancer cell types (green) and 31 other cell and tissues types (grey)22. Here the x and y axes represent the estimated counts of the two corresponding motifs. Each diagonal panel shows the distribution of these motifs’ occurrences, in which the x and y axes represent the estimated motif count and the number of TF regulatory networks, respectively. The correlation coefficients of the motifs’ occurrences are given in the lower triangular panels.

Given that human has about 2,886 TF proteins29, we further estimated the number of occurrences of the 5 motifs for each of the 7 functionally related classes of cells (Fig. 3 and Table 3). This was achieved by simply setting the false-positive and -negative rates to 0, as they are currently unknown. The TF regulatory networks of blood cells have diverse motif counts. Specifically, for all triad and quadriad motifs, the promyelocytic leukemia cell TF regulatory network has the largest number of occurrences, whereas the erythoid cell TF regulatory network has the smallest number of occurrences. The embryonic stem cell TF regulatory network has the smallest number of occurrences relative to its network size for all the motifs.

Table 3 The estimated network size and count of triad and quadriad motifs in seven cell classes.

In a random network, the ratio of the FFL count to the feedback loop count is 3:1. However, in the human cell-specific TF regulatory networks, the ratio is about 10:1, suggesting FFL is significantly enriched in these networks. Table 3 also suggests that the bi-fan motif is relatively abundant in these networks, as the ratio of the bi-fan count to the biparallel count is roughly 1:2 in a random network.

Discussion

By taking spurious and missing link rates into account, we have developed a powerful method for estimating the number of motif occurrences in the entire network from noisy and incomplete data for the first time. It extends previous studies on interactome size estimation9,10,23,24,25,26,27 to motif count estimation in a directed or undirected network. Such a method is important because exact motif enumeration is possible only if the network is completely known, which is often not the case in biology. Our proposed method has been proven mathematically as being unbiased and accurate without any assumption at all regarding the topological structure of the underlying networks. Therefore, our proposed estimators can be applied to all the widely studied networks in social, biological and physical sciences.

Interactome size has been estimated from noisy subnetwork data by using equation (8), where the precision (which is 1−rd) and sensitivity of the data are taken into account23,24,26,27. This approach might yield an inaccurate estimate, as the false discovery rate is often calculated from gold-standard data sets30,31,32,33 and can be quite unreliable, as indicated in ref. 26, in which the false discovery rate for the data set CCSB-HI1 was adjusted from 87% to 93%, to 20.6%, after multiple cross-assay validation. By contrast, our proposed method uses false-positive and false-negative rates for motif count estimation. As the false-negative rate is equal to 1−sensitivity and the false-positive rate is only about 10−4, our method is more robust than estimations based on the false discovery rate.

Theorems 1 and 2 in the present paper show that motif counting via sampling and then scaling up in a huge network is not merely fast but can also give accurate estimate. Take the triangle motif, for instance. In our validation test, the equation (1)-based sampling achieved less than 1% deviation from the actual count by using no more than 50% of the computing time compared with the naive triangle counting method (Fig. 4 and Supplementary Note 3). As the obtained sampling approach takes positive and negative link-error rates into account, it is a good addition to the methodology for estimating motif count in networks34,35.

Figure 4: Computational time efficiency of the proposed sampling approach.
figure 4

The simulation test was conducted on a network of 5,000 nodes with the edge density 0.1. The computational time efficiency of the sampling approach is defined as the ratio of the time taken by our approach to the time used by the direct counting approach, and MSE is defined in equation (9). (a) Computational time efficiency versus the MSE for four values of the node sampling probability p. When p=0.1, 0.2, 0.3 and 0.4, the number of repetitions was set to 125k, 25k, 5k and 2k (1≤k≤8), respectively. (b) When the node sampling probability p is fixed, the computational time efficiency increases as a linear function of the number of repetitions. (c) When the number of repetitions ( rep) is fixed, the computational time efficiency increases as a cubic function of p. (d) MSE decreases as the number of repetitions increases. (e) MSE decreases as p increases.

By applying our estimation method to PPI subnetwork data for four eukaryotic organisms, we found that the numbers of triangles in a eukaryotic interactome differ considerably. For example, the triangle motif is exceptionally enriched in the human interactome. As noted in ref. 9, we have to keep in mind that the estimates in Table 2 are based on PPIs that are detectable, given current experimental methods. However, our estimators will remain correct for any interaction data available in the future.

We also discovered that there is a very strong positive linear correlation between triad and quadriad motif occurrences in human cell-specific TF regulatory networks, and that the TF regulatory network of embryonic stem cells has the smallest number of occurrences relative to its network size for each of the common triad and quadriad motifs. Hence, our study reveals a surprising feature of the TF regulatory network of embryonic stem cells.

Finally, we remark that the proposed estimators for motif counting are derived using the assumption that the subnetwork data is the outcome of a uniform node sampling process. In practice, however, biologists may select proteins for study according to their biological importance. The accuracy of our proposed method was examined for a degree-bias and two other non-uniform node sampling schemes (Supplementary Note 4 and Supplementary Figs S10–S12). In the degree-bias sampling process, a network node is sampled independently with a probability that is proportional to its degree in the underlying network. By the nature of this sampling process, it leads to overestimation of motif count when our proposed estimator is used. Our simulation tests indicate that its effect on the estimation of motif count depends on the scale-free structure of the underlying network and the proportion of the sampled nodes. In particular, when more than 60% of nodes in a network are sampled, the estimate is no more than five times the actual count. Hence, the triangle counts in the four eukaryotic interactomes are likely less than the estimates listed in Table 2 by a small constant factor. How to correct the overestimation caused by a degree-bias node sampling is challenging and worthy to study in future.

Methods

Interaction data

Human, yeast, worm and A. thaliana PPI data sets were downloaded from the Center for Cancer Systems Biology (CCSB) ( http://ccsb.dfci.harvard.edu): CCSB-YI1 (ref. 23), CCSB-WI-2007 (ref. 24), CCSB-HI1 (refs 25, 26 and CCSB-AI1-Main27. TF regulatory interaction data sets were downloaded from the Supplementary Information of ref. 22 in the Cell journal website.

Simulation validation for motif estimators

We considered four widely used random graph models: ER18, preferential attachment19, duplication20 and geometric models21 (Supplementary Note 1). Using each model, we generated 200 random networks by using different combinations of node number n{500,1,000,1,500,…,10,000} and edge density ρ{0.01,0.02,…,0.1}. Each generated network was taken as the whole network , from which 100 subnetworks were sampled using the node sampling probability p{0.05,0.1,0.15,…,0.5}. For each motif appearing in Fig. 1, we first computed (given in equation (1)) from the motif count in each sampled subnetwork. This was used as an estimate of the number of occurrences of the motif in the error-free case, N. Spurious and missing interactions were then planted in the sampled subnetworks with the chosen error rates r+ and r. The bias-corrected estimator (given in Table 1) for N was then recalculated. We used the MSE of the ratios and to measure the consistency (and hence accuracy) of and , respectively.

For the estimator Y of a parameter θ, the MSE of Y in estimating θ is defined as

This expression can be used to measure the MSE made in the estimation. In our validation test, we sampled 100 subnetworks from a network to evaluate the consistency of the estimator of a motif . As approaches to 1 when n is large (Theorem 1), the was approximately computed as

where is the estimate calculated from the ith subnetwork using , 1≤i≤100. Computing is similar.

Additional information

How to cite this article: Tran, N. H. et al. Counting motifs in the human interactome. Nat. Commun. 4:2241 doi: 10.1038/ncomms3241 (2013).