Email updates

Keep up to date with the latest news and content from BMC Bioinformatics and BioMed Central.

Open Access Research article

The effect of prior assumptions over the weights in BayesPI with application to study protein-DNA interactions from ChIP-based high-throughput data

Junbai Wang

Author Affiliations

Department of Pathology, The Norwegian Radium Hospital, Oslo University Hospital, Montebello 0310 Oslo, Norway

BMC Bioinformatics 2010, 11:412  doi:10.1186/1471-2105-11-412


The electronic version of this article is the complete one and can be found online at: http://www.biomedcentral.com/1471-2105/11/412


Received:5 December 2009
Accepted:4 August 2010
Published:4 August 2010

© 2010 Wang; licensee BioMed Central Ltd.

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

Abstract

Background

To further understand the implementation of hyperparameters re-estimation technique in Bayesian hierarchical model, we added two more prior assumptions over the weight in BayesPI, namely Laplace prior and Cauchy prior, by using the evidence approximation method. In addition, we divided hyperparameter (regularization constants α of the model) into multiple distinct classes based on either the structure of the neural networks or the property of the weights.

Results

The newly implemented BayesPI was tested on both synthetic and real ChIP-based high-throughput datasets to identify the corresponding protein binding energy matrices. The results obtained were encouraging: 1) there was a minor effect on the quality of predictions when prior assumptions over the weights were altered (e.g. the prior probability distributions to the weights and the number of classes to the hyperparameters) in BayesPI; 2) however, there was a significant impact on the computational speed when tuning the weight prior in the model: for example, BayesPI with a Laplace weight prior achieved the best performance with regard to both the computational speed and the prediction accuracy.

Conclusions

From this study, we learned that it is absolutely necessary to try different prior assumptions over the weights in Bayesian hierarchical model to design an efficient learning algorithm, though the quality of the final results may not be associated with such changes. In future, the evidence approximation method can be an alternative to Monte Carlo methods for computational implementation of Bayesian hierarchical model.

Background

In our previous study, we developed a Bayesian neural network type of model - BayesPI - to study protein-DNA interactions, using ChIP-based high-throughput data [1]. In BayesPI, the model error function (data error) is interpreted as defining a likelihood function, and the model regularizer (a penalty term to the error function) corresponds to a prior probability distribution over the weights, and such a framework is considered as a Bayesian hierarchical model. In addition to the common model parameters, BayesPI includes unknown hyperparameters (e.g. weight decay rate α and model noise level β) that need to be learned from the data. There are three possible implementations to control the model hyperparameters when using Bayesian neural networks to infer the model parameters: 1) using Markov chain Monte Carlo methods to simulate the probability distribution - MCMC [2]; 2) integrating out the model hyperparameters analytically before the application of Gaussian approximation of posterior distribution, and subsequently maximizing the true posterior over the model parameters - Maximum A Posterior Probability (MAP) [3]; and 3) integrating out the model parameters first, and then maximizing the resulting evidence over the hyperparameters - the Evidence Approximation [4]. Descriptions of the first two implementations can be found in the earlier papers [2,3], and in this study, we will focus only on the last approach (the evidence approximation) implemented in BayesPI.

