Abstract
A fundamental aspect of biological information processing is the ubiquity of sequence–function relationships—functions that map the sequence of DNA, RNA, or protein to a biochemically relevant activity. Most sequence–function relationships in biology are quantitative, but only recently have experimental techniques for effectively measuring these relationships been developed. The advent of such “massively parallel” experiments presents an exciting opportunity for the concepts and methods of statistical physics to inform the study of biological systems. After reviewing these recent experimental advances, we focus on the problem of how to infer parametric models of sequence–function relationships from the data produced by these experiments. Specifically, we retrace and extend recent theoretical work showing that inference based on mutual information, not the standard likelihoodbased approach, is often necessary for accurately learning the parameters of these models. Closely connected with this result is the emergence of “diffeomorphic modes”—directions in parameter space that are far less constrained by data than likelihoodbased inference would suggest. Analogous to Goldstone modes in physics, diffeomorphic modes arise from an arbitrarily broken symmetry of the inference problem. An analytically tractable model of a massively parallel experiment is then described, providing an explicit demonstration of these fundamental aspects of statistical inference. This paper concludes with an outlook on the theoretical and computational challenges currently facing studies of quantitative sequence–function relationships.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
A major longterm goal in biology is to understand how biological function is encoded within the sequences of DNA, RNA, and protein. The canonical success story in this effort is the genetic code: given an arbitrary sequence of messenger RNA, the genetic code allows us to predict with near certainty what peptide sequence will result. There are many other biological codes we would like to learn as well. How does the DNA sequence of a promoter or enhancer encode transcriptional regulatory programs? How does the sequence of premRNA govern which exons are kept and which are removed from the final spliced mRNA? How does the peptide sequence of an antibody govern how strongly it binds to target antigens?
A major difference between the genetic code and these other codes is that while the former is qualitative in nature, the latter are governed by sequence–function relationships that are inherently quantitative. Quantitative sequence–function relationships^{Footnote 1} describe any function that maps the sequence of a biological heteropolymer to a biologically relevant activity (Fig. 1a). Perhaps the simplest example of such a relationship is how the affinity of a transcription factor protein for its DNA binding site depends on the DNA sequence of that site (Fig. 1b). Such relationships are a key component of the more complicated relationship between the DNA sequence of a promoter or enhancer (which typically binds multiple proteins) and the resulting rate of mRNA transcription (Fig. 1c). In both of these cases, the activities of interest (affinity or transcription rate) can vary over orders of magnitude and yet still be finely tuned by adjusting the corresponding sequence (binding site or promoter/enhancer). Similarly, other sequence–function relationships, like the inclusion of exons during mRNA splicing or the affinity of a protein for its ligand, are fundamentally quantitative.
The study of quantitative sequence–function relationships presents an exciting opportunity for the concepts and methods of statistical physics to shed light on biological systems. There is a natural analogy between biological sequences and the microstates of physical systems, as well as between biological activities and physical Hamiltonians. Yet we currently lack answers to basic questions a statistical physicist might ask, such as “what is the density of states?” or “is a relationship convex or glassy?” The answers to such questions may well have important consequences for diverse fields including biochemistry, systems biology, immunology, and evolution.
Experimental methods for measuring sequence–function relationships have improved dramatically in recent years. In the mid 2000s, multiple “highthroughput” methods for measuring the DNA sequence specificity of transcription factors were developed; these methods include protein binding microarrays (PBMs) [2, 3], Escherichia coli onehybrid technology (E1H) [4], and microfluidic platforms [5]. The subsequent development and dissemination of ultrahighthroughput DNA sequencing technologies then led, starting in 2009, to the creation of a number of “massively parallel” experimental techniques for probing a wide range of sequence–function relationships (Table 1). These massively parallel assays can readily measure the functional activity of \(10^3\) to \(10^8\) sequences in a single experiment by coupling standard benchtop techniques to ultrahighthroughput DNA sequencing.
Massively parallel experiments are very unlike conventional experiments in physics: they are typically very noisy and rarely provide direct readouts of the quantities that one cares about. Moreover, the noise characteristics of these measurements are difficult to accurately model. Indeed, such noise generally exhibits substantial daytoday variability. Although standard inference methods require an explicit model of experimental noise, it is still possible to precisely learn quantitative sequence–function relationships from massively parallel data even when noise characteristics are unknown [27, 28].
The ability to fit parametric models to these data reflects subtle but important distinctions between two objective functions used for statistical inference: (i) likelihood, which requires a priori knowledge of the experimental noise function and (ii) mutual information [29], a quantity based on the concept of entropy, which does not require a noise function. In contrast to the conventional wisdom that more experimental measurements will improve the model inference task, the standard maximum likelihood approach will typically never learn the right model, even in the infinite data limit, if one uses an imperfect model of experimental noise. Model inference based on mutual information does not suffer from this ailment.
Mutualinformationbased inference is unable to pin down the values of model parameters along certain directions in parameter space known as “diffeomorphic modes” [28]. This inability is not a shortcoming of mutual information, but rather reflects a fundamental distinction between how diffeomorphic and nondiffeomorphic directions in parameter space are constrained by data. Analogous to the emergence of Goldstone modes in particle physics due to a specific yet arbitrary choice of phase, diffeomorphic modes arise from a somewhat arbitrary choice of the sequencedependent activity that one wishes to model. Likelihood, in contrast to mutual information, is oblivious to the distinction between diffeomorphic and nondiffeomorphic modes.
We begin this paper by briefly reviewing a variety of massively parallel assays for probing quantitative sequence–function relationships. We then turn to the problem of learning parametric models of these relationships from the data that these experiments generate. After reviewing recent work on this problem [28], we extend this work in three ways. First, we show that “diffeomorphic modes” of the parametric activity model that one wishes to learn are “dual” to certain transformations of the corresponding model of experimental noise (the “noise function”). This duality reveals a symmetry of the inference problem, thereby establishing a close analogy with Goldstone modes. Next we compute and compare the Hessians of likelihood and mutual information. This comparison suggests an additional analogy between this inference problem and concepts in fluid mechanics. Finally, we work through an analytically tractable model of a massively parallel experiment of protein–DNA binding. This example explicitly illustrates the differences between likelihood and mutualinformationbased approaches to inference, as well as the emergence of diffeomorphic modes.
It should be noted that the inference of receptive fields in sensory neuroscience is another area of biology in which mutual information has proved useful as an objective function, and that work in this area has also provided important insights into basic aspects of machine learning [30–34]. Indeed, the problem of learning quantitative sequence–function relationships in molecular biology is very similar to the problem of learning receptive fields in neuroscience [28]. The discussion of this problem in the neuroscience context, however, has largely avoided indepth analyses of how mutual information relates to likelihood, as well as of how diffeomorphic modes emerge.
2 Massively Parallel Experiments Probing Sequence–Function Relationships
All of the massively parallel experiments in Table 1 share a common structure (Fig. 2a). The first step in each experiment is to generate a large set of (roughly \(10^3\) to \(10^8\)) different sequences to measure. This set of sequences is called the “library.” Multiple different types of libraries can be used depending on the application. One then performs an experiment that takes this library as input, and as output provides a set of one or more “bins” of sequences. Each output bin contains sequences selected from the library with a weight that depends on the measured activity of that sequence. Finally, a sample of sequences from each of the output bins, as well as from the input library, are determined using ultrahighthroughput DNA sequencing. The resulting data thus consists of a long list of (typically nonunique) DNA sequences, each assigned to a corresponding bin (Fig. 2b). It is from these data that we wish to learn quantitative models of sequence–function relationships.
Some of the earliest massively parallel experiments were designed to measure the specificity of purified transcription factors for their DNA binding sites [6–10] (Fig. 2c). The library used in such studies consists of a fixedlength region of random DNA flanked by constant sequences used for PCR amplification. This library is mixed with the transcription factor of interest, after which protein–bound DNA is separated from unbound DNA, e.g., by running the protein–DNA mixture on a gel. Protein–bound DNA is then sequenced, along with the input library.
Using a library of random DNA to assay protein–DNA binding has the advantage that the same library can be used to study each protein. This is particularly useful when performing assays on many different proteins at once (e.g., [8, 35]). On the other hand, only a very small fraction of library sequences will be specifically bound by the protein of interest. Moreover, because proteins typically bind DNA in a nonspecific manner, such experiments are often performed serially in order to achieve substantial enrichment.^{Footnote 2}
The first massively parallel experiment to probe how multiprotein–DNA complexes regulate transcription in living cells was SortSeq [12] (Fig. 2d). The sequence library used in this experiment was generated by introducing randomly scattered mutations into a “wild type” sequence of interest, specifically, the 75 bp region of the promoter of the lac gene in E. coli depicted in Fig. 3a. A few million of these mutant promoters were cloned upstream of the green fluorescent protein (GFP) gene. Cells carrying these expression constructs were grown under conditions favorable to promoter activity and were then sorted into a small number of bins according to each cell’s measured fluorescence. This partitioning of cells was accomplished using fluorescenceactivated cell sorting (FACS) [41], a method that can readily sort \({\sim }10^4\) cells per second. The mutant promoters within each sorted bin as well as within the input library were then sequenced, yielding measurements for \({\sim }2 \times 10^5\) variant promoter sequences. We note that advances in DNA sequencing have since made it possible to accumulate much more data, and it is no longer difficult to measure the activities of \({\sim }10^7\) different sequences in this manner.
Massively parallel experiments using mutagenized sequences provide data about sequence–function relationships within a localized region of sequence space centered on the wild type sequence of interest. Measuring these local relationships can provide a wealth of information about the functional mechanisms of the wild type sequence. For instance, the SortSeq data of [12] allowed the inference of an explicit biophysical model for how CRP and RNAP work together to regulate transcription at the lac promoter (Fig. 3b). In particular, the authors used their data to learn quantitative models for the in vivo sequence specificity of both CRP and RNAP. Model fitting also enabled measurement of the protein–protein interaction by which CRP is able to recruit RNAP and upregulate transcription.
Mutagenized sequences have also been used extensively for “deep mutational scanning” experiments on proteins. In this context, selection experiments on mutagenized proteins allow one to identify protein domains critical for folding and function. A variety of deep mutational scanning experiments are described in [42].
3 Inference Using likelihood
The inference of quantitative sequence–function relationships from massively parallel experiments can be phrased as follows. Data consists of a large number of sequences \(\left\{ S_n \right\} _{n=1}^N\), each sequence S having a corresponding measurement M. Due to experimental noise, repeated measurements of the same sequence S can yield different values for M. Our experiment therefore has the following probabilistic form:
If we assume that the measurements for each sequence are independent, and if we have an explicit parametric form for p(MS), then we can learn the values of the parameters by maximizing the perdatum log likelihood,
In what follows we will refer to the quantity L simply as the “likelihood.”
In regression problems such as this, one introduces an additional layer of structure. Specifically, we assume the measurement M of each sequence S is a noisy readout of some underlying activity R that is a deterministic function of that sequence. We call the function relating R to S the “activity model” and denote it using \(\theta (S)\). This activity model is ultimately what we want to understand. The specific way the activity R is read out by measurements M is then specified by a conditional probability distribution, \(\pi (MR)\), which we call the “noise function.”^{Footnote 3} Our experiment is thus represented by the Markov chain
The corresponding likelihood is
The model we adopt for our experiment therefore has two components: \(\theta \), which describes the sequence–function relationship of interest, and \(\pi \), which we do not really care about.
Standard statistical regression requires that the noise function \(\pi \) be specified upfront. \(\pi \) can be learned either by performing separate calibration experiments, or by assuming a functional form based on an educated guess. This can be problematic, however. Consider inference in the large data limit, \(N \rightarrow \infty \), which is illustrated in Fig. 4. Likelihood is determined by both the model \(\theta \) and the noise function \(\pi \) (Fig. 4a). If we know the correct noise function \(\pi ^{*}\) exactly, then maximizing \(L(\theta ,\pi ^{*})\) over \(\theta \) is guaranteed to recover the correct model \(\theta ^{*}\). However, if we assume an incorrect noise function \(\pi '\), maximizing likelihood will typically recover an incorrect model \(\theta '\) (Fig. 4b).
4 Inference Using Mutual Information
Information theory provides an alternative inference approach. Suppose we hypothesize a specific model \(\theta \), which gives predictions R. Denote the true model \(\theta ^{*}\) and the corresponding true activity \(R^{*}\). The dependence between S, M, \(R^{*}\), and R will then form a Markov chain,
From the simple fact that M depends on R only through the value of \(R^{*}\), any dependence measure \(\mathcal {D}\) that satisfies the data processing inequality (DPI) [29] must satisfy
Therefore, in the set of possible models \(\theta \), the true model is guaranteed to globally maximize the objective function \(\mathcal {D}(\theta ) \equiv \mathcal {D}[R;M]\).
One particularly relevant dependence measure that satisfies DPI is mutual information, a quantity that plays a fundamental role in information theory [29].^{Footnote 4} For the massively parallel experiments such as those in Fig. 2, R is continuous and M is discrete. In these cases, mutual information is given by
where p(M, R) is the joint distribution of activity predictions and measurements resulting from the model \(\theta \). If one is able to estimate p(M, R) from a finite sample of data, mutual information can be used as an objective function for determining \(\theta \) without assuming any noise function \(\pi \).
It should be noted that there are multiple dependence measures \(\mathcal {D}\) that satisfy DPI. One might wonder whether maximizing multiple different dependence measures would improve on the optimization of mutual information alone. The answer is not so simple. In [28] it was shown that if the correct model \(\theta ^{*}\) is within the space of models under consideration, then, in the large data limit, maximizing mutual information is equivalent to simultaneously maximizing every dependence measure that satisfies DPI. On the other hand, one rarely has any assurance that the correct model \(\theta ^{*}\) is within the space of parameterized models one is considering. In this case, considering different DPIsatisfying measures might provide a test for whether \(\theta ^{*}\) is noticeably outside the space of parameterized models. To our knowledge, this potential approach to the model selection problem has yet to be demonstrated.
5 Relationship Between Likelihood and Mutual Information
A third inference approach is to admit that we do not know the noise function \(\pi \) a priori, and to fit both \(\theta \) and \(\pi \) simultaneously by maximizing \(L(\theta , \pi )\) over this pair. It is easy to see why this makes sense: the division of the inference problem into first measuring \(\pi \), then learning \(\theta \) using that inferred \(\pi \), is somewhat artificial. The process that maps S to M is determined by both \(\theta \) and \(\pi \) and thus, from a probabilistic point of view, it makes sense to maximize likelihood over both of these quantities simultaneously.
We now show that, in the large N limit, maximizing likelihood over both \(\theta \) and \(\pi \) is equivalent to maximizing the mutual information between model predictions and measurements. Here we follow the argument given in [28]. In the large N limit, likelihood can be written
where
is the Kullback–Leibler divergence between the assumed noise function \(\pi \) and the observed noise function p(M  R), and \(H[M] =  \sum _M p(M) \log p(M)\) is the entropy of the measurements, which does not depend on \(\theta \). To maximize \(L(\theta , \pi )\) it therefore suffices to maximize \(I(\theta )\) over \(\theta \) alone, then to set the noise function \(\pi (MR)\) equal to the empirical noise function p(MR), which causes \(D(\theta ,\pi )\) to vanish.
Thus, when we are uncertain about the noise function \(\pi \), we need not despair. We can, if we like, simply learn \(\pi \) at the same time that we learn \(\theta \). We need not explicitly model \(\pi \) in order to do this; it suffices instead to maximize the mutual information \(I(\theta )\) over \(\theta \) alone.
The connection between mutual information and likelihood can further be seen in a quantity called the “noiseaveraged” likelihood. This quantity was first described for the analysis of microarray data [27]; see also [28]. The central idea is to put an explicit prior on the space of possible noise functions, then compute likelihood after marginalizing over these noise functions. Explicitly, the perdatum log noiseaveraged likelihood \(L_\mathrm{na}(\theta )\) is related to \(L(\theta ,\pi )\) via
We will refer to \(L_\mathrm{na}\) simply as “noiseaveraged likelihood” in what follows.
Under fairly general conditions, one finds that noiseaveraged likelihood is related to mutual information via
Here, the effect of the noise function prior \(p(\pi )\) is absorbed entirely by the term \(\Delta (\theta )\). Under weak assumptions, \(\Delta (\theta )\) vanishes in the \(N \rightarrow \infty \) limit and thus \(p(\pi )\) becomes irrelevant for the inference problem [27, 28].
6 Diffeomorphic Modes
Mutual information has a mathematical property that is important to account for when using it as an objective function: the mutual information between any two variables is unchanged by an invertible transformation of either variable. So if a change in model parameters, \(\theta \rightarrow \theta '\), results in changes in model predictions \(R \rightarrow R'\) that preserves the rank order of these predictions, then
and \(\theta \) and \(\theta '\) are judged to be equally valid.
By using mutual information as an objective function, we are therefore unable to constrain any parameters of \(\theta \) that, if changed, produce invertible transformations of model predictions. Such parameters are called “diffeomorphic parameters” or “diffeomorphic modes” [28]. The distinction between diffeomorphic modes and nondiffeomorphic modes is illustrated in Fig. 5.
6.1 Criterion for Diffeomorphic Modes
Following [28], we now derive a criterion that can be used to identify all of the diffeomorphic modes of a model \(\theta \).^{Footnote 5} Consider an infinitesimal change in model parameters \(\theta \rightarrow \theta + d \theta \), where the components of \(d\theta \) are specified by
for small \(\epsilon \) and for some vector \(v_i\) in \(\theta \)space. This change in \(\theta \) will produce a corresponding change in model predictions \(R \rightarrow R + dR\), where
In general, the derivative \(\partial R / \partial \theta _i\) can have arbitrary dependence on the underlying sequence S. This transformation will preserve the rank order of Rvalues only if dR is the same for all sequences having the same value of R. The change dR must therefore be a function of R and have no other dependence on S. A diffeomorphic mode is a vector field \(v^\mathrm{dif}(\theta )\) that has this property at all points in parameter space. Specifically, a vector field \(v^\mathrm{dif}(\theta )\) is a diffeomorphic mode if and only if there is a function \(h(R,\theta )\) such that
6.2 Diffeomorphic Modes of Linear Models
As a simple example, consider a situation in which each sequence S is a Ddimensional vector and R is an affine function of S, i.e.
for model parameters \(\theta = \left\{ \theta _0, \theta _1, \ldots , \theta _D \right\} \). The criterion in Eq. (16) then gives
Because the left hand side is linear in S and R is linear in S, the function \(h(R,\theta )\) must be linear in R. Thus, h must have the form
for some functions \(a(\theta )\) and \(b(\theta )\). The corresponding diffeomorphic mode is
which has two degrees of freedom. Specifically, the a component of \(v^\mathrm{dif}\) corresponds to adding a constant to R while the b component corresponds to multiplying R by a constant.
Note that if we had instead chosen \(R = \sum _{i=1}^D \theta _i S_i\), i.e. left out the constant component \(\theta _0\), then there would be only one diffeomorphic mode, corresponding to multiplication of R by a constant. This fact will be used when we analyze the Gaussian selection model in Sect. 8.
6.3 Diffeomorphic Modes of a Biophysical Model of Transcriptional Regulation
Diffeomorphic modes can become less trivial in more complicated situations. Consider the biophysical model of transcriptional regulation by the E. coli lac promoter (Fig. 3). This model was fit to SortSeq data in [12]. The form of this model is as follows. Let S denote a \(4 \times D\) matrix representing a DNA sequence of length D and having elements
where \(b \in \left\{ A,C,G,T \right\} \) and \(l = 1, 2, \ldots D\). The binding energy Q of CRP to DNA was modeled in [12] as an “energy matrix”: each position in the DNA sequence was assumed to contribute additively to the overall energy. Specifically,
where \(\theta _Q = \left\{ \theta ^0_Q, \theta ^{bl}_Q \right\} \) are the parameters of this energy matrix. Similarly, the binding energy P of RNAP to DNA was modeled as
Both energies were taken to be in thermal units (\(k_B T\)). The rate of transcription R resulting from these binding energies was assumed to be proportional to the occupancy of RNAP at its binding site. This transcription rate is given by
where \(\gamma \) is the interaction energy between CRP and RNAP (again in units of \(k_B T\)) and \(R_{max}\) is a scalar.
Because the binding sites for CRP and RNAP do not overlap, one can learn the parameters \(\theta _Q\) and \(\theta _P\) from data separately by independently maximizing I[Q; M] and I[P; M]. Doing this, however, leaves undetermined the overall scale of each energy matrix as well as the chemical potentials \(\theta _P^0\) and \(\theta _Q^0\). The reason is that the energy scale and chemical potential are diffeomorphic modes of energy matrix models and therefore cannot be inferred by maximizing mutual information.
However, if Q and P are inferred together by maximizing I[R; M] instead, one is now able to learn both energy matrices with a physically meaningful energy scale. The chemical potential of CRP, \(\theta _Q^0\), is also determined. The only parameters left unspecified are the chemical potential of RNA polymerase, \(\theta _P^0\), and the maximal transcription rate \(R_{\max }\). The reason for this is that in the formula for R in Eq. (24) the energies P and Q combine in a nonlinear way. This nonlinearity eliminates three of the four diffeomorphic modes of P and Q.^{Footnote 6} See [28] for the derivation of this result.
6.4 Dual Modes of the Noise Function
Diffeomorphic transformations of model parameters can be thought of as being equivalent to certain transformations of the noise function. Consider the transformation of model parameters
where \(\epsilon \) is an infinitesimal number and \(v_i\) is a vector in \(\theta \)space.^{Footnote 7} For any sequence S, this transformation induces a transformation of the model prediction
To see the effect this transformation has on likelihood, we rewrite Eq. (4) as,
where \(\left\langle \cdot \right\rangle _\mathrm{data}\) indicates an average taken over the measurements \(M_n\) and predictions \(R_n\) for all of the sequences \(S_n\) in the data set. The change in likelihood resulting from Eq. (26) is therefore given by
Now suppose that there is a noise function \(\pi '\) that has an equivalent effect on likelihood, i.e.,
for all possible data sets \(\left\{ S_n, M_n \right\} \). We say that this transformation of the noise function \(\pi \rightarrow \pi '\) is “dual” to the transformation \(\theta \rightarrow \theta '\) of model parameters. The transformed noise function will necessarily have the form
for some function \(\tilde{v}(M,R)\). To determine \(\tilde{v}\) we consider the transformation of likelihood induced by \(\pi \rightarrow \pi '\):
Comparing Eqs. (28) and (31), we see that \(\pi \rightarrow \pi '\) will be dual to \(\theta \rightarrow \theta '\) for all possible data sets if and only if
for all sequences S.
For general choice of vector v, no function \(\tilde{v}\) will exist that satisfies Eq. (32). The reason is that \(\partial R/\partial \theta _i\) will typically depend on the sequence S independently of the value of R. In other words, for a fixed value of M and R, the left hand side of Eq. (32) will retain a dependence on S. The right hand side, however, cannot have such a dependence. The converse is also true: for general choice of the function \(\tilde{v}\), no vector v will exist such that Eq. (32) is satisfied for all sequences. This is evident from the simple fact that v is a finite dimensional vector while \(\tilde{v}\) is a function of the continuous quantity R and therefore has an infinite number of degrees of freedom.
In fact, Eq. (32) will have a solution if and only if
for some function h. Here we have added the superscript “dif” because this is precisely the definition of a diffeomorphic mode given in Eq. (16). In this case, the function \(\tilde{v}^\mathrm{dif}\) dual to this diffeomorphic mode \(v^\mathrm{dif}\) is seen to be
These findings are summarized by the Venn diagram in Fig. 6. Arbitrary transformations of the model parameters \(\theta \) will alter likelihood in a way that cannot be imitated by any change to the noise function \(\pi \). The reverse is also true: most changes to \(\pi \) cannot be imitated by a corresponding change in \(\theta \). However, a subset of transformations of \(\theta \) are equivalent to corresponding dual transformations of \(\pi \). These transformations are precisely the diffeomorphic transformations of \(\theta \). This partial duality between \(\theta \) and \(\pi \) has a simple interpretation: the choice of how we parse an experiment into an activity model \(\theta \) and a noise function \(\pi \) is not unique. The ambiguity in this choice is parameterized by the diffeomorphic modes of \(\theta \) and the dual modes of \(\pi \).
7 Error Bars from Likelihood, Mutual Information, and NoiseAveraged Likelihood
We now consider the consequences of performing inference using various objective functions at large but finite N. Specifically, we discuss the optimal parameters and corresponding error bars that are found by sampling \(\theta \) from posterior distributions of the form
for the following choices of the objective function \(F(\theta )\):

(a)
\(F(\theta ) = L(\theta ,\pi ^{*})\) is likelihood computed using the correct noise function \(\pi ^{*}\).

(b)
\(F(\theta ) = L(\theta , \pi ')\) where \(\pi '\) differs from \(\pi ^{*}\) by a small but arbitrary error.

(c)
\(F(\theta ) = L(\theta , \pi '')\) where \(\pi ''\) differs from \(\pi ^{*}\) by a small amount along a dual mode.

(d)
\(F(\theta ) = I(\theta )\) is the mutual information between measurements and model predictions.

(e)
\(F(\theta ) = L_\mathrm{na}(\theta )\) is the noiseaveraged likelihood.
To streamline notation, we will use \(\left\langle \cdot \right\rangle \) to denote averages computed in multiple different contexts. In each case, the appropriate context will be specified by a subscript. As above \(\left\langle \cdot \right\rangle _\mathrm{data}\) will denote averaging over a specific data set \(\left\{ S_n,M_n \right\} _{n=1}^N\). \(\left\langle \cdot \right\rangle _\mathrm{real}\) will indicate averaging over an infinite number of data set realizations. \(\left\langle \cdot \right\rangle _S\), \(\left\langle \cdot \right\rangle _{S,M}\), \(\left\langle \cdot \right\rangle _{SR}\), and \(\left\langle \cdot \right\rangle _{SR,M}\) will respectively denote averages over the distributions p(S), p(S, M), p(SR), and p(SR, M), the empirical distributions obtained in the infinite data limit. \(\left\langle \cdot \right\rangle _\theta \) will indicate an average computed over parameter values \(\theta \) sampled from the posterior distribution \(p(\theta \mathrm{data})\). Subscripts on \(\mathrm{cov}(\cdot )\) or \(\mathrm{var}(\cdot )\) should be interpreted analogously.
7.1 Likelihood
Consider Eq. (35) with \(F(\theta ) = L(\theta ,\pi ^{*})\) at large but finite N. The posterior distribution \(p(\theta  \mathrm{data})\) will, in general, be maximized at some choice of parameters \(\theta ^o\) that deviates randomly from the correct parameters \(\theta ^{*}\). At large N, \(p(\theta \mathrm{data})\) will become sharply peaked about \(\theta ^o\) with a peak width governed by the Hessian of likelihood; specifically
where
is the Hessian of the likelihood. It is also readily shown (see Appendix 1) that this peak width is consistent with the correct parameters \(\theta ^{*}\), in the sense that
In Appendix 1 we show that the Hessian of likelihood, Eq. (37), is given by
where
is the Fisher information of the noise function \(\pi ^{*}\). This Fisher information is a nonnegative measure of how sensitive our experiment is in the vicinity of R.^{Footnote 8} We thus see that, as long as the set of vectors \(\partial R/\partial \theta _i\) spans all directions in parameter space, the Hessian matrix \(H_{ij}\) will be nonsingular. Using \(F(\theta ) = L(\theta ,\pi ^{*})\) will therefore put constraints on all directions in parameter space, and these constraints will shrink with increasing data as \(N^{1/2}\). This situation is illustrated in Fig. 7a.
Now consider what happens if instead we use a noise function \(\pi '\) that deviates from \(\pi ^{*}\) in a small but arbitrary way. Specifically, let
for some function f(M, R) and small parameter \(\epsilon \). It is readily shown (see Appendix 1) that the maximum likelihood parameters \(\theta '\) will deviate from \(\theta ^{*}\) by an amount
This expected deviation does not depend on N and will therefore not shrink to zero in the large N limit. Indeed, for any choice of \(\epsilon > 0\), there will always be an N large enough such that this bias in \(\theta '\) dominates over the uncertainty due to finite sampling.
Is there any restriction on the types of biases in \(\theta '\) that can be produced by the choice of incorrect noise function \(\pi '\)? In general, no. Because the Hessian matrix H is nonsingular, one can always find a vector w such that the deviation of \(\theta '\) from \(\theta ^{*}\) in Eq. (42) points in any chosen direction of \(\theta \)space. As long as the functions
are linearly independent for different indices i, a function f can always be found that generates the vector w in Eq. (42).
We therefore see that arbitrary errors in the noise function will bias the inference of model parameters in arbitrary directions. This fact presents a major concern for standard likelihoodbased inference: if you assume an incorrect noise function \(\pi \), the parameters \(\theta \) that you then infer will, in general, be biased in an unpredictable way. Moreover, the magnitude of this bias will be directly proportional to the magnitude of the error in the log of your assumed noise function. This problem is illustrated in Fig. 7b.
There is a case that deserves some additional consideration. Suppose we use a noise function \(\pi ''\) that differs from \(\pi ^{*}\) only along a dual mode \(\tilde{v}^\mathrm{dif}\), i.e.,
The maximum likelihood parameters \(\theta ''\) of \(L(\theta ,\pi '')\) will still deviate from \(\theta ^{*}\) by an amount that does not shrink to zero in the \(N \rightarrow \infty \) limit. However, this bias in parameter values will be restricted to the diffeomorphic mode \(v^\mathrm{dif}\) to which \(\tilde{v}^\mathrm{dif}\) is dual, i.e.,
This state of affairs ain’t so bad since the incorrect noise function will lead to model parameters that are inaccurate only along modes that we already know we cannot learn from the data. This situation is illustrated in Fig. 7c; see Appendix 1 for the derivation of Eq. (45).
7.2 Mutual Information
The constraints on parameters imposed by using mutual information \(I(\theta )\) as the objective function \(F(\theta )\) in Eq. (35) are determined by the Hessian
Appendix 2 provides a detailed derivation of this Hessian, which after some computation is found to be given by
Comparing Eqs. (47) and (39), we see that for any vector v in parameter space,
Likelihood is thus seen to constrain parameters in all directions at least as much as mutual information does. As expected, mutual information provides no constraint whatsoever in the direction of any diffeomorphic mode \(v^\mathrm{dif}\) of the model, since
The converse is also true: if there is no constraint on parameters along v, then v must be a diffeomorphic mode. This is because
Because J(R) is positive almost everywhere, the right hand side of Eq. (50) can vanish only if \(\sum _i v_i \frac{\partial R}{\partial \theta _i}\) does not differ between any two sequences that have the same R value. There must therefore exist a function h(R) such that \(h(R) = \sum _i v_i \frac{\partial R}{\partial \theta _i}\) for all sequences S. This is precisely the requirement in Eq. (16) that v be a diffeomorphic mode.
However, except along diffeomorphic modes, we can generally expect that the constraints provided by likelihood and by mutual information will be of the same magnitude. This situation is illustrated in Fig. 7d. Indeed, in the next section we will see an explicit example where all nondiffeomorphic constraints imposed by mutual information are comparable to those imposed by likelihood.
Before proceeding, we note that the relationship between the Hessians of likelihood and mutual information suggests an analogy to fluid mechanics. Consider a trajectory in parameter space given by \(\theta _i(t) = t v_i\), where t is time and v is a velocity vector pointing in the direction of motion. This motion in parameter space will induce a motion in the prediction R(t) that the model provides for every sequence S. The set of sequences \(\left\{ S_n \right\} \) thus presents us with a dynamic cloud of “particles” moving about in Rspace. At \(t = 0\), the quantity \({\langle {\dot{R}}^2 \rangle }_{SR}\) will be proportional to the average kinetic energy of particles at location R. The quantity \({\langle {\dot{R}}\rangle }^2 _{SR}\) will be proportional to the (per particle) kinetic energy of the bulk fluid element at R, a quantity that does not count energy due to thermal motion. In this way we see that \(\sum _{i,j} H_{ij} v_i v_j\) is a weighted tally of total kinetic energy, whereas \(\sum _{i,j} K_{ij} v_i v_j\) corresponds to a tally of internal thermal energy only, the kinetic energy of bulk motion having been subtracted out.
7.3 NoiseAveraged Likelihood
Noiseaveraged likelihood provides constraints in between those of likelihood, computed using the correct noise function, and those of mutual information. This is illustrated in Fig. 7e. Whereas mutual information provides no constraints whatsoever on the diffeomorphic modes of \(\theta \), noiseaveraged likelihood provides weak constraints in these directions. These soft constraints reflect the Hessian of \(\Delta (\theta )\) in Eq. (12). The constraints along diffeomorphic modes, however, have an upper bound on how tight they can become in the \(N \rightarrow \infty \) limit. This is because such constraints only reflect our prior \(p(\pi )\) on the noise function, not the information we glean from data.
8 Worked Example: Gaussian Selection
The above principles can be illustrated in the following analytically tractable model of a massively parallel experiment, which we call the “Gaussian selection model.” In this model, our experiment starts with a large library of “DNA” sequences S, each of which is actually a Ddimensional vector drawn from a Gaussian probability distribution^{Footnote 9}
Here, \(\mu \) is a Ddimensional vector defining the average sequence in the library. From this library we extract sequences into two bins, labeled \(M=0\) and \(M=1\). We fill the \(M=0\) bin with sequences sampled indiscriminately from the library. The \(M=1\) bin is filled with sequences sampled from this library with relative probability
where the activity \(R^{*}\) is defined as the dot product of S with a Ddimensional vector \(\theta ^{*}\), i.e.,
We use \(N_M\) to denote the number of sequences in each bin M, along with \(N = N_0 + N_1\).
All of our calculations are performed in the limit where \(N_1\) is large but \(N_0\) is far larger. More specifically, we assume that \(\exp ( a^{*} + b^{*} R^{*}) \ll 1\) everywhere that both \(p(SM=0)\) and \(p(SM=1)\) are significant. We use \(\epsilon \) to denote the ratio
and all of our calculations are carried out only to first order in \(\epsilon \). This model experiment is illustrated in Fig. 8.
Our goal is this: given the sampled sequences in the two bins, recover the parameters \(\theta ^{*}\) defining the sequence–function relationship for \(R^{*}\). To do this, we adopt the following model for the sequencedependent activity R:
where \(\theta \) is the Ddimensional vector we wish to infer. From the arguments above and in [28], it is readily seen that the magnitude of \(\theta \), i.e. \(\theta \), is the only diffeomorphic mode of the model: changing this parameter rescales R, preserving rank order.
8.1 BinSpecific Distributions
We can readily calculate the conditional sequence distribution p(SM) for each bin M, as well as the conditional distribution p(RM) of model predictions. Because the sequences sampled for bin 0 are indiscriminately drawn from \(p_{\mathrm{lib}}\), we have
The distribution of selected sequences is found to be
The value of \(\epsilon \) is found to be related to \(a^{*}\), \(b^{*}\), and \(\theta ^{*}\) via
Appendix 3 provides an explicit derivation of Eqs. (57) and (58).
We compute the distribution of model predictions for each bin as follows. For each bin M, this distribution is defined as
This can be analytically calculated for both of the bins owing to the Gaussian form of each sequence distribution. We find that
See Appendix 3 for details.
8.2 Noise Function
To compute likelihood, we must posit a noise function \(\pi (MR)\). Based on our prior knowledge of the selection procedure, we choose \(\pi (MR)\) so that
where a and b are scalar parameters that we might or might not know a priori. This, combined with the normalization requirement, \(\sum _M \pi (MR) = 1\), gives
This noise function \(\pi \) is correct when \(a = a^{*}\) and \(b = b^{*}\). The parameter b is dual to the diffeomorphic mode \(\theta \), whereas the parameter a is not dual to any diffeomorphic mode.
In the experimental setup used to motivate the Gaussian selection model, the parameter a is affected by many aspects of the experiment, including the concentration of the protein used in the binding assay, the efficiency of DNA extraction from the gel, and the relative amount of PCR amplification used for the bin 0 and bin 1 sequences. In practice, these aspects of the experiment are very hard to control, much less predict. From the results in the previous section, we can expect that if we assume a specific value for a and perform likelihoodbased inference, inaccuracies in this value for a will distort our inferred model \(\theta \) in an unpredictable (i.e., nondiffeomorphic) way. We will, in fact, see that this is the case. The solution to this problem, of course, is to infer \(\theta \) alone by maximizing the mutual information \(I(\theta )\); in this case the values for a and b become irrelevant. Alternatively, one can place a prior on a and b, then maximize noiseaveraged likelihood \(L_\mathrm{na}(\theta )\). We now analytically explore the consequences of these three approaches.
8.3 Likelihood
Using the noise function in Eq. (63), the likelihood L becomes a function of \(\theta \), a, and b. Computing L in the \(N \rightarrow \infty \) and \(\epsilon \rightarrow 0\) limits, we find that
We now consider the consequences of various approaches for using \(L(\theta ,a,b)\) to estimate \(\theta ^{*}\). In each case, the inferred optimum will be denoted by a superscript ‘o.’ Standard likelihoodbased inference requires that we assume a specific value for a and for b, then optimize \(L(\theta , a, b)\) over \(\theta \) alone by setting
for each component i. By this criteria we find that the optimal model \(\theta ^o\) is given by a linear combination of \(\theta ^{*}\) and \(\mu \):
where c is a scalar that solves the transcendental equation
See Appendix 2 for the derivation of this result. Note that c is determined only by the value of a and not by the value of b. Moreover, \(c = 1\) if and only if \(a = a^{*}\).
If our assumed noise function is correct, i.e., \(a = a^{*}\) and \(b = b^{*}\), then
Thus, maximizing likelihood will identify the correct model parameters. This exemplifies the general behavior illustrated in Fig. 7a.
If \(a = a^{*}\) but \(b \ne b^{*}\), our assumed noise function will differ from the correct noise function only in a manner dual to the diffeomorphic mode \(\theta \). In this case we find that \(c = 1\) and
\(\theta ^o\) is thus proportional but not equal to \(\theta ^{*}\). This comports with our claim above that the diffeomorphic mode of the inferred model, i.e. \(\theta ^o\), will be biased so as to compensate for the error in the dual parameter b. This finding follows the behavior described in Fig. 7c.
If \(a \ne a^{*}\), however, \(c \ne 1\). As a result, \(\theta ^o\) is a nontrivial linear combination of \(\theta ^{*}\) and \(\mu \), and will thus point in a different direction than \(\theta ^{*}\). This is true regardless of the value of b. This behavior is illustrated in Fig. 7b: errors in nondual parameters of the noise function will typically lead to errors in nondiffeomorphic parameters of the activity model.
We now consider the error bars that likelihood places on model parameters. Setting \(\theta = \theta ^o + \delta \theta \) and expanding \(L(\theta ,a,b)\) about \(\theta ^o\), we find that
where \(\varLambda _{ij} = \delta _{ij} + (\mu _i + b^{*} \theta ^{*}_i)(\mu _j + b^{*} \theta ^{*}_j).\) Note that all eigenvalues of \(\varLambda \) are greater or equal to 1. Adopting the posterior distribution
therefore gives a covariance matrix on \(\theta \) of
Thus, \(\delta \theta \sim N_1^{1/2}\) in all directions of \(\theta \)space. Therefore, when the noise function is incorrect and N is sufficiently large, the finite bias introduced into \(\theta ^o\) will cause \(\theta ^{*}\) to fall outside the inferred error bars.
8.4 Mutual Information
In the \(\epsilon \rightarrow 0\) limit, Eq. (7) simplifies to
The lowest order term on the right hand side can be evaluated exactly using Eqs. (60) and (61):
See Appendix 3 for details. Note that the expression on the right is invariant under a rescaling of \(\theta \). This reflects the fact that \(\theta \) is a diffeomorphic mode of the model defined in Eq. (55).
To find the model \(\theta ^o\) that maximizes mutual information, we set
The optimal model \(\theta ^o\) must therefore be parallel to \(\theta ^{*}\), i.e.
Expanding about \(\theta = \theta ^o + \delta \theta \) as above, we find that
where \(\delta \theta _\perp \) is the component of \(\delta \theta \) perpendicular to \(\theta ^{*}\); see Appendix 3. Therefore, if we use the posterior distribution \(p(\theta  \mathrm{data}) \sim e^{N I(\theta )}\) to infer \(\theta \), we find uncertainties in directions perpendicular to \(\theta ^{*}\) of magnitude \(N_1^{1/2}\). These error bars are only slightly larger than those obtained using likelihood, and have the same dependence on N. However, we find no constraint whatsoever on the component of \(\delta \theta \) parallel to \(\theta ^{*}\). These results are illustrated by Fig. 7d.
8.5 NoiseAveraged Likelihood
We can also compute the noiseaveraged likelihood, \(L_\mathrm{na}(\theta )\), in the case of a uniform prior on a and b, i.e. \(p(\pi ) = p(a,b) = \mathcal {C}\) where \(\mathcal {C}\) is an infinitesimal constant. We find that
See the Appendix 3 for details. Thus,
where the constant (which absorbs \(\mathcal {C}\) entirely) does not depend on \(\theta \). If we perform Bayesian inference using noiseaveraged likelihood, i.e., using \(p(\theta  \mathrm{data}) \sim e^{N L_\mathrm{na}(\theta )}\), we will therefore find in the large N limit that \(\delta \theta _\perp \) is constrained in the same way as if we had used mutual information. The noise function prior we have assumed further results in weak constraints on \(\theta \) that do not tighten as N increases.^{Footnote 10} This is represented in Fig. 7e.
9 Discussion
The systematic study of quantitative sequence–function relationships in biology is just now becoming possible thanks to the development of a variety of massively parallel experiments. Concepts and methods from statistical physics are likely to prove valuable for understanding this basic class of biological phenomena as well as for learning sequence–function relationships from data.
In this paper we have discussed the problem of learning parametric models of sequence–function relationships from experiments having poorly characterized experimental noise. We have seen that standard likelihoodbased inference, which requires an explicit model of experimental noise, will generally lead to incorrect model parameters due to errors in the assumed noise function. By contrast, mutualinformationbased inference allows one to learn parametric models without having to assume any noise function at all. Mutualinformationbased inference is unable to pin down the values of model parameters along diffeomorphic modes. This behavior reflects a fundamental difference between how diffeomorphic and nondiffeomorphic modes are constrained by data. Diffeomorphic modes arise from arbitrariness in the distinction between the activity model and the noise function. These findings were illustrated using an analytically tractable model for a massively parallel experiment.
The study of quantitative sequence–function relationships still presents many challenges, both theoretical and computational. One major practical difficulty with the mutualinformationbased approach described here is accurately estimating mutual information from data. Although methods are available for doing this [44], it remains unclear whether any are accurate enough to enable computational sampling of the posterior distribution \(p(\theta \mathrm{data}) \sim e^{NI(\theta )}\), as suggested here. Moreover, none of these estimation methods is regarded as definitive. We believe this lack of clarity regarding how to estimate mutual information reflects the fact that the density estimation problem itself has never been fully solved, even in one or two dimensions. We are hopeful, however, that fieldtheoretic methods for estimating probability densities [45–47] might help resolve the problem of mutual information.
The problem of model selection poses a major theoretical challenge. Ideally, one would like to explore a hierarchy of possible model classes when fitting parametric models to data. However, when considering effective models it is unclear how to move far beyond independent site models (e.g., energy matrices) due to the number of parameters growing exponentially with the length of the sequence. Moreover, when learning mechanistic models such as the model of the lac promoter featured in Fig. 3, it is unclear how to go about systematically testing different arrangements of binding sites, different protein–protein interactions, and so on. We emphasize that this model prioritization problem is fundamentally theoretical, not computational, and as of now there is little clarity on how to address this matter.
Finally, the geometric structure of sequence–function relationships presents an array of intriguing questions. For instance, very little is known (in any system) about how convex or glassy such landscapes in sequence space are, what their density of states looks like, etc.. Most of the biological and evolutionary implications of these aspects of sequence–function relationships also have yet to be worked out. We believe that the methods and ideas of statistical physics may lead to important insights into these questions in the near future.
Notes
These have also been called quantitative sequenceactivity maps, or QSAMs [1].
We use the term “noise function” in order to be consistent with the terminology of [28] and to avoid deviating too much from the more standard terms “noise model” and “error model” used in the statistics and machine learning literature. We emphasize, however, that \(\pi \) defines much more than just the characteristics of experimental noise; \(\pi \) entirely specifies the relationship between measurements M and the underlying activity R. Were it not for prior terminology, the term “measurement function” might be preferable to “noise function.”
See [43] for an extended discussion of mutual information as a measure of statistical association.
Here, as throughout this paper, we restrict our attention to situations in which R is a scalar. The case of vectorvalued model predictions R is worked out in [28].
The one additional diffeomorphic mode is created by the introduction of the parameter \(R_{\max }\).
For the sake of clarity we suppress the \(\theta \)dependence of \(v^\mathrm{dif}\), \(\tilde{v}^\mathrm{dif}\), and h(R) in what follows.
In what follows we assume that \(J(R) > 0\) almost everywhere. This just reflects the assumption that our experiment actually does convey information about R through the measurements M it provides.
For the sake of simplicity we set the covariance matrix of this distribution equal to the identity matrix. The more general case of a nonidentity covariance matrix yields the same basic results. Also, we note that, while approximating discrete DNA sequences by continuous vectors might seem crude, it is only the marginal distributions p(RM) that matter for the inference problem. Most of the quantities R that one encounters in practice are computed by summing up contributions from a large number of different nucleotide positions. In such cases, the marginal distributions p(RM) will often be nearly continuous and virtually indistinguishable from the marginal distributions one might obtain from a Gaussian sequence library.
In the case at hand, \(\theta ^o\) is pushed all the way to zero. This is an artifact of the simple flat prior p(a, b). If we instead adopt a weak Gaussian prior on b, we can still carry out the computation of \(L_\mathrm{na}\) analytically, and in this case we find that \(\theta ^o\) is finite.
References
Melnikov, A., Murugan, A., Zhang, X., Tesileanu, T., Wang, L., Rogov, P., Feizi, S., Gnirke, A., Callan, C.G., Kinney, J.B., Kellis, M., Lander, E.S., Mikkelsen, T.S.: Systematic dissection and optimization of inducible enhancers in human cells using a massively parallel reporter assay. Nat. Biotechnol. 30(3), 271–277 (2012)
Mukherjee, S., Berger, M., Jona, G., Wang, X., Muzzey, D., Snyder, M., Young, R., Bulyk, M.: Rapid analysis of the DNAbinding specificities of transcription factors with DNA microarrays. Nat. Genet. 36(12), 1331–1339 (2004)
Berger, M., Philippakis, A., Qureshi, A., He, F., Estep, P., Bulyk, M.: Compact, universal DNA microarrays to comprehensively determine transcriptionfactor binding site specificities. Nat. Biotechnol. 24(11), 1429–1435 (2006)
Meng, X., Brodsky, M.H., Wolfe, S.A.: A bacterial onehybrid system for determining the DNAbinding specificity of transcription factors. Nat. Biotechnol. 23(8), 988–994 (2005)
Maerkl, S., Quake, S.: A systems approach to measuring the binding energy landscapes of transcription factors. Science 315(5809), 233–237 (2007)
Zykovich, A., Korf, I., Segal, D.J.: BindnSeq: highthroughput analysis of in vitro proteinDNA interactions using massively parallel sequencing. Nucleic Acids Res. 37(22), e151 (2009)
Zhao, Y., Granas, D., Stormo, G.D.: Inferring binding energies from selected binding sites. PLoS Comput. Biol. 5(12), e1000590 (2009)
Jolma, A., Kivioja, T., Toivonen, J., Cheng, L., Wei, G., Enge, M., Taipale, M., Vaquerizas, J.M., Yan, J., Sillanpää, M.J., Bonke, M., Palin, K., Talukder, S., Hughes, T.R., Luscombe, N.M., Ukkonen, E., Taipale, J.: Multiplexed massively parallel SELEX for characterization of human transcription factor binding specificities. Genome Res. 20(6), 861–873 (2010)
Wong, D., Teixeira, A., Oikonomopoulos, S., Humburg, P., Lone, I.N., Saliba, D., Siggers, T., Bulyk, M., Angelov, D., Dimitrov, S., Udalova, I.A., Ragoussis, J.: Extensive characterization of NF\(\kappa \)B binding uncovers noncanonical motifs and advances the interpretation of genetic functional traits. Genome Biol. 12(7), R70 (2011)
Slattery, M., Riley, T., Liu, P., Abe, N., GomezAlcala, P., Dror, I., Zhou, T., Rohs, R., Honig, B., Bussemaker, H.J., Mann, R.S.: Cofactor binding evokes latent differences in DNA binding specificity between Hox proteins. Cell 147(6), 1270–1282 (2011)
Patwardhan, R.P., Lee, C., Litvin, O., Young, D.L., Pe’er, D., Shendure, J.: Highresolution analysis of DNA regulatory elements by synthetic saturation mutagenesis. Nat. Biotechnol. 27(12), 1173–1175 (2009)
Kinney, J.B., Murugan, A., Callan, C.G., Cox, E.C.: Using deep sequencing to characterize the biophysical mechanism of a transcriptional regulatory sequence. Proc. Natl. Acad. Sci. USA 107(20), 9158–9163 (2010)
Patwardhan, R.P., Hiatt, J.B., Witten, D.M., Kim, M.J., Smith, R.P., May, D., Lee, C., Andrie, J.M., Lee, S.I., Cooper, G.M., Ahituv, N., Pennacchio, L.A., Shendure, J.: Massively parallel functional dissection of mammalian enhancers in vivo. Nat. Biotechnol. 30(3), 265–270 (2012)
Sharon, E., Kalma, Y., Sharp, A., RavehSadka, T., Levo, M., Zeevi, D., Keren, L., Yakhini, Z., Weinberger, A., Segal, E.: Inferring gene regulatory logic from highthroughput measurements of thousands of systematically designed promoters. Nat. Biotechnol. 30(6), 521–530 (2012)
Kwasnieski, J.C., Mogno, I., Myers, C.A., Corbo, J.C., Cohen, B.A.: Complex effects of nucleotide variants in a mammalian cisregulatory element. Proc. Natl. Acad. Sci. USA 109(47), 19498–19503 (2012)
Fowler, D.M., Araya, C.L., Fleishman, S.J., Kellogg, E.H., Stephany, J.J., Baker, D., Fields, S.: Highresolution mapping of protein sequencefunction relationships. Nat. Methods 7(9), 741–746 (2010)
Hietpas, R.T., Jensen, J.D., Bolon, D.N.A.: Experimental illumination of a fitness landscape. Proc. Natl. Acad. Sci. USA 108(19), 7896–7901 (2011)
Adkar, B.V., Tripathi, A., Sahoo, A., Bajaj, K., Goswami, D., Chakrabarti, P., Swarnkar, M.K., Gokhale, R.S., Varadarajan, R.: Protein model discrimination using mutational sensitivity derived from deep sequencing. Structure 20(2), 371–381 (2012)
Whitehead, T.A., Chevalier, A., Song, Y., Dreyfus, C., Fleishman, S.J., De Mattos, C., Myers, C.A., Kamisetty, H., Blair, P., Wilson, I.A., Baker, D.: Optimization of affinity, specificity and function of designed influenza inhibitors using deep sequencing. Nat. Biotechnol. 30(6), 543–548 (2012)
Schlinkmann, K.M., Honegger, A., Türeci, E., Robison, K.E., Lipovšek, D., Plückthun, A.: Critical features for biosynthesis, stability, and functionality of a G proteincoupled receptor uncovered by allversusall mutations. Proc. Natl. Acad. Sci. USA 109(25), 9810–9815 (2012)
Holmqvist, E., Reimegård, J., Wagner, E.G.H.: Massive functional mapping of a 5’UTR by saturation mutagenesis, phenotypic sorting and deep sequencing. Nucleic Acids Res. 41(12), e122 (2013)
Peterman, N., LaviItzkovitz, A., Levine, E.: Largescale mapping of sequencefunction relations in small regulatory RNAs reveals plasticity and modularity. Nucleic Acids Res. 42(19), 12177–12188 (2014)
Oikonomou, P., Goodarzi, H., Tavazoie, S.: Systematic identification of regulatory elements in conserved 3’ UTRs of human transcripts. Cell Rep. 7(1), 281–292 (2014)
Noderer, W.L., Flockhart, R.J., Bhaduri, A., Diaz de Arce, A.J., Zhang, J., Khavari, P.A., Wang, C.L.: Quantitative analysis of mammalian translation initiation sites by FACSseq. Mol. Syst. Biol. 10(8), 748 (2014)
Liachko, I., Youngblood, R.A., Keich, U., Dunham, M.J.: Highresolution mapping, characterization, and optimization of autonomously replicating sequences in yeast. Genome Res. 23(4), 698–704 (2013)
Thyme, S.B., Song, Y., Brunette, T.J., Szeto, M.D., Kusak, L., Bradley, P., Baker, D.: Massively parallel determination and modeling of endonuclease substrate specificity. Nucleic Acids Res. 42(22), 13839–13852 (2014)
Kinney, J.B., Tkacik, G., Callan, C.G.: Precise physical models of proteinDNA interaction from highthroughput data. Proc. Natl. Acad. Sci. USA 104(2), 501–506 (2007)
Kinney, J.B., Atwal, G.S.: Parametric inference in the large data limit using maximally informative models. Neural Comput. 26(4), 637–653 (2014)
Cover, T., Thomas, J.: Elements of Information Theory, 1st edn. Wiley, New York (1991)
Paninski, L.: Convergence properties of three spiketriggered analysis techniques. NetworkComput. Neural 14(3), 437–464 (2003)
Sharpee, T., Rust, N., Bialek, W.: Analyzing neural responses to natural signals: maximally informative dimensions. Neural Comput. 16(2), 223–250 (2004)
Sharpee, T., Sugihara, H., Kurgansky, A., Rebrik, S., Stryker, M., Miller, K.: Adaptive filtering enhances information transmission in visual cortex. Nature 439(7079), 936–942 (2006)
Kouh, M., Sharpee, T.O.: Estimating linearnonlinear models using Rényi divergences. NetworkComput. Neural 20(2), 49–68 (2009)
Rajan, K., Marre, O., Tkacik, G.: Learning quadratic receptive fields from neural responses to natural signals: information theoretic and likelihood methods. Neural Comput. 25(7), 1661–1692 (2013)
Jolma, A., Yan, J., Whitington, T., Toivonen, J., Nitta, K.R., Rastas, P., Morgunova, E., Enge, M., Taipale, M., Wei, G., Palin, K., Vaquerizas, J.M., Vincentelli, R., Luscombe, N.M., Hughes, T.R., Lemaire, P., Ukkonen, E., Kivioja, T., Taipale, J.: DNAbinding specificities of human transcription factors. Cell 152(1), 327–339 (2013)
Oliphant, A., Brandl, C., Struhl, K.: Defining the sequence specificity of DNAbinding proteins by selecting binding sites from randomsequence oligonucleotides: analysis of yeast GCN4 protein. Mol. Cell. Biol. 9(7), 2944–2949 (1989)
Tuerk, C., Gold, L.: Systematic evolution of ligands by exponential enrichment: RNA ligands to bacteriophage T4 DNA polymerase. Science 249(4968), 505–510 (1990)
Ellington, A.D., Szostak, J.W.: In vitro selection of RNA molecules that bind specific ligands. Nature 346(6287), 818–822 (1990)
Blackwell, T.K., Weintraub, H.: Differences and similarities in DNAbinding preferences of MyoD and E2A protein complexes revealed by binding site selection. Science 250(4984), 1104–1110 (1990)
Wright, W., Binder, M., Funk, W.: Cyclic amplification and selection of targets (CASTing) for the myogenin consensus binding site. Mol. Cell. Biol. 11(8), 4104–4110 (1991)
Herzenberg, L., Sweet, R., Herzenberg, L.: Fluorescenceactivated cell sorting. Sci. Am. 234(3), 108–117 (1976)
Fowler, D.M., Fields, S.: Deep mutational scanning: a new style of protein science. Nat. Methods 11(8), 801–807 (2014)
Kinney, J.B., Atwal, G.S.: Equitability, mutual information, and the maximal information coefficient. Proc. Natl. Acad. Sci. USA 111(9), 3354–3359 (2014)
Khan, S., Bandyopadhyay, S., Ganguly, A., Saigal, S., Erickson III, D., Protopopescu, V., Ostrouchov, G.: Relative performance of mutual information estimation methods for quantifying the dependence among short and noisy data. Phys. Rev. E 76(2), 026209 (2007)
Bialek, W., Callan, C., Strong, S.: Field theories for learning probability distributions. Phys. Rev. Lett. 77(23), 4693–4697 (1996)
Kinney, J.B.: Estimation of probability densities using scalefree field theories. Phys. Rev. E 90(1), 011301(R) (2014)
Kinney, J.B.: Unification of field theory and maximum entropy methods for learning probability densities. Phys. Rev. E 92(3), 032107 (2015)
Acknowledgments
We would like to thank L. Peliti, O. Revoire, and T. Mora for organizing this special issue. This work was supported by the Simons Center for Quantitative Biology at Cold Spring Harbor Laboratory and the Starr Cancer Consortium (I7A723).
Author information
Authors and Affiliations
Corresponding author
Appendices
Appendix 1: Maximum Likelihood Under Various Noise Functions
At the correct noise function \(\pi ^{*}\), likelihood is given by
Taylor expanding this quantity about \(\theta ^{*}\) gives
We define the random vector u in terms of the coefficient of the linear term of this expansion:
Because \(u_i/\sqrt{N}\) is defined as a sum of N random terms, and because the mean of these terms vanishes, the covariance \({\langle {u_i u_j}\rangle }_\mathrm{real}\) will, by the central limit theorem, be given by
At \(\theta = \theta ^{*}\), each measurement M will provide no additional information about S beyond that provided by the model prediction \(R = \theta (S)\). Mathematically this means that
for all S, R, and M. Equivalently, the conditional expectation value of any sequencedependent function f(S) will obey
for all M. We use this fact to simplify Eq. (86):
where J(R) is the Fisher information from Eq. (40).
We compute the Hessian of likelihood as follows:
The second term on the right hand side vanishes because of Eq. (88):
We therefore find that
which is Eq. (39). Note that, from Eq. (90), \(\left\langle u_i u_j \right\rangle _\mathrm{real}=  H_{ij}\).
The optimum \(\theta ^o\) of \(L(\theta ,\pi ^{*})\) will occur when
We therefore find that, to lowest order in \(N^{1/2}\),
The covariance of \(\theta ^o\) is thus given by
which is Eq. (38).
Under the incorrect noise function \(\pi '\) defined in Eq. (41),
where
Let \(\theta '\) denote the maximum of \(L(\theta ,\pi ')\). Setting \(\left. \frac{\partial L(\theta , \pi ')}{\partial \theta _i} = 0 \right _{\theta '}\), we find
from which we get Eq. (42).
In the case of a noise function \(\pi ''\) that differs from \(\pi ^{*}\) only along a dual mode, as in Eq. (44), the vector \(w_i\) is given by
The maximum likelihood parameters \(\theta ''\) will therefore satisfy
which is solved by Eq. (45). The fact that this uniquely specifies \(\left\langle \theta ''_i  \theta ^{*}_i \right\rangle _\mathrm{real}\) follows from the Hessian H being nonsingular.
Appendix 2: Gradient and Hessian of Mutual Information
Here we calculate the gradient and Hessian of mutual information evaluated at \(\theta = \theta ^{*}\). We do this by first computing derivatives of the empirical probability distributions p(R) and p(R, M) with respect to model parameters. The mathematical trick used to do this is adapted from [31]. These results are first applied to likelihood in order to demonstrate their use and correctness. We then use this approach to compute the gradient and Hessian of mutual information. To clarify these derivations, we use \(r(\theta ,S)\), instead of \(\theta (S)\), to explicitly denote the model prediction R as a function of sequence S and model parameters \(\theta \). We also define \(\partial _i \equiv \frac{\partial }{\partial \theta _i}\) and use \(\int dS\) to represent sums over sequences.
1.1 How the Distribution of Model Predictions Changes with Model Parameters
The empirical probability distribution of model predictions R is given by
The gradient of this probability distribution with respect to model parameters is computed as follows:
Similarly, the Hessian of p(R) is given by
Analogous results follow for the gradient and Hessian of the joint distribution p(R, M):
1.2 Gradient and Hessian of Likelihood
Likelihood can be expressed in terms of the empirical distribution p(R, M) as
Keep in mind that R is just a dummy variable in this integral; the empirical distribution p is the only quantity that depends on \(\theta \). The gradient of likelihood is therefore computed as
Note that in going from Eqs. (122) to (123 124) we used integration by parts. The Hessian of likelihood is computed similarly:
This expression is valid for all choices \(\theta \) and \(\pi \).
Restricting our attention now to \(\theta = \theta ^{*}\) and \(\pi = \pi ^{*}\), we see that the second term in Eq. (127) vanishes as it did in Eq. (92 93 94 95) through Eq. (96). Moreover, the first term gives
which is the formula obtained for \(H_{ij}\) in Eq. (39).
1.3 Gradient and Hessian of Mutual Information
The gradient and Hessian computations for mutual information are simplified by expressing mutual information in terms of its component entropies. We write
where
The gradient of \(H_R\) is given by
Similarly,
\(H_M\) does not depend on \(\theta \), so \(\partial _i H_M = 0\). The resulting gradient of mutual information is
Note from Eq. (121) that \(\partial _i I = \partial _i L\) whenever \(\pi (MR) = p(MR)\).
Now let’s compute the Hessian of \(H_R\):
Similarly,
The Hessian of mutual information is therefore given by,
Using the form of \(\partial _i \partial _j L\) in Eq. (125), we see that this reduces to
where
and
We now split \(\varLambda _{ij}^R\) and \(\varLambda _{ij}^{RM}\) into four terms each. For \(\varLambda _{ij}^R\) we get
where
Similarly,
where
It is unclear how to simplify the expression for \(\partial _i \partial _j I\) at general choices of \(\theta \). At \(\theta = \theta ^{*}\), however, the expectation value \(\left\langle \partial _i r \right\rangle _{SR,M}\) loses all Mdependence and this causes a lot of cancellations to occur:
and
We therefore find that,
The expression in braces can be simplified as follows:
The Hessian of mutual information at \(\theta = \theta ^{*}\) therefore has a rather simple form:
which is Eq. (47).
Appendix 3: Gaussian Selection Model
1.1 Derivation of Eqs. (57) and (58)
Applying Bayes’s theorem twice,
Using Eqs. (56), (52), and (54) then gives
Next we complete the square in the exponent:
From the first term in Eq. (178) we recover Eq. (57). To get \(\epsilon \), we substitute Eq. (178) into Eq. (175). Comparing this to Eq. (57) then gives
Solving for \(\epsilon \) recovers Eq. (58).
1.2 Derivation of Eqs. (60) and (61)
Here we describe how to compute p(RM) where \(R = \theta ^T S\). We first consider the case of \(M=0\).
where \(R' = R  \mu ^T \theta \) and \(S' = S  \mu \). We have chosen to work with \(R'\) and \(S'\) instead of R and S because \(p(S'M=0)\) is centered about 0. Now, split \(S'\) up into the components parallel and perpendicular to \(\theta \):
where \(S'_\perp \) is a vector orthogonal to \(\theta \), \(S'_\parallel \) is a scalar, and \(\hat{\theta } = \theta / \theta \). This definition gives \({S'}^T \theta = S'_\parallel \theta \). Continuing with the integration,
Finally, substituting R back for \(R'\) gives
To compute \(p(RM=1)\), we just replace \(\mu \rightarrow \mu + b^{*} \theta ^{*}\), giving
1.3 Derivation of Eq. (64)
We compute likelihood in the \(N \rightarrow \infty \) limit as follows:
In deriving Eq. (193) we assumed that \(e^{a + bR} \ll 1\) for all values of R over which both \(p(RM=0)\) and \(p(RM=1)\) have significant support. This assumption necessarily holds in the \(\epsilon \rightarrow 0\) limit. We have also kept only the lowest order terms in \(\epsilon \). Note in particular that \({\langle {e^{a+bR}}\rangle }_{SM=0}\) will be of order \(\epsilon \).
The second term in Eq. (193) can be directly read off from Eq. (61):
From Eq. (60) we see that the first term in Eq. (193) can be computed by completing the square:
from which we get
Plugging Eqs. (194) and (198) into Eq. (193) gives the formula for \(L(\theta ,a,b)\) in Eq. (64).
1.4 Derivation of Eqs. (66) and (67)
Here we show how to derive the optimal \(\theta \) for \(L(\theta ,a,b)\), with a and b fixed. Setting the gradient of L with respect to \(\theta \) to zero,
This gives
where c is a constant satisfying
We thus find Eq. (66). Note that the right hand side of the above equation depends implicitly on c through the value of \(\theta ^o\). To eliminate \(\theta ^o\) from the equation for c, we let \(\varLambda \) denote the \(\theta ^{*}\)dependent part of Eq. (203), then substitute in Eq. (66):
Using
we get
We thus find the transcendental equation for c,
which is Eq. (67).
1.5 Derivation of Eq. (70)
From the expression for likelihood in Eq. (64), we find that the Hessian of likelihood is
where
We note that in deriving Eq. (213) we used the expression for \(\epsilon \) in Eq. (58). The expression in Eq. (70) further makes use of the approximation \(N_1 \approx \epsilon N\), which will hold in the \(\epsilon \rightarrow 0\) limit, and
which will hold in the large N limit.
1.6 Derivation of Eqs. (73) and (74)
We derive Eq. (73) as follows. To ease notation a bit, we define \(p_M(R) = p(R  M)\).
Because \(p(M=1) = \epsilon + O(\epsilon ^2)\), the first term in Eq. (219) is the right hand side of Eq. (73) to lowest order in \(\epsilon \). We now show that the second term is of order \(\epsilon ^2\) and can therefore be ignored. Up to terms of order \(\epsilon ^2\),
Rearranging this gives
Plugging this into the second term of Eq. (219) gives
Equation (74) is derived as follows:
1.7 Derivation of Eq. (77)
To derive Eq. (77), we set
where \(\delta \theta _\parallel \) is the deviation of \(\theta \) from \(\theta ^*\) in the direction of \(\theta ^{*}\), and \(\delta \theta _\perp \) is the deviation perpendicular to \(\theta ^{*}\). This gives
The result in Eq. (77) readily follows by substituting this into the formula for mutual information in Eq. (74), then approximating the Hessian of mutual information at \(\theta ^o\) by the Hessian at \(\theta ^{*}\).
1.8 Derivation of Eq. 80
Here we show how to evaluate the equation, Eq. (79), for the noiseaveraged likelihood \(e^{N L_\mathrm{na}(\theta )}\). First, interchange the order of integration and define \(a' = a + b \theta ^T \mu \). This gives,
Next, define \(M = N \exp \left( \frac{b^2 \theta ^2}{2} \right) \), \(u = M e^{a'}\), and so \(e^{a'} = u/M\), \(e^{a'}da' = du/M\). This gives
which is Eq. (80).
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Atwal, G.S., Kinney, J.B. Learning Quantitative Sequence–Function Relationships from Massively Parallel Experiments. J Stat Phys 162, 1203–1243 (2016). https://doi.org/10.1007/s1095501513983
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s1095501513983