Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2019 Nov 19.
Published in final edited form as: Adv Neural Inf Process Syst. 2018 Dec;31:5420–5430.

Learning Concave Conditional Likelihood Models for Improved Analysis of Tandem Mass Spectra

John T Halloran 1, David M Rocke 2
PMCID: PMC6863516  NIHMSID: NIHMS1014256  PMID: 31745383

Abstract

The most widely used technology to identify the proteins present in a complex biological sample is tandem mass spectrometry, which quickly produces a large collection of spectra representative of the peptides (i.e., protein subsequences) present in the original sample. In this work, we greatly expand the parameter learning capabilities of a dynamic Bayesian network (DBN) peptide-scoring algorithm, Didea [25], by deriving emission distributions for which its conditional log-likelihood scoring function remains concave. We show that this class of emission distributions, called Convex Virtual Emissions (CVEs), naturally generalizes the log-sum-exp function while rendering both maximum likelihood estimation and conditional maximum likelihood estimation concave for a wide range of Bayesian networks. Utilizing CVEs in Didea allows efficient learning of a large number of parameters while ensuring global convergence, in stark contrast to Didea’s previous parameter learning framework (which could only learn a single parameter using a costly grid search) and other trainable models [12, 13, 14] (which only ensure convergence to local optima). The newly trained scoring function substantially outperforms the state-of-the-art in both scoring function accuracy and downstream Fisher kernel analysis. Furthermore, we significantly improve Didea’s runtime performance through successive optimizations to its message passing schedule and derive explicit connections between Didea’s new concave score and related MS/MS scoring functions.

1. Introduction

A fundamental task in medicine and biology is identifying the proteins present in a complex biological sample, such as a drop of blood. The most widely used technology to accomplish this task is tandem mass spectrometry (MS/MS), which quickly produces a large collection of spectra representative of the peptides (i.e., protein subsequences) present in the original sample. A critical problem in MS/MS analysis, then, is the accurate identification of the peptide generating each observed spectrum.

The most accurate methods which solve this problem search a database of peptides derived from the mapped organism of interest. Such database-search algorithms score peptides from the database and return the top-ranking peptide per spectrum. The pair consisting of an observed spectrum and scored peptide are typically referred to as a peptide-spectrum match (PSM). Many scoring functions have been proposed, ranging from simple dot-products [2, 28], to cross-correlation based [8], to p-value based [10, 19, 16]. Recently, dynamic Bayesian networks (DBNs) have been shown to achieve the state-of-the-art in both PSM identification accuracy and post-search discriminative analysis, owing to their temporal modeling capabilities, parameter learning capabilities, and generative nature.

The first such DBN-based scoring function, Didea [25], used sum-product inference to efficiently compute a log-posterior score for highly accurate PSM identification. However, Didea utilized a complicated emission distribution for which only a single parameter could be learned through a costly grid search. Subsequently, a DBN for Rapid Identification of Peptides (DRIP) [13, 11], was shown in [12] to outperform Didea due to its ability to generatively learn a large number of model parameters. Most recently, DRIP’s generative nature was further exploited to derive log-likelihood gradients detailing the manner in which peptides align with observed spectra [14]. Combining these gradients with a discriminative postprocessor [17], the resulting DRIP Fisher kernel substantially improved upon all state-of-the-art methods for downstream analysis on a large number of datasets.

However, while DRIP significantly improves several facets of MS/MS analysis due to its parameter learning capabilities, these improvements come at high runtime cost. In practice, DRIP inference is slow due to its large model complexity (the state-space grows exponentially in the lengths of both the observed spectrum and peptide). For instance, DRIP search required an order of magnitude longer than the slowest implementation of Didea for the timing tests in Section 5.2. Herein, we greatly improve upon all the analysis strengths provided by DRIP using the much faster Didea model. Furthermore, we optimize Didea’s message passing schedule for a 64.2% speed improvement, leading to runtimes two orders of magnitude faster than DRIP and comparable to less accurate(but widely used) methods. Thus, the work described herein not only improves upon state-of-the-art DBN analysis for effective parameter learning, scoring function accuracy, and downstream Fisher kernel recalibration, but also renders such analysis practical by significantly decreasing state-of-the-art DBN inference time.

In this work, we begin by discussing relevant MS/MS background and previous work. We then greatly expand the parameter learning capabilities of Didea by deriving a class of Bayesian network (BN) emission distributions for which both maximum likelihood learning and, most importantly, conditional maximum likelihood learning are concave. Called Convex Virtual Emissions (CVEs), we show that this class of emission distributions generalizes the widely used log-sum-exp function and naturally arises from the solution of a nonlinear differential equation representing convex conditions for general BN emissions. We incorporate CVEs into Didea to quickly and efficiently learn a substantial number of model parameters, considerably improving upon the previous learning framework. The newly trained model drastically improves PSM identification accuracy, outperforming all state-of-the-art methods over the presented datasets; at a strict FDR of 1% and averaged over the presented datasets, the trained Didea scoring function identifies 16% more spectra than DRIP and 17.4% more spectra than the highly accurate and widely used MS-GF+ [19]. Under the newly parameterized model, we then derive a bound explicitly relating Didea’s score to the popular XCorr scoring function, thus providing potential avenues to train XCorr using the presented parameter learning work.