Three motivations inspired us to pursue an investigation on the effect of prior assumptions over the weights (the evidence approximation) in Bayesian neural networks to study protein-DNA interactions from ChIP-based high-throughput data: 1) With regard to others' concern, before BayesPI paper was published, we received some criticisms about the treatment of hyperparameters in Bayesian neural networks. For example, do alternative definitions of hyperparameters according to the model parameters (e.g. divide the hyperparameters α into several classes based on either the structure of neural networks or the property of the model parameters) strongly influence the model inference? 2) With regard to our own interest, how significant will a different assignment of prior distribution (e.g. Gaussian prior, Laplace prior or Cauchy prior) to weights affect the outcome of Bayesian neural networks (e.g. prediction accuracy and computational time cost)? 3) With respect to a general survey of the application of Bayesian inferences in ChIP-based experiments, we searched PubMed using the keywords "Bayesian, chip" or "Bayesian, ChIP-chip," and then downloaded the search results that had been recorded before May 28, 2010. From this search, we obtained 33 papers that contained the above-mentioned keywords. Subsequently, we carried out a literature study of these 33 papers. To our surprise, only 14 of the 33 papers had applied Bayesian methods on issues related to motif discovery (e.g. DNA binding site identification) by using ChIP-based high-throughput data, and the remaining 19 papers had applied Bayesian methods in data integration, clustering and network reconstructions, etc. A detailed examination of the 14 papers relevant to protein-DNA interaction study reveal that BayesPI applied used evidence approximation to solve the posterior distribution in Bayesian inference, while the remaining 12 papers utilized the sampling methods (e.g. MCMC and Gibbs sampling) to simulate the posterior distribution of the Bayesian models (one paper cannot be determined because of lack of method description; detailed information of the 33 papers is available in [Additional file 1: Supplemental Data]). Though the present implementation (the evidence approximation) in BayesPI for handling hyperparameters has been rarely applied earlier, there are clear advantages of using it to solve the data mining problems [5]. Thus, by being motivated by the last finding along with the earlier two inspirations, we decided to carry out a follow-up study on the effect of prior assumption over the weights in BayesPI. Our study may pave the way for the future development of evidence approximation in Bayesian inferences as well as for the further application of the Bayesian methods in bioinformatics research.

Additional file 1. Supplementary information to the paper. Here we provide detailed description of derivation of hyperparameters update functions for three different priors (e.g. Gaussian, Cauchy, and Laplace), the implementation of R-propagation algorithm, and the full information of 33 papers that were obtained from PubMed on May 28th, 2010 by searching the keywords (e.g. Chip, Bayesian).

Format: PDF Size: 205KB Download file

This file can be viewed with: Adobe Acrobat ReaderOpen Data

Results

Performance comparisons from simulated ChIP-chip datasets

To evaluate the performance of BayesPI under (15) different prior assumptions over the weights, we first tried each of them on the same set of simulated ChIP-chip experiments (16 synthetic ChIP-chip datasets), where the synthetic DNA sequences and ChIP-chip log ratios were generated using MATLAB Bay Net toolbox and MATLAB build-in random number generator, respectively [1]. The accuracy of the predictions was accessed from motif similarity scores by comparing the predicted motif energy matrix with the corresponding SGD consensus sequences [6]. In Figure 1, we have illustrated the outcomes of the above-mentioned simulations in 15 different prior assumptions, where both the CPU hours required for the calculation and distribution of the motif similarity scores among all the tests are shown. The results are very interesting because no significant changes of the prediction quality could be observed across the tests after changing either the prior probability assumption or the number of subclasses for α hyperparameters, except for the tests with Gaussian approximation (e.g. comparing the distribution of motif similarity scores using Wilcoxon rank-sum test: Gaussian vs. Cauchy, p < 0.03; Laplace vs. Cauchy, p < 0.04). However, the CPU hours used for various tests differed significantly. Particularly, the selection of prior probability assumption over the weights in Bayesian neural networks had a much stronger impact on the cost of CPU hours than that by tuning the number of subclasses of hyperparameters. For examples, by using a Laplace assumption over the weights in BayesPI, the CPU hours used for the calculations were shortened by almost two to five times when compared with the assumptions of the weights by the other two probability distributions (e.g. comparing the distribution of used CPU hours by Wilcoxon rank-sum test: Gaussian vs. Laplace, p < 1.4e-9; Cauchy vs. Laplace, p < 5.8e-8). It is worth noting that the assignment of Laplace prior probability to weights utilizes the least CPU hours for the calculation, but provides the best prediction accuracy. Thus, we can expect Laplace approximation over the weights to provide the most efficient computation for BayesPI if real ChIP-chip datasets are used.

thumbnailFigure 1. Performance comparisons from simulated ChIP-chip datasets. The upper panel of the figure shows the box plots of the distribution of motif similarity scores across 15 different weight prior configurations. The lower panel of the figures shows the box plots of the distribution of CPU hours used by 15 prior assumptions over the weights. Here, the red line represents Gaussian prior assumption to the weights (e.g. G1, G2, G3, G4, and G5), the blue line represents Laplace prior approximation over the weights (e.g. L1, L2, L3, L4, and L5), and the black line indicates Cauchy priors to the weights (C1, C2, C3, C4, and C5), in which the numerical values 1, 2, 3, 4, and 5 represent regularization constant α with one, two, three, four, and greater than five classes, respectively.

Performance comparisons from real ChIP-chip datasets

After testing the effect of prior assumptions over the weights in BayesPI using the synthetic ChIP-chip datasets, we tried it on the real protein-DNA interaction datasets from ChIP-chip experiments. We collected ChIP-chip datasets for nine yeast TFs in rich medium condition [7], among which four (SWI4, INO4, ACE2, and XBP1) had the same consensus sequences as the TFs in the synthetic datasets. In the earlier tests, we neither found a significant variation in the prediction accuracy nor observed a strong perturbation of the computational time cost (Figure 1) through tuning the number of subclasses of α hyperparameters: hence, we decided to select only four subclasses for the hyperparameters in the rest of the studies. The results of these tests both with and without the inclusion of nucleosome information are presented in Figure 2 that shows that there is little difference in the prediction accuracies among the tests regarding the selection of prior probability assumptions and the inclusion of the nucleosome information. A comparison between the motif similarity scores provided by the three prior weight assumptions in BayesPI and those obtained by MatrixREDUCE is presented in Table 1. The results indicate that all poor predictions are caused by stress-induced transcription factors (e.g. ROX1, MSN2, and XBP1). Though BayesPI may provide some reasonable answers to TFs that are nonfunctional under certain growth conditions (e.g. Table 1, SKN7 and MSN2 in the YPD condition), its computational speed is much slower than that by the popular program MatrixREDUCE [8]. Nevertheless, the CPU hours used by BayesPI among the three prior weight assumptions differ significantly (e.g. comparing the distribution of used CPU hours without considering the nucleosome information by Wilcoxon rank-sum test: Gaussian vs. Laplace, p < 4.2e-5; Gaussian vs. Cauchy, p < 4.2e-5; Cauchy vs. Laplace, p < 2.9e-4). Furthermore, we found that the cost of the CPU hours for the computation was slightly reduced with regard to the nucleosome information. Taken together, it can be concluded that the computational efficiency of the Laplace prior assumption over the weights in the Bayesian neural networks clearly surpasses that of the other two weight priors, and that the Laplace prior may be suitable for the further improvement of BayesPI algorithm.

Table 1. Comparing motif similarity scores of nine yeast TFs from four different calculations.

thumbnailFigure 2. Performance comparisons from real ChIP-chip datasets. The upper panel of the figure shows the box plots of the distribution of motif similarity scores across six different weight prior configurations. The lower panel of the figure shows the box plots of the distribution of CPU hours used by six prior assumptions over the weights. Here, the red line represents the prior assumptions over the weights without inclusion of the nucleosome information, and the blue line indicates the prior assumptions over the weights with the inclusion of the nucleosome information. G4, L4, and C4 indicates Gaussian prior, Laplace prior, and Cauchy prior assumptions to the weights with four classes of regularization constants α, respectively.

Performance comparisons from human ChIP-Seq datasets