With efficient parameter learning in place, we next utilize the new Didea model to improve MS/MS recalibration performance. We use gradient information derived from Didea’s conditional log-likelihood in the feature-space of a kernel-based classifier [17]. Training the resulting conditional Fisher kernel substantially improves upon the state-of-the-art recalibration performance previously achieved by DRIP; at a strict FDR of 1%, discriminative recalibration using Didea’s conditional Fisher kernel results in an average 11.3% more identifications than using the DRIP Fisher kernel. Finally, we conclude with a discussion of several avenues for future work.

2. Tandem mass spectrometry

With a complex sample as input, a typical MS/MS experiment begins by cleaving the proteins of the sample into peptides using a digesting enzyme, such as trypsin. The digested peptides are then separated via liquid chromatography and undergo two rounds of mass spectrometry. The first round of mass spectrometry measures the mass and charge of the intact peptide, referred to as the precursor mass and precursor charge, respectively. Peptides are then fragmented into prefix and suffix ions. The mass-to-charge (m/z) ratios of the resulting fragment ions are measured in the second round of mass spectrometry, producing an observed spectrum of m/z versus intensity values representative of the fragmented peptide. The output of this overall process is a large collection of spectra (often numbering in the hundreds-of-thousands), each of which is representative of a peptide from the original complex sample and requires identification. The x-axis of such observed spectra denotes m/z, measured in thomsons (Th), and y-axis measures the intensity at a particular m/z value. A sample such observed spectrum is illustrated in Figure 1.

Figure 1:

Figure 1:

Example tandem mass spectrum with precursor charge cs = 2 and generating peptide x = TGPSPQPESQGSFYQR. Plotted in red and blue are, respectively, b- and y-ion peaks (discussed in Section 2.1), while unidentified peaks are colored gray.

2.1. Database search and theoretical spectra

Let s ∈ S be an observed spectrum with precursor m/z ms and precursor charge cs, where S is the universe of tandem mass spectra. The generating peptide of s is identified by searching a database of peptides, as follows. Let P be the universe of all peptides and x∈P be an arbitrary peptide of length l. x = x1 … xl is a string comprised of characters called amino acids, the dictionary size of which are 20. We denote peptide substrings as xi:j = xi,…, xj, where i > 0, j ≤ l, i < j, and the mass of x as m(x). Given a peptide database D⊂P, the set of peptides considered is constrained to those within a precursor mass tolerance window w of ms. The set of candidate peptides to be scored is thus D(s,D,w)={x:x∈D,∣m(x)c2−ms∣≤w}. Using a scoring function ψ:P×S→R, a database search outputs the top-scoring PSM, x∗=argmaxx∈Dψ(x,s).

In order to score a PSM, the idealized fragment ions of x are first collected into a theoretical spectrum. The most commonly encountered fragment ions are called b-ions and y-ions. B- and y-ions correspond to prefix and suffix mass pairs, respectively, such that the precursor charge cs is divided amongst the pair. For b-ion charge cb ≤ cs, the kth b-ion and the accompanying y-ion are then, respectively,

b(m(x1:k),cb)=m(x1:k)+cbcb=[∑i=1km(xi)]+cbcb,y(m(xk+1:l),cy)=[∑i=k+1lm(xi)]+18+cycy,

where cy is the y-ion charge, the b-ion offset corresponds to a cb charged hydrogen atom, and the y-ion offset corresponds to a cy charged hydrogen atom plus a water molecule. For singly charged spectra cs = 1, only singly charged fragment ions are detectable, so that cb = cy = 1. For higher precursor charge states cs ≥ 2, the total charge is split between each b- and y-ion pair, so that 0 < cb < cs and cy = cs – cb. The annotated b- and y-ions of an identified observed spectrum are illustrated in Figure 1.

3. Previous work

Many database search scoring algorithms have been proposed, each of which is characterized by the scoring function they employ. These scoring functions have ranged from dot-products (X!Tandem [2] and Morpheus [28]), to cross-correlation based (XCorr [8]), to exact p-values computed over linear scores [19, 16]. Recently, DBNs have been used to substantially improve upon the accuracy of previous approaches.