After the successful application of the earlier tests on ChIP-chip datasets, we tried the new BayesPI program on three human ChIP-Seq datasets [9] by applying three different prior assumptions (e.g. Gaussian, Lasso, and Cauchy) over the weights with predefined four groups of regularization constants α. Here, the inputs to BayesPI were pre-processed raw ChIP-Seq measurements, which are a set of putative protein binding sites (e.g. there are 5814, 26815, and 73957 putative TF binding sites for NRFS, CTCF, and STAT1, respectively.), and the corresponding tag densities obtained from SISSRs method [9]. The results of these tests are shown in Figure 3, which demonstrates that the Laplace prior requires much less CPU hours when compared with that required by the other two assumptions. For instance, to complete the same calculation, Laplace approximation needs only 50 percent to 25 percent of the CPU hours that is used by either Cauchy or Gaussian approximation. However, interestingly, the accuracy of the predictions does not differ significantly among various prior assumptions similar to the previous tests that employed the ChIP-chip datasets: tuning of the prior assumption over the weights does not seem to affect the quality of the predictions, but is rather observed to bring strong impact on the CPU requirement. Thus, a careful design of the weight priors in a Bayesian model may significantly reduce the computational cost for the calculation.

thumbnailFigure 3. Performance comparisons from human ChIP-Seq datasets. The upper panel of the figure shows the box plots of the distribution of motif similarity scores across three different weight prior configurations. The lower panel of the figure shows the box plots of the distribution of CPU hours used by three prior assumptions over the weights. The red line represents Gaussian prior assumption over the weights, the blue line indicates the Laplace prior assumption over the weights, and the black line represents Cauchy prior assumption to the weights. Here, there are four distinct weight classes in the regularization constants α.

Discussion

Nowadays, chromatin immunoprecipitation followed by massively paralleled sequencing (ChIP-Seq) is being used widely in various molecular biological researches such as investigating genome-wide protein-DNA interactions [7] and histone modification studies [10]. It is possible that the ChIP-Seq experiment may replace ChIP-chip technology completely [11] in future. That is because the ChIP-Seq experiment produces higher quality and higher resolution data than the ChIP-chip, which also avoids several pitfalls that accompany with the ChIP-chip technology: for example, array probe-specific behavior and dye bias [12]. In this work, we studied the effect of prior assumptions over the weight in BayesPI to predict the protein binding energy matrices from ChIP-based high-throughput datasets. The results on both synthetic and real experimental datasets were consistent: in general, the prior assumptions over the weights and the classification of regularization constants (e.g. hyperparameters α) into several classes did not strongly affect the final outcome of BayesPI (e.g. Figures 1, 2, and 3) if sufficient training datasets were provided; particularly, a change in the number of classes over the regularization constants had a much weaker impact on the requirement of computational resource than a change in the weight prior in BayesPI; nevertheless, the selection of prior approximation over the weights had the most significant influence on the CPU hours that were used for calculation (e.g. by using a Laplace prior, the computational time was reduced by more than 50 percent when compared with that utilized by the old BayesPI [1], a Gaussian prior.) Thus, the present study reveals the importance of defining a right weight prior to a Bayesian hierarchical model, which may dramatically speed up the calculation when the program is applied to a large dataset.

In addition to the above-mentioned findings that the computation efficiency of BayesPI is highly associated with prior assumptions over the weights, we also provided a detailed illustration of the hyperparameter re-estimation technique by using the evidence approximation method. We presume that the evidence method may become a popular approximate method for computational implementation of Bayesian hierarchical model (a deterministic algorithm), as well as become an alternative to Monte Carlo methods that are currently being widely used in bioinformatics research fields [13]. Particularly, the evidence method can overcome some of the inherent limitations of the sampling approaches, such as nonreproducible results, long burning period, and unknown stopping time.

Conclusions

The present study has clarified several doubts in the early implementation of BayesPI: 1) prediction accuracy of BayesPI is robust against dividing the hyperparameters (e.g. regularization constants α) into multiple distinct groups; 2) there is a minor effect on the quality of predictions by selecting alternative prior assumptions over the weights in BayesPI; 3) however, there is a strong impact on the computational requirement for calculation when a proper weight prior is chosen. Overall, we have derived the new re-estimation formulas for both Laplace prior and Cauchy prior over the weights in the Bayesian neural networks, and the new implements have been tested successfully in both synthetic and real ChIP-based high-throughput datasets.

Methods

Computational modeling of protein-DNA interactions in BayesPI

In this study, we have only focused on the effect of prior assumption over the parameters in Bayesian neural networks. The descriptions of the biophysical background behind BayesPI and the implementation of the Bayesian predicative model to estimate the protein binding parameters by combining ChIP-based datasets with DNA sequence information will not be repeated, because they are available in the previous paper [1]. First, we regularized the objective function

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M1','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M1">View MathML</a>

(1)

which can be used by the Bayesian neural networks [4] to determine the parameters (e.g. w, α, β). In the above-mentioned equation, ED, Ew, D, and ⟨Λ, η, Γ⟩ are the model error function (data error), the model regularizer (a penalty term to the error function), the input data, and the hypothesis model space (e.g. Λ is the protein binding probability and Γ is the regularization function), respectively; α and β are the two unknown hyperparameters (e.g. weight decay rate and model noise level) that must be determined from the input data; and w indicates the model parameters (e.g. weights in the Bayesian neural networks), which represents the inferred the protein binding energy matrix and the chemical potentials from ChIP-based high-throughput data [1].

Here, a Gaussian model error function ED is assumed throughout as

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M2','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M2">View MathML</a>

(2)

where ti is the measured ChIP-based data to gene i, and Yi is the predicted TF occupancy data for that gene, according to a predefined TF binding probability (e.g. either inclusion or exclusion of nucleosome binding information in the protein-binding probability [1]). For the model regularizer Ew, three types of weight prior assumptions were selected [3]: 1) Gaussian prior assumption over the weights,

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M3','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M3">View MathML</a>

(3)

in which Q is the number of parameters in the model, such as w; 2) Laplace prior distribution as the model regularization function,

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M4','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M4">View MathML</a>

(4)

3) Cauchy prior assumption over the model parameters w in BayesPI

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M5','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M5">View MathML</a>

(5)

Based on the above-mentioned three weight priors, we applied the evidence approximation method [4] to determine the corresponding re-estimation formulas for both α and β, which can be used by Bayesian neural networks to fit the model (e.g. to learn the model parameters w from the data).

Bayesian choice of α and β through the evidence approximation

Evidence approximation

Based on Bayes' theorem, a posterior distribution of the model parameters, can be given as

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M6','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M6">View MathML</a>

(6)

where M is a probability framework of the objective function described in equation (1) and ZM is a normalization factor [4]. By employing a Gaussian approximation of the posterior probability, we have

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M7','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M7">View MathML</a>

(7)

in which <a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M8','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M8">View MathML</a> and A is the Hessian of M (e.g. A = α∇∇Ew + β∇∇ED) evaluated at wMP. Here, we first assume that the most probable model parameters wMP are known (integrating out the model parameters), and then infer the hyperparameters through Bayes' rule

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M9','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M9">View MathML</a>

(8)

where we also assume equal priors P(α, β|Λ, η, Γ) to the alternative models and a constant term to the P(D|Λ, Γ, η). Thus

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M10','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M10">View MathML</a>

(9)

where P(D|α, β, Λ, η, Γ) is the evidence for the overall model,

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M11','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M11">View MathML</a>

(10)

including both the model architecture and the regularizing parameters [4], where Zw(α) and ZD(β) are the normalization factors given by Zw(α) = ∫ dwexp(-αEw) and ZD(β) = ∫ dDexp(-βED), respectively. By maximizing the log evidence of equation (10), we can determine the re-estimation formulas for hyperparameters α and β according to the weight assumptions Ew in BayesPI.

Gaussian prior

The log evidence for hyperparameters is

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M12','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M12">View MathML</a>

(11)

where a Gaussian prior, equation (3), is used for Ew and

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M13','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M13">View MathML</a>

(12)

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M14','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M14">View MathML</a>

(13)

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M15','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M15">View MathML</a>

(14)

After replacing ZM, Zw, ZD by equations (12), (13), and (14), respectively, equation (11) becomes

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M16','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M16">View MathML</a>

(15)

To determine the conditions that are satisfied at the maximum log evidence, we differentiated equation (15) with respect to α and β, and then set the derivative to zero from which we can obtain the re-estimation formulas for both α and β as follows

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M17','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M17">View MathML</a>