In the first such DBN, Didea [25], the time series being modeled is the sequence of a peptide’s amino acids (i.e., an amino acid is observed in each frame) and the quantized observed spectrum is observed in each frame. In successive frames, the sequence of b- and y-ions are computed and used as indices into the observed spectrum via virtual evidence [24]. A hidden variable in the first frame, corresponding to the amount to shift the observed spectrum by, is then marginalized in order to compute a conditional log-likehood probability consisting of a foreground score minus a background score, similar in form to XCorr (described in Section 4.2.1). The resulting scoring function outperformed the most accurate scoring algorithms at the time (including MS-GF+, then called MS-GFDB) on a majority of datasets. However, parameter learning in the model was severely limited and inefficient; a single hyperparameter controlling the reweighting of peak intensities was learned via an expensive grid search, requiring repeated database searches over a dataset.

Subsequent work saw the introduction of DRIP [12, 13], a DBN with substantial parameter learning capabilities. In DRIP, the time series being modeled is the sequence of observed spectrum peaks (i.e., each frame in DRIP corresponds to an observed peak) and two types of prevalent phenomena are explicitly modeled via sequences of random variables: spurious observed peaks (called insertions) and absent theoretical peaks (called deletions). A large collection of Gaussians parameterizing the m/z axis are generatively learned, via expectation-maximization (EM) [4], and used to score observed peaks. DRIP then uses max-product inference to calculate the most probable sequences of insertions and deletions in order to score PSMs.

In practice, the majority of PSM scoring functions discussed are typically poorly calibrated, i.e., it is often difficult to compare the PSM scores across different spectra. In order to combat such poor calibration, postprocessors are commonly employed to recalibrate PSM scores [17, 26, 27]. In recent work, DRIP’s generative framework was further exploited to calculate highly accurate features based on the log-likelihood gradients of its learnable parameters. Combining these new gradient-based features with a popular kernel-based classifier for recalibrating PSM scores [17], the resulting Fisher kernel was shown to significantly improve postprocessing accuracy [14].

4. Didea

We now derive Didea’s scoring function in detail. The graph of Didea is displayed in Figure 2. Shaded variables are observed and unshaded variables are hidden (random). Groups of variables are collected into time instances called frames, where the first frame is called the prologue, the final frame is called the epilogue, and the chunk dynamically expands to fill all frames in between. Let 0 ≤ t ≤ l be an arbitrary frame. The amino acids of a peptide are observed in each frame after the prologue. The variable Mt successively accumulates the prefix masses of the peptide such that p(M0 = 0) = 1 and p(Mt = Mt–1 + m(xt)∣Mt–1, xt) = 1, while the variable Mt′ successively accumulates the suffix masses of the peptide such that p(Ml′=0)=1 and p(Mt′=Mt+1′+m(xt+1)∣Mt+1′,xt+1=1. Denoting the maximum spectra shift as L, the shift variable τ0 ∈ [−L, L] is hidden, uniform, and deterministically copied by its descendents in successive frames, such that p(τt=τ‒∣τ0=τ‒)=1 for t > 1.

Figure 2:

Figure 2:

Graph of Didea. Unshaded nodes are hidden, shaded nodes are observed, and edges denote deterministic functions of parent variables.

Let s∈Ro‒+1 be the binned observed spectrum, i.e., a vector of length o‒+1 whose ith element is s(i), where o‒ is the maximum observable discretized m/z value. Shifted versions of the tth b- and y-ion pair (where the shift is denoted by subscript) are deterministic functions of the shift variable as well as prefix and suffix masses, i.e., p(Bt=bτt(Mt,1)∣Mt,τt)=p(Bt=max(min(b(Mt,1)−τt,0),o‒)∣Mt,τt), p(Yt=yτt(m(xt+1:l),1)∣Mt′,τt)=p(Yt=max(min(y(m(xt+1:l),1)−τ,0),o‒)∣Mt′,τt), respectively. ξb and ξy are virtual evidence children, i.e., leaf nodes whose conditional distribution need not be normalized (only non-negative) to compute posterior probabilities in the DBN. A comprehensive overview of virtual evidence is available in [15]. ξb and ξy compare the b- and y-ions, respectively, to the observed spectrum, such that p(ξb∣Bt) = f(s(bτt (m(x1:t), 1))), p(ξy∣Yt) = f(s(yτt (m(xt+1:l), 1))), where f is a non-negative emission function.

Let 1{·} denote the indicator function. Didea’s log-likelihood is then p(τ0=τ‒,x,s)

=logp(τ0=τ‒)p(M0)p(M0′∣M1′,x1)p(Ml′)p(Ml∣Ml−1,x1)+log∏t=1l[p(τt∣τt−1)p(Mt∣Mt−1,xt)p(Mt′∣Mt+1′,xt+1)p(Bt∣Mt,τt)p(Yt∣Mt′,τt)p(ξb∣Bt)p(ξy∣Yt)]=logp(τ0=τ‒)+log∏t=1l−1(1{τt=τ‒∧Mt=m(x1:t)∧Mt′=m(xt+1:l)}p(Bt∣Mt,τt)p(Yt∣Mt′,τt)p(ξb∣Bt)p(ξy∣Yt))=logp(τ0=τ‒)+log∏t=1l−1p(ξb∣bτ‒(Mt,1))p(ξy∣yτ‒(Mt′,1))]=logp(τ0=τ‒)+∑t=1l−1(logf(sτ‒(b(m(x1:t),1)))+logf(sτ‒(y(m(xt+1:l),1)))).