(16)

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M18','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M18">View MathML</a>

(17)

Let

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M19','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M19">View MathML</a>

(18)

The equations (16) and (17) can be rewritten as

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M20','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M20">View MathML</a>

(19)

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M21','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M21">View MathML</a>

(20)

where γ are eigenvectors of A. For example, equation (18) can be transformed to

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M22','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M22">View MathML</a>

(21)

Where λq are the eigenvalues of the β∇∇ED and the negative λq are omitted from the sum. Thus, for a Gaussian weight prior, we used equation (21) to update the hyperparameters α and β through equations (19) and (20).

Laplace prior

By using equation (4) as a prior assumption over the weights, the Hessian of M becomes

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M23','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M23">View MathML</a>

(22)

The log evidence for the hyperparameters is

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M24','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M24">View MathML</a>

(23)

where

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M25','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M25">View MathML</a>

(24)

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M26','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M26">View MathML</a>

(25)

After inserting equations (24) and (25) into the log evidence, we get

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M27','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M27">View MathML</a>

(26)

To maximize the log evidence over the hyperparameters, we differentiated equation (26) with respect to α and β, and the derivative was set to zero, then we obtained the following re-estimation formulas

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M28','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M28">View MathML</a>

(27)

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M29','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M29">View MathML</a>

(28)

for the hyperparameters, when assuming a Laplace prior over the weights.

Cauchy prior

Here, we used equation (5) as the prior assumption over the weights, and the log evidence for the model can be given as

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M30','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M30">View MathML</a>

(29)

where

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M31','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M31">View MathML</a>

(30)

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M32','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M32">View MathML</a>

(31)

After inserting equations (30) and (31) into equation (29), the log evidence becomes

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M33','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M33">View MathML</a>

(32)

where we assume that α is known for Ew, ∇Ew, and ∇∇Ew. To determine the conditions suitable for the maximum log evidence, equation (32) was differentiated with respect to hyperparameters, and the derivative was set to zero. Then the re-estimation formulas for α and β are

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M34','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M34">View MathML</a>

(33)

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M35','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M35">View MathML</a>

(34)

where

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M36','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M36">View MathML</a>

(35)

where λq are the eigenvalues of data error β∇∇ED. Thus, for a Cauchy prior, equation (35) can be used to compute hyperparameters α and β through equations (33) and (34). Detailed derivations of hyperparameters update functions for above three priors are available in [Additional file 1: Supplemental Methods].

Application of R-propagation algorithm

In equation (35), there is a second derivative ∇∇Ew, which can be estimated from an efficient R-propagation algorithm of Pearlmutter [14]. The algorithm applies a differential operator R() on the Back-propagation neural networks. For example, let us assume that equation (5) is used by the model regularizer Ew. Then

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M37','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M37">View MathML</a>

(36)

where α2 is the node of the output layer

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M38','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M38">View MathML</a>

(37)

in which Hq is the node of the hidden layer

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M39','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M39">View MathML</a>

(38)

and α1q is the node of the input layer

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M40','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M40">View MathML</a>

(39)

After completing the above-mentioned forward computation of the neural networks, a backward pass can be subsequently obtained as

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M41','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M41">View MathML</a>

(40)

and R-forward computation can be carried out as follows

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M42','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M42">View MathML</a>

(41)

Furthermore, the R-backward computation can be carried out as follows

<a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M43','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M43">View MathML</a>

(42)

By following the above-mentioned R-back-propagation procedures, <a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M44','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M44">View MathML</a> can be estimated, which is equivalent to computing the second derivative ∇∇Ew [14]. Detailed description of application of R-propagation algorithm is available in [Additional file 1: Supplemental Methods]. The source code of BayesPI2 is public available http://folk.uio.no/junbaiw/bayesPI2 webcite.

Multiple regularization constants α