In order to score PSMs, Didea computes the conditional log-likelihood

ψ(s,x)=logp(τ0=0∣x,s)=logp(τ0=0,x,s)−log∑τ‒=−LLp(τ0=τ‒)p(x,sτ‒∣τ0=τ‒)=logp(τ0=0,x,s)−log1∣τ0∣∑τ‒=−LLp(x,sτ∣τ=τ‒). (1)

As previously mentioned, ψ(s, x) is a foreground score minus a background score, where the background score consists of averaging over ∣τ0∣ shifted versions of the foreground score, much like the XCorr scoring function. Thus, Didea may be thought of as a probabilistic analogue of XCorr.

4.1. Convex Virtual Emissions for Bayesian networks

Consider an arbitrary Bayesian network where the observed variables are leaf nodes, as is common in a large number of time-series models such as hidden Markov models (HMMs), hierarchical HMMs [22], DBNs for speech recognition [5], hybrid HMMs/DBNs [3], as well as DRIP and Didea. Let E be the set of observed random variables, H be the hypothesis space composed of the cross-product of the n hidden discrete random variables in the network, and h ∈ H be an arbitrary hypothesis (i.e., an instantiation of the hidden variables). As is the case in Didea, often desired is the log-posterior probability logp(h∣E)=logp(h,E)p(E)=logp(h,E)∑h‒∈Hp(h,E)=log(h,E)−log∑h∈Hp(h)p(E∣h). Under general assumptions, we’d like to find emission functions for which log p(h∣E) is concave.

Assume p(h) and p(E∣h) are non-negative, that the emission density p(E∣h) is parameterized by θ (which we’d like to learn), and that there is a parameter θh to be learned for every hypothesis of latent variables (though if we have fewer parameters, parameter estimation becomes strictly easier). We make this parameterization explicit by denoting the emission distributions of interest as pθh (E∣h). Assume that pθh (E∣h) is smooth on R for all h ∈ H. Applying virtual evidence for such models, pθh (E∣h) need not be normalized for posterior inference (as well as Viterbi inference and comparative inference between sets of observations; an extensive review of virtual evidence may be found in [15]).

Given the factorization of the joint distribution described by the BN, the quantity pθh (h, E) = p(h)pθh (E∣h) may often be efficiently computed for any given h. Thus, the computationally difficult portion of log p(h∣E) is the calculation of the log-likelihood in the denominator, wherein all hidden variables are marginalized over. We therefore first seek emission functions for which the log-likelihood log p(E) = log ∑h∈H p(h)pθh (E∣h) is convex. For such emission functions, we have the following theorem.

Theorem 1. The unique convex functions of the form log ∑h∈H p(h)pθh (E∣h), such that (pθh′(E∣h))2−pθh″(E∣h)pθh(E∣h)=0, are log ∑h∈H p(h)pθh(E∣h) = log ∑h∈H αheβhθh, where αh = p(h)ah and ah, βh are hyperparameters.

The full proof of Theorem 1 is given in [15]. The nonlinear differential equation (pθh′(E∣h))2−pθh″(E∣h)pθh(E∣h)=0 describes the curvature of the desired emission functions and arises from the necessary and sufficient conditions for twice differentiable convex functions (i.e., the Hessian must be p.s.d.) and the Cauchy-Schwarz inequality. Particular values of the hyperparameters ah and βh correspond to unique initial conditions for this nonlinear differential equation. Note that when αh = 1, pθh (E∣h) = eθh, we have the well-known log-sum-exp (LSE) convex function. Thus, this result generalizes the LSE function to a broader class of convex functions.

We call the unique class of convex functions which arise from solving the nonlinear differential in Theorem 1, pθh (E∣h) = aheβhθh, Convex Virtual Emissions (CVEs). Note that utilizing CVEs, maximimum likelihood estimation (i.e., argmaxθ – log ∑h∈H p(h)pθh (E∣h)) is thus concave and guaranteed to converge to a global optimum. Furthermore, and most importantly for Didea, we have the following result for the conditional log-likelihood (the full proof of which is in [15]).

Corollary 1.1. For convex log p(E) = log ∑h∈H p(h)pθh (E∣h) such that (pθh′(E∣h))2−pθh″(E∣h)pθh(E∣h)=0, the log-posterior log pθ(h∣E) is concave in θ.

Thus, utilizing CVEs, conditional maximum likelihood estimation is also rendered concave.

4.2. CVEs in Didea

In [25], the virtual evidence emission function to score peak intensities was fλ(s(i)) = 1 – λe−λ + λe−λ(1–s(i)). Under this function, Didea was shown to perform well on a variety of datasets. However, this function is non-convex and does not permit efficient parameter learning; although only a single model parameter, λ, was trained, learning required a grid search wherein each step consisted of a database search over a dataset and subsequent target-decoy analysis to assess each new parameter value. While this training scheme is already costly and impractical, it quickly becomes infeasible when looking to learn more than a single model parameter.

We use CVEs to render Didea’s conditional log-likelihood concave given a large number of parameters. To efficiently learn a distinct observation weight θτ for each spectral shift τ ∈ [–L, L], we thus utilize the emission function fθτ (s(i)) = eθτs(i). Denote the set of parameters per spectra shift as θ = [Θ−L,…, θL}. Due to the concavity of Equation 1 using fθτ under Corollary 1.1, given n PSM training pairs (s1, x1),…, (sn, xn), the learned parameters θ∗=argmaxθ∑i=1nψθ(si,xi) are guaranteed to converge to a global optimum. Further analysis of Didea’s scoring function under this new emission function may be found in [15], including the derivation of the new model’s gradients (i.e., conditional Fisher scores).

4.2.1. Relating Didea’s conditional log-likelihood to XCorr using CVEs

XCorr [8], the very first database search scoring function for peptide identification, remains one of the most widely used tools in the field today. Owing to its prominence, XCorr remains an active subject of analysis and continuous development [20, 23, 7, 6, 16, 21, 9, 14]. As previously noted, the scoring functions of XCorr and Didea share several similarities in form, where, in fact, the former served as the motivating example in [25] for both the design of the Didea model and its posterior-based scoring function. While cosmetic similarities have thus far been noted, the reparameterization of Didea’s conditional log-likelihood using CVEs permits the derivation of an explicit relationship between the two.

Let u be the theoretical spectrum of peptide x. As with Didea, let L be the maximum spectra shift considered and, for shift τ, denote a vector shift via subscript, such that sτ is the vector of observed spectrum elements shifted by τ units. In order to compare u and s, XCorr is thus computed as XCorr(s,x)=uTs−12L+1∑τ=−LLuTsτ. Intuitively, the cross-correlation background term is meant to penalize overfitting of the theoretical spectrum. Under the newly parameterized Didea conditional log-likelihood described herein, we have the following theorem explicitly relating the XCorr and Didea scoring functions.

Theorem 2. Assume the PSM scoring function ψ(s, x) is that of Didea (i.e., Equation 1) where the emission function fθτ(s(i)) has uniform weights θi = θj, for i, j ∈ [–L, L]. Then ψ(s,x)≤O(XCorr(s,x)).

The full proof of Theorem 2 may be found in [15]. Thus, Didea’s scoring function effectively serves to lower bound XCorr. This opens possible avenues for extending the learning results detailed herein to the widely used XCorr function. For instance, a natural extension is to use a variational Bayesian inference approach and learn XCorr parameters through iterative maximization of the Didea lower bound, made efficient by the concavity of new Didea model derived in this work.

4.3. Faster Didea sum-product inference

We successively improved Didea’s inference time when conducting a database search using the intensive charge-varying model (discussed in [15]). Firstly, we removed the need for a backward pass by keeping track of the foreground log-likelihood during the forward pass (which computes the background score, i.e., the probability of evidence in the model). Next, by exploiting the symmetry of the spectral shifts, we cut the effective cardinality of τ in half during inference. While this requires twice as much memory in practice, this is not close to being prohibitive on modern machines. Finally, a large portion of the speedup was achieved by offsetting the virtual evidence vector by ∣τ∣ and pre/post buffering with zeros and offsetting each computed b- and y-ion by ∣τ∣. Under this construction, the scores do not change, but, during inference, we are able to shift each computed b- and y-ion by ±τ without requiring any bound checking. Hashing virtual evidence bin values by b-/y-ion value and τ was also pursued, but did not offer any runtime benefit over the aforementioned speedups (due to the cost of constructing the hash table per spectrum).

5. Results

In practice, assessing peptide identification accuracy is made difficult by the lack of ground-truth encountered in real-world data. Thus, it is most common to estimate the false discovery rate (FDR) [1] by searching a decoy database of peptides which are unlikely to occur in nature, typically generated by shuffling entries in the target database [18]. For a particular score threshold, t, the FDR is calculated as the proportion of decoys scoring better than t to the number of targets scoring better than t. Once the target and decoy PSM scores are calculated, a curve displaying the FDR threshold versus the number of correctly identified targets at each given threshold may be calculated. In place of FDR along the x-axis, we use the q-value [18], defined to be the minimum FDR threshold at which a given score is deemed to be significant. As many applications require a search algorithm perform well at low thresholds, we only plot q ∈ [0, 0.1].

The benchmark datasets and search settings used to recently evaluate the DRIP Fisher kernel in [14] are adapted in this work. The charge-varying Didea model (which integrates over multiple charge states, further described in [15]) with concave emissions (described in Section 4.2) was used to score and rank database peptides. Concave Didea parameters were learned using the high-quality PSMs used to generatively train the DRIP model in [13] and gradient ascent. Didea’s newly trained database-search scoring function is benchmarked against the Didea model from [25] trained using a costly grid search for a single parameter (denoted as “Didea-0”) and four other state-of-the-art scoring algorithms: DRIP, MS-GF+, XCorr p-values, and XCorr.

DRIP searches were conducted using the DRIP Toolkit and the generatively trained parameters described in [12, 13]. MS-GF+, one of the most accurate search algorithms in wide-spread use, was run using version 9980, with PSMs ranked by E-value. XCorr and XCorr p-value scores were collected using Crux v2.1.17060. All database searches were run using a ±3.0Th mass tolerance, XCorr flanking peaks not allowed in Crux searches, and all search algorithm settings otherwise left to their defaults. Peptides were derived from the protein databases using trypsin cleavage rules without suppression of proline and a single fixed carbamidomethyl modification was included.

The resulting database-search accuracy plots are displayed in Figure 3. The trained Didea model outperforms all competitors across all presented datasets; compared to highly accurate scoring algorithms DRIP and MS-GF+, the trained Didea scoring function identifies 16% more spectra than DRIP and 17.4% more spectra than MS-GF+, at a strict FDR of 1% averaged over the presented datasets. This high-level performance is attributable to the expanded and efficient parameter learning framework, which greatly improves upon the limited parameter learning capabilities of the original Didea model, identifying 9.8% more spectra than Didea-0 at a strict FDR of 1% averaged over the presented datasets.

Figure 3:

Figure 3:

Database search accuracy plots measured by q-value versus number of spectra identified for worm (C. elegans) and yeast (Saccharomyces cerevisiae) datasets. All methods are run with as equivalent settings as possible. The Didea charge-varying model (described in [15]) was used to score PSMs, with “Didea” denoting the model trained per charge state using the concave framework described in Section 4.2 and “Didea-0” denoting the model from [25] trained using a grid search. DRIP, another DBN-based scoring function, was run using the generatively learned parameters described in [13].

5.1. Conditional Fisher kernel for improved discriminative analysis

Facilitated by Didea’s effective parameter learning framework, we look to leverage gradient-based PSM information to aid in discriminative postprocessing analysis. We utilize the same set of features as the DRIP Fisher kernel [14]. However, in order to measure the relative utility of the gradients under study, we replace the DRIP log-likelihood gradients with Didea gradient information (derived in [15]). These features are used to train an SVM classifier, Percolator [17], which recalibrates PSM scores based on the learned decision boundary between input targets and decoys. Didea’s resulting conditional Fisher kernel is benchmarked against the DRIP Fisher kernel and the previously benchmarked scoring algorithms using their respective standard Percolator features sets.

DRIP Kernel features were computed using the customized version of the DRIP Toolkit from [14]. MS-GF+ Percolator features were collected using msgf2pin and XCorr/XCorr p-value features collected using Crux. For the resulting postprocessing results, the trained Didea scoring function outperforms all competitors, identifying 12.3% more spectra than DRIP and 13.4% more spectra than MS-GF+ at a strict FDR of 1% and averaged over the presented datasets. The full panel of results is displayed in [15]. Compared to DRIP’s log-likelihood gradient features, the conditional log-likelihood gradients of Didea contain much richer PSM information, thus allowing Percolator to better distinguish target from decoy PSMs for much greater recalibration performance.

5.2. Optimized exact sum-product inference for improved Didea runtime

Implementing the speedups to exact Didea sum-product inference described in Section 4.3, we benchmark the optimized search algorithm using 1,000 randomly sampled spectra (with charges varying from 1+ to 3+) from the Worm-1 dataset and averaged database-search times (reported in wall clock time) over 10 runs. The resulting runtimes are listed in Table 1. DRIP was run using the DRIP Toolkit and XCorr p-values were collected using Crux v2.1.17060. All benchmarked search algorithms were run on the same machine with an Intel Xeon E5-2620 and 64GB RAM. The described optimizations result in a 64.2% runtime improvement, and brings search time closer to less accurate, but faster, search algorithms.