For simplicity, we assumed that there is only one class of weights in BayesPI [1]. For example, the weights are modeled as coming from a single Gaussian prior (e.g. equation (3)). However, in a real study, weights may fall into multiple distinct groups [4]. Therefore, it is desirable to divide the weights into several classes c, with independent regularization constants αc. In the new version of BayesPI, there are five types of assignment of weight decay rate α to each of the three weight priors (e.g. Gaussian, Laplace, and Cauchy). The term αEw in equation (1) is replaced by <a onClick="popup('http://www.biomedcentral.com/1471-2105/11/412/mathml/M45','MathML',630,470);return false;" target="_blank" href="http://www.biomedcentral.com/1471-2105/11/412/mathml/M45">View MathML</a>, in which c is the number of classes to the regularization constants α: 1) if c equals 1, then all the weights have the same regularization constant α; 2) if c equals 2, then we can divide the weights into two groups, namely the weights in the hidden layer and the weights in the output layer; 3) if c equals 3, then it suggests that there are two distinct weight classes in the hidden layer (e.g. weights from the motif energy matrix and weight from the chemical potential), but only a single weight class in the output layer [1]); 4) if c equals 4, then it suggests that there are two independent weight classes in both the hidden layer and output layer; 5) if c is greater than 5, then it suggests that each binding position of the motif energy matrix has its own regularization constant αc as well as the chemical potential, and that the two weights in the output layer have their own regularization constants, respectively (e.g. if TF motif length equals 8, then the regularization constant α has 11 classes).

Motif similarity score and Microarray datasets

To access the quality of the predicted motif binding sites, we used a published method (motif similarity score [15]) to estimate the similarity between the predicted motif energy matrices and the corresponding consensus sequences from the SGD database [16]. Detailed description of these calculations can be found in the previous publication [1]. Synthetic ChIP-chip datasets and real ChIP-chip experiments for nine yeast transcription factors were adopted from the earlier works [1,7]. ChIP-Seq datasets for three human TFs (STAT1, NRSF, and CTCF) were obtained from Jothi et al. [9]. More information about the preprocessing of both ChIP-chip and ChIP-Seq datasets are available in [1].

Competing interests

The author declares that they have no competing interests.

Authors' contributions

JW conceived and designed the study, implemented program, performed data analysis and drafted manuscript.

Acknowledgements

Junbai Wang is supported by the Norwegian Cancer Society, the cluster facilities of the University of Oslo and the NOTUR project.

References

  1. Wang J: BayesPI - a new model to study protein-DNA interactions: a case study of condition-specific protein binding parameters for Yeast transcription factors.

    BMC bioinformatics 2009, 10:345. PubMed Abstract | BioMed Central Full Text | PubMed Central Full Text OpenURL

  2. Neal RM: Bayesian Learning for Neural Networks. PhD thesis. University of Toronto; 1994. OpenURL

  3. Williams PM: Bayesian Regularization and Pruning Using a Laplace Prior.

    Neural Computation 1995, 7(1):117-143. Publisher Full Text OpenURL

  4. Mackay D: Bayesian Methods for Adaptive Models. PhD thesis. California Institute of Technology; 1991. OpenURL

  5. Mackay DJC: Comparison of Approximate Methods for Handling Hyperparameters.

    Neural Computation 1999, 11(5):1035-1068. Publisher Full Text OpenURL

  6. Chen CY, Tsai HK, Hsu CM, May Chen MJ, Hung HG, Huang GT, Li WH: Discovering gapped binding sites of yeast transcription factors.

    Proc Natl Acad Sci USA 2008, 105(7):2527-2532. PubMed Abstract | Publisher Full Text | PubMed Central Full Text OpenURL

  7. Harbison CT, Gordon DB, Lee TI, Rinaldi NJ, Macisaac KD, Danford TW, Hannett NM, Tagne JB, Reynolds DB, Yoo J, et al.: Transcriptional regulatory code of a eukaryotic genome.

    Nature 2004, 431(7004):99-104. PubMed Abstract | Publisher Full Text OpenURL

  8. Foat BC, Morozov AV, Bussemaker HJ: Statistical mechanical modeling of genome-wide transcription factor occupancy data by MatrixREDUCE.

    Bioinformatics 2006, 22(14):e141-149. PubMed Abstract | Publisher Full Text OpenURL

  9. Jothi R, Cuddapah S, Barski A, Cui K, Zhao K: Genome-wide identification of in vivo protein-DNA binding sites from ChIP-Seq data.

    Nucleic Acids Res 2008, 36(16):5221-5231. PubMed Abstract | Publisher Full Text | PubMed Central Full Text OpenURL

  10. Schones DE, Zhao K: Genome-wide approaches to studying chromatin modifications.

    Nature reviews 2008, 9(3):179-191. PubMed Abstract | Publisher Full Text OpenURL

  11. Buck MJ, Lieb JD: ChIP-chip: considerations for the design, analysis, and application of genome-wide chromatin immunoprecipitation experiments.

    Genomics 2004, 83(3):349-360. PubMed Abstract | Publisher Full Text OpenURL

  12. Qi Y, Rolfe A, MacIsaac KD, Gerber GK, Pokholok D, Zeitlinger J, Danford T, Dowell RD, Fraenkel E, Jaakkola TS, et al.: High-resolution computational models of genome binding events.

    Nature biotechnology 2006, 24(8):963-970. PubMed Abstract | Publisher Full Text OpenURL

  13. Wilkinson DJ: Bayesian methods in bioinformatics and computational systems biology.

    Briefings in bioinformatics 2007, 8(2):109-116. PubMed Abstract | Publisher Full Text OpenURL

  14. Pearlmutter BA: Fast exact multiplication by the Hessian.

    Neural Computation 1994., 6(1) Publisher Full Text OpenURL

  15. Tsai HK, Huang GT, Chou MY, Lu HH, Li WH: Method for identifying transcription factor binding sites in yeast.

    Bioinformatics 2006, 22(14):1675-1681. PubMed Abstract | Publisher Full Text OpenURL

  16. Cherry JM, Adler C, Ball C, Chervitz SA, Dwight SS, Hester ET, Jia Y, Juvik G, Roe T, Schroeder M, et al.: SGD: Saccharomyces Genome Database.

    Nucleic Acids Res 1998, 26(1):73-79. PubMed Abstract | Publisher Full Text | PubMed Central Full Text OpenURL

  17. Gorner W, Durchschlag E, Martinez-Pastor MT, Estruch F, Ammerer G, Hamilton B, Ruis H, Schuller C: Nuclear localization of the C2H2 zinc finger protein Msn2p is regulated by stress and protein kinase A activity.

    Genes Dev 1998, 12(4):586-597. PubMed Abstract | Publisher Full Text | PubMed Central Full Text OpenURL

  18. Lee J, Godon C, Lagniel G, Spector D, Garin J, Labarre J, Toledano MB: Yap1 and Skn7 control two specialized oxidative stress response regulons in yeast.

    J Biol Chem 1999, 274(23):16040-16046. PubMed Abstract | Publisher Full Text OpenURL

  19. Raitt DC, Johnson AL, Erkine AM, Makino K, Morgan B, Gross DS, Johnston LH: The Skn7 response regulator of Saccharomyces cerevisiae interacts with Hsf1 in vivo and is required for the induction of heat shock genes by oxidative stress.

    Mol Biol Cell 2000, 11(7):2335-2347. PubMed Abstract | PubMed Central Full Text OpenURL

  20. Deckert J, Perini R, Balasubramanian B, Zitomer RS: Multiple elements and auto-repression regulate Rox1, a repressor of hypoxic genes in Saccharomyces cerevisiae.

    Genetics 1995, 139(3):1149-1158. PubMed Abstract | PubMed Central Full Text OpenURL

  21. Mai B, Breeden L: Xbp1, a stress-induced transcriptional repressor of the Saccharomyces cerevisiae Swi4/Mbp1 family.

    Mol Cell Biol 1997, 17(11):6491-6501. PubMed Abstract | PubMed Central Full Text OpenURL