Table 1:

Database search runtimes per spectrum, in seconds, searching 1,000 worm spectra randomly sampled from the Worm-1 dataset. “Didea-0” is the implementation of Didea used in [25] and “Didea Opt” is the speed-optimized implementation described herein. All reported search algorithm runtimes were averaged over 10 runs.

Didea-0 Didea Opt. XCorr p-values DRIP
runtime 19.1175 6.8535 2.2955 143.4712

6. Conclusions and future work

In this work, we’ve derived a widely applicable class of Bayesian network emission distributions, CVEs, which naturally generalize the convex log-sum-exp function and carry important theoretical properties for parameter learning. Using CVEs, we’ve substantially improved the parameter learning capabilities of the DBN scoring algorithm, Didea, by rendering its conditional log-likelihood concave with respect to a large set of learnable parameters. Unlike previous DBN parameter learning solutions, which only guarantee convergence to a local optimum, the new learning framework thus guarantees global convergence. Didea’s newly trained database-search scoring function significantly outperforms all state-of-the-art scoring algorithms on the presented datasets. With efficient parameter learning in hand, we derived the gradients of Didea’s conditional log-likelihood and used this gradient information in the feature space of a kernel-based discriminative postprocessor. The resulting conditional Fisher kernel once again outperforms the state-of-the-art on all presented datasets, including a highly accurate, recently proposed Fisher kernel. Furthermore, we successively optimized Didea’s message passing schedule, leading to DBN analysis times two orders of magnitude faster than other leading DBN tools for MS/MS analysis. Thus, the presented results improve upon all aspects of state-of-the-art DBN analysis for MS/MS. Finally, using the new learning framework, we’ve proven that Didea is proportionally lower bounds the widely used XCorr scoring function.

There are a number of exciting avenues for future work. Considering the large amount of PSM information held in the gradient space of Didea’s conditional log-likelihood, we plan on pursuing kernel-based approaches to peptide identification using the Hessian of the scoring function. This is especially exciting given the high degree of recalibration accuracy provided by Percolator, a kernel-based post-processor. Using a variational approach, we also plan on investigating parameter learning options for XCorr given the Didea lower bound and the concavity of Didea’s parameterized scoring function. Finally, in perhaps the most ambitious plan for future work, we plan to further build upon Didea’s parameter learning framework by learning distance matrices between the theoretical and observed spectra. Such matrices naturally generalize the class of CVEs derived herein.

Supplementary Material

supplementary file

Acknowledgments:

This work was supported by the National Center for Advancing Translational Sciences (NCATS), National Institutes of Health, through grant UL1 TR001860.

Contributor Information

John T. Halloran, Department of Public Health Sciences University of California, Davis, jthalloran@ucdavis.edu

David M. Rocke, Department of Public Health Sciences University of California, Davis, dmrocke@ucdavis.edu

References

  • [1].Benjamini Y and Hochberg Y. Controlling the false discovery rate: a practical and powerful approach to multiple testing. Journal of the Royal Statistical Society B, 57:289–300, 1995. [Google Scholar]
  • [2].Craig R and Beavis RC. Tandem: matching proteins with tandem mass spectra. Bioinformatics, 20:1466–1467, 2004. [DOI] [PubMed] [Google Scholar]
  • [3].Dahl George E, Yu Dong, Deng Li, and Acero Alex. Context-dependent pre-trained deep neural networks for large-vocabulary speech recognition. IEEE Transactions on audio, speech, and language processing, 20(1):30–42, 2012. [Google Scholar]
  • [4].Dempster AP, Laird NM, and Rubin DB. Maximum likelihood from incomplete data via the EM algorithm. Journal of the Royal Statistical Society. Series B (Methodological), 39:1–22, 1977. [Google Scholar]
  • [5].Deng Li. Dynamic speech models: theory, algorithms, and applications. Synthesis Lectures on Speech and Audio Processing, 2(1):1–118, 2006. [Google Scholar]
  • [6].Diament Benjamin J. and Noble William Stafford. Faster SEQUEST searching for peptide identification from tandem mass spectra. Journal of Proteome Research, 10(9):3871–3879, 2011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [7].Eng JK, Fischer B, Grossman J, and MacCoss MJ. A fast SEQUEST cross correlation algorithm. Journal of Proteome Research, 7(10):4598–4602, 2008. [DOI] [PubMed] [Google Scholar]
  • [8].Eng JK, McCormack AL, and Yates JR III. An approach to correlate tandem mass spectral data of peptides with amino acid sequences in a protein database. Journal of the American Society for Mass Spectrometry, 5:976–989, 1994. [DOI] [PubMed] [Google Scholar]
  • [9].Eng Jimmy K, Jahan Tahmina A, and Hoopmann Michael R. Comet: An open-source ms/ms sequence database search tool. Proteomics, 13(1):22–24, 2013. [DOI] [PubMed] [Google Scholar]
  • [10].Geer Lewis Y., Markey Sanford P., Kowalak Jeffrey A., Wagner Lukas, Xu Ming, Maynard Dawn M., Yang Xiaoyu, Shi Wenyao, and Bryant Stephen H.. Open mass spectrometry search algorithm. Journal of Proteome Research, 3(5):958–964, 2004. [DOI] [PubMed] [Google Scholar]
  • [11].Halloran John T. Analyzing tandem mass spectra using the drip toolkit: Training, searching, and post-processing In Data Mining for Systems Biology, pages 163–180. Springer, 2018. [DOI] [PubMed] [Google Scholar]
  • [12].Halloran John T., Bilmes Jeff A., and Noble William S.. Learning peptide-spectrum alignment models for tandem mass spectrometry In Uncertainty in Artificial Intelligence (UAI), Quebec City, Quebec Canada, July 2014. AUAI. [PMC free article] [PubMed] [Google Scholar]
  • [13].Halloran John T, Bilmes Jeff A, and Noble William S. Dynamic bayesian network for accurate detection of peptides from tandem mass spectra. Journal of Proteome Research, 15(8):2749–2759, 2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [14].Halloran John T and Rocke David M. Gradients of generative models for improved discriminative analysis of tandem mass spectra. In Advances in Neural Information Processing Systems, pages 5728–5737, 2017. [PMC free article] [PubMed] [Google Scholar]
  • [15].Halloran John T. and Rocke David M.. Learning Concave Conditional Likelihood Models for Improved Analysis of Tandem Mass Spectra: Supplementary Material. In Advances in Neural Information Processing Systems, 2018. [PMC free article] [PubMed] [Google Scholar]
  • [16].Howbert J Jeffry and Noble William S. Computing exact p-values for a cross-correlation shotgun proteomics score function. Molecular & Cellular Proteomics, pages mcp–O113, 2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [17].Käll L, Canterbury J, Weston J, Noble WS, and MacCoss MJ. A semi-supervised machine learning technique for peptide identification from shotgun proteomics datasets. Nature Methods, 4:923–25, 2007. [DOI] [PubMed] [Google Scholar]
  • [18].Keich Uri, Kertesz-Farkas Attila, and Noble William Stafford. Improved false discovery rate estimation procedure for shotgun proteomics. Journal of proteome research, 14(8):3148–3161, 2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [19].Kim Sangtae and Pevzner Pavel A. Ms-gf+ makes progress towards a universal database search tool for proteomics. Nature communications, 5, 2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [20].Klammer AA, Park CY, and Noble WS. Statistical calibration of the sequest XCorr function. Journal of Proteome Research, 8(4):2106–2113, 2009. PMC2807930. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [21].McIlwain Sean, Tamura Kaipo, Kertesz-Farkas Attila, Grant Charles E, Diament Benjamin, Frewen Barbara, Howbert J Jeffry, Hoopmann Michael R, Käll Lukas, Eng Jimmy K, et al. Crux: rapid open source protein tandem mass spectrometry analysis. Journal of proteome research, 2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [22].Murphy Kevin P and Paskin Mark A. Linear-time inference in hierarchical hmms. In Advances in neural information processing systems, pages 833–840, 2002. [Google Scholar]
  • [23].Park CY, Klammer AA, Käll L, MacCoss MP, and Noble WS. Rapid and accurate peptide identification from tandem mass spectra. Journal of Proteome Research, 7(7):3022–3027, 2008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [24].Pearl J. Probabilistic Reasoning in Intelligent Systems : Networks of Plausible Inference. Morgan Kaufmann, 1988. [Google Scholar]
  • [25].Singh Ajit P., Halloran John, Bilmes Jeff A., Kirchoff Katrin, and Noble William S.. Spectrum identification using a dynamic bayesian network model of tandem mass spectra In Uncertainty in Artificial Intelligence (UAI), Catalina Island, USA, July 2012. AUAI. [PMC free article] [PubMed] [Google Scholar]
  • [26].Spivak M, Weston J, Bottou L, Käll L, and Noble WS. Improvements to the Percolator algorithm for peptide identification from shotgun proteomics data sets. Journal of Proteome Research, 8(7):3737–3745, 2009. PMC2710313. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [27].Spivak M, Weston J, Tomazela D, MacCoss MJ, and Noble WS. Direct maximization of protein identifications from tandem mass spectra. Molecular and Cellular Proteomics, 11(2):M111.012161, 2012. PMC3277760. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [28].Wenger CD and Coon JJ. A proteomics search algorithm specifically designed for high-resolution tandem mass spectra. Journal of proteome research, 2013. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

supplementary file

RESOURCES