Retention time alignment across large number of runs is important for reproducibility of SWATH-MS runs. We developed a hybrid RT alignment approach to establish correspondence among MS2-peaks. After testing on a gold-standard validation dataset, we were also able to align peaks from large-scale human plasma runs, which have elution-order-swapped peaks, with 98% accuracy compared to 76% by the existing method.
Keywords: Targeted mass spectrometry, Plasma or serum analysis, Chromatography, Bioinformatics software, Clinical data, Data-independent acquisition, Retention time alignment
Graphical Abstract
Highlights
Retention time shift can lead to inversion of elution order of peptides.
Global alignment methods are suboptimal for alignment of distant runs.
DIAlignR employs hybrid (global + local) RT alignment approach.
DIAlignR can align swapped peaks accurately across distant runs.
Abstract
Sequential Windowed Acquisition of All Theoretical Fragment Ion Mass Spectra (SWATH-MS) is widely used for proteomics analysis given its high throughput and reproducibility, but ensuring consistent quantification of analytes across large-scale studies of heterogeneous samples such as human plasma remains challenging. Heterogeneity in large-scale studies can be caused by large time intervals between data acquisition, acquisition by different operators or instruments, and intermittent repair or replacement of parts, such as the liquid chromatography column, all of which affect retention time (RT) reproducibility and, successively, performance of SWATH-MS data analysis. Here, we present a novel algorithm for RT alignment of SWATH-MS data based on direct alignment of raw MS2 chromatograms using a hybrid dynamic programming approach. The algorithm does not impose a chronological order of elution and allows for alignment of elution-order-swapped peaks. Furthermore, allowing RT mapping in a certain window around a coarse global fit makes it robust against noise. On a manually validated dataset, this strategy outperformed the current state-of-the-art approaches. In addition, on real-world clinical data, our approach outperformed global alignment methods by mapping 98% of peaks compared with 67% cumulatively. DIAlignR reduced alignment error up to 30-fold for extremely distant runs. The robustness of technical parameters used in this pairwise alignment strategy is also demonstrated. The source code is released under the BSD license at https://github.com/Roestlab/DIAlignR.
In translational research, protein biomarkers and therapeutic targets are usually discovered by data-driven methods such as by linking protein abundance patterns with disease conditions. A large sample cohort is essential in these studies as substantial biological variability exists in the population and enough statistical power is required to identify disease-specific events (1, 2). Blood plasma is a good source of clinical information of a patient as it can be obtained noninvasively and proteins from affected tissue can potentially leak into the blood. Plasma samples, unfortunately, are highly challenging for proteomic analysis due to the diversity of peptides within the samples and high dynamic range of plasma proteins (3). Therefore, quantification of plasma proteins requires a highly reproducible reduction of complexity and measurement within a wide dynamic range. The situation is exacerbated across large-scale studies, which makes development of plasma biomarker challenging (2, 3).
In the past two decades, mass spectrometry (MS)-based proteomics has made rapid advances with a high degree of innovation in obtaining identification and quantification of proteins in various biological samples (2, 4). Targeted proteomics methods, specifically selected reaction monitoring (SRM), can provide high reproducibility across multiple runs. However, it is limited by low throughput and can measure abundance of only a few tens to low hundreds of proteins per study (1, 5).
Recently, we developed SWATH-MS, an approach for targeted analysis of data-independent acquisition (DIA)1 data, which can reproducibly quantify larger sets of peptides in large-scale clinical studies (5, 6). Implementing this method in the clinical field could provide comprehensive characterization of samples across various conditions. It has allowed reproducible quantification of about 2,000 proteins in a biomarker study on tumorous kidney and healthy tissues (1, 7) and has the potential to record a molecular inventory of samples comprising a large number of proteotypes, thus making longitudinal monitoring of a patient possible (1).
In DIA mode, precursors in MS1 are selected for a predetermined m/z range and fragmented nonspecifically. This produces multiplexed MS2 spectra of fragment ions of all selected precursors. The DIA data can be analyzed by using either a library-based approach (5, 8) or a library-free approach (9). Library-based approaches have shown to be capable of accurate peptide and protein quantification in complex samples (5, 10, 11). Nonetheless, obtaining reproducible and robust analysis of clinical plasma samples is challenging even with SWATH-MS, as large variations in the number of proteins in individual runs are observed (5, 10, 11). One of the major factors driving variability is the retention time (RT) deviation between assay library and plasma peptides' elution profiles. In experiments carried out by Nigjeh and coworkers, most of the peptides had RT variation of about 10 min between technical replicates, affecting the robustness of peptide quantification (3). This variation, if left uncorrected, may also result in incorrect and inconsistent identification of the peptides (3).
Current DIA data analysis software use iRT peptides to calculate a monotonic RT function (linear regression (12) or segmented regression (13)) with respect to a library. Using this mapping, extracted ion chromatograms (XICs) from MS2 spectra are obtained for peak picking. Software usually finds multiple potential peak groups in XICs, which makes downstream analysis challenging. By establishing peak correspondence among runs, correct peptide elution time can be determined for each MS run (5, 14). A shift in RT is often considered as a system-level variation, which is modeled using a monotonic function between two runs (14). However, this assumption may not always be accurate, and specifically among distant runs, singularities specific to a single peptide are common that produce relative peak switching where the elution order of two peptides is swapped across two runs (14–16). This phenomenon is increasingly likely in larger studies and very probable in large-scale clinical studies in which data acquisition happens over a span of years.
There are many methods in the literature for establishing correspondence in RTs. Current RT alignment algorithms in metabolomics and proteomics were mostly developed before the development of SWATH-MS (14) and, therefore, rely on either MS1 chromatograms (17–23), picked features (24–27), or a combination of both (28, 29). These algorithms usually find a global pairwise alignment function using dynamic programming on raw MS1 chromatograms (20–23, 28) or on feature lists (24, 25), which include methods using band constraints. For complex samples, so-called “landmark peaks” (28, 29) have been used to improve RT alignment accuracy. However, most of these approaches rely on MS1 data, and the resulting alignment functions are influenced by all constituent peptides. In SWATH-MS runs, MS2 data have high signal-to-noise ratio and are reproducible across multiple runs. Previous research on RT alignment of SWATH runs has relied on MS2 feature finding software. These either align MS2 features using bipartite matching (16) or use the features to calculate a global function by local weighted regression (LOESS) (30) or by a kernel density approach (5, 31) (see supplemental Section S1). These approaches, however, provide suboptimal results in case of high noise, missing features, or when feature detection algorithms malfunction. Furthermore, the global monotone functions do not account for peptide switching as a monotone function disallows RT reversal between any two peptides (16).
Here we present DIAlignR, an RT alignment algorithm that addressed these shortcomings of previous methods. Our algorithm does not require features and is capable of directly aligning the raw multiplexed MS2 chromatographic traces from targeted proteomics data. Our approach uses dynamic programming to obtain an optimal mapping between chromatograms that contain local information as multiple, close-by peaks around the eluted peak group. Independent RT alignment of each precursor facilitates the alignment of elution-order-swapped peaks. Our method is also capable of using a global whole-run alignment for guidance, making it robust against noise. Thus, DIAlignR can flexibly handle user preference of selecting between extremes of global and local alignment.
We provide free access to our source code and our R-package at https://github.com/Roestlab/DIAlignR. We tested our tool on a manually validated dataset of over 7,000 chromatograms and demonstrated improved performance over existing methods. We also tested it on 24 randomly selected blood plasma runs, selected from a heterogeneous cohort measured across many months. For both datasets, our algorithm outperformed global alignment methods and was capable of correcting misannotations introduced by feature detection algorithms. For very distant runs, it could also precisely align switched peaks, which is not possible using global alignment methods (8, 12).
MATERIALS AND METHODS
Alignment algorithms are useful for mapping signals, which are close to noise, over several runs. Few datasets exist that can be used for benchmarking as often the ground truth is unknown.
Validation Dataset
For benchmarking, we used a previously published dataset (8) of 16 SWATH runs from Streptococcus pyogenes bacterial strains. In these runs, 452 randomly selected precursors were manually annotated (5). Out of these, eight precursors had annotation for less than two runs and were thus removed. Seven other precursors from the remaining set had annotated peaks outside of the XICs, making them inapplicable and, hence, were removed from benchmarking (see supplemental Section S2). Therefore, 437 annotated precursors were considered for performance testing of the developed DIAlignR tool against global alignment approaches. Annotated RTs of the precursors are available in the supplemental Table 1. Since annotated peaks were selected randomly from the validation dataset, this dataset had 4.9% peaks with signal-to-noise ratio less than 1 (supplemental Fig. 1A).
Large-Scale Human Plasma Dataset
We performed SWATH-MS on 975 human plasma samples in 12 batches from February 17, 2017 to July 20, 2017 (IRB 23602). Tryptic peptides of plasma samples were separated on a NanoLC 425 System (SCIEX, Framingham, MA). 5 μl/min flow was used with trap-elute setting using a 0.5 × 10-mm ChromXP (SCIEX). LC gradient was set to a 43-min gradient from 4–32% B with 1-h total run. Mobile phase A was 100% water with 0.1% formic acid. Mobile phase B was 100% acetonitrile with 0.1% formic acid. 8-μg of undepleted plasma was loaded on a 15-cm ChromXP column. MS analysis was performed using SWATH Acquisition on a TripleTOF 6600 System equipped with a DuoSpray Source and 25-μm inner diameter electrode (SCIEX). Variable Q1 window SWATH acquisition methods (100 windows) were built in high-sensitivity MS/MS mode with Analyst TF Software 1.7.
To reduce the number of pairwise alignments, randomly, two runs from each batch were selected; their metadata and OpenSWATH output files are described in the supplemental Table 2. Since peaks were not visually validated, only peaks with a low false discovery rate score were considered for performance evaluation. Therefore, peaks of target precursors with a q-value less than 10−3 (m-score < 1e-03, peak-group rank = 1) were selected, and precursors were required to be present in all 24 runs. Successively, fragment-ion chromatograms of the selected 406 precursors were extracted and parsed using OpenSWATH (8, 32) and “mzR” package (33) with default parameters. The RT of the peptides in all 24 runs is provided in the supplemental Table 3. The chromatograms are available on PeptideAtlas (ftp.peptideatlas.org PASS01280:KQ2592b).
A tabular description of both datasets is provided as Table I.
Table I. Summary description of validation and human plasma datasets.
Validation dataset | Human plasma dataset | |
---|---|---|
Biological sample | S. pyogenes strain SF370 | Plasma from blood samples |
Mass-spectrometer | SciEX 5600 TripleTOF | SciEX 6600 TripleTOF |
LC-gradient | Linear | Linear |
Total run time | 135 minutes | 55 minutes |
LC-column replaced | No | Yes |
Mass spectrometer repaired | No | Yes (replaced quadrupole after 7 batches) |
Data acquisition date | August 8, 2012-August 9, 2012 | February 17, 2017-July 20, 2017 |
Number of runs acquired | 16 | 975 |
Number of batches | 1 | 12 |
Runs selected for alignment | 16 | 24 |
Total number of run pairs | 120 | 276 |
Software used for feature detection and XIC extraction | OpenSWATH | OpenSWATH |
Number of common precursors selected per run for alignment | 437 | 406 |
Total number of alignments | 49,505 | 112,056 |
Manual Annotation | Yes (Skyline) | No |
Chromatogram Alignment Algorithm
In targeted proteomics or SWATH-MS experiments, each precursor is measured using one or more fragment ions (transitions). In general, we recommend using at least six fragment ions for DIA/SWATH-MS analysis (4). For each fragment ion, an extracted-ion chromatogram (XIC or chromatogram) was obtained. A collection of one or more chromatograms is called a “chromatogram group,” which maps to the given precursor. If a precursor was measured using n transitions, then for each run, the respective chromatogram group consisted of n XICs, which was the raw data for our alignment procedure.
A chromatogram group can be considered a collection of time-series signals. The similarity of the time-series signals between chromatogram groups from runA (ChromA) and runB (ChromB) can be calculated. If a precursor has n fragment ions and each XIC has I and J time points in ChromA and ChromB, respectively, as shown in Fig. 1A, the similarity between all time points can be represented as a similarity matrix s. Thus,
The function ƒ is termed as a similarity measure and can be selected by the user (see below).
Similarity Measure
In our R package DIAlignR, we implemented several similarity measures that have been suggested in previous literature for chromatograms such as covariance, dot product, Pearson's correlation, spectral angle, and Euclidean distance (8, 28). We observed that the dot product between all I and J data points provided information about both magnitude and angle between two time points, hence segregating elution signal from the background. If each data point of the chromatogram is represented by a vector in n dimensional space (n = 3 in Fig. 1A), the resulting dot product of the two vectors will be as shown in Fig. 1B. Thus, with dot-product similarity, the matrix s from all vectors of both chromatogram groups is defined as
where i ϵ {1, ⋯, I} and j ϵ {1, ⋯, J} represent the index of vectors in ChromA and ChromB, respectively. A color-coded similarity matrix of size I × J is shown in Fig. 1C. However, to reduce the impact of noise peaks, a modified dot product, termed as “masked dot-product,” was used where higher similarity scores were checked again for spectral angle similarity (see supplemental Section S5). A path in the resulting similarity matrix was calculated using dynamic programming, which directly translates to an RT alignment that mapped indices/time from ChromA to ChromB and vice versa.
Penalizing Similarity Matrix with Global Alignment
While dynamic programming will find a path of the highest cumulative score, in some instances, the score is driven by alignment to noise and can lead to a solution where the alignment is highly divergent from a global linear or nonlinear alignment. To make the alignment robust against noise and in order to incorporate information from the global context, we added an option in our algorithm to modify the similarity matrix s (Fig. 1D) using feature-based global alignment such as LOESS. Residual standard error of the fit was utilized to define a region of noninterference in the similarity matrix and values outside of it were punished with a negative score (see supplemental Section S5). This allowed us to find an alignment path within a reasonable time window relative to global prediction and avoid large deviations.
Overlap Alignment with Affine Gap Penalty
The optimal alignment path was found by recursively calculating all possible optimal paths from the start of the similarity matrix (1, 1) to the end of it (I, J) using dynamic programming (34). Chromatogram groups ChromA and ChromB may not have end-to-end mapping as these could be partial chromatograms that were extracted around the expected peptide elution (as determined by indexed retention time [iRT] peptides, for example). Therefore, overlap alignment instead of a global alignment of MS2 chromatogram groups was employed. This approach allowed free end gaps and thus, allowed sliding chromatograms freely without incurring any gap penalty for it.
To widen or shrink chromatogram peaks, a gap of unit length is a reasonable choice as it will distribute gaps along the complete peak. Therefore, an affine gap penalty scheme was utilized with higher gap penalty for a gap length of more than one. In this approach, three matrices (Matrix M, A, B) were defined, which recursively calculated a score for gaps of more than unit length (34). The overlap alignment path using affine gap penalty is presented in Fig. 1E. The running time of such alignment is O(max(i,j)3). A heuristic data-driven approach is employed to obtain suitable affine gap penalties from the similarity matrix (see supplemental Section S5). Mapping the alignment path to the initial time values provides aligned chromatograms as depicted in Fig. 1F.
Running Time for Alignment
Alignment of MS2 chromatograms of each peptide/precursor has a running time of order O(max(I, J)3); however, chromatograms of different precursors can be aligned independently. Therefore, we employed parallelization for different peptides to obtain a much faster speed for complete run-time mapping.
Optimization of Algorithm Parameters
There are various parameters used in DIAlignR. A description of these parameters is available in supplemental Section S5. We employed a validation dataset for parameter optimization and used the number of peaks aligned within half chromatographic peak-width and cumulative RT alignment error as an optimization target.
Performance Metrics for Comparison with Current Algorithms
We used the manually validated dataset (5) to compare DIAlignR to the current state-of-the-art method (e.g. TRansfer of Identification Confidence [TRIC] (5)), which utilizes a set of high confidence peaks (“anchor peptides”) to compute a linear or nonlinear alignment function that transforms RT values from run1 to run2. We chose LOESS (local regression) as well as linear regression for evaluation. For LOESS, both optimized spanvalue from cross-validation (as used in TRIC) and default spanvalue (= 0.75) of the R software environment were tested (30). For LOESS fit, ⅓ cross-validation was performed to obtain the optimum span value between two runs (5, 30). Steps to obtain a global fit (monotone mapping function) are detailed in the supplemental Section S3 and S4.
RT error was calculated by comparing against the manual annotation of the S. pyogenes dataset (5), and the resulting distribution of the number of peptides aligned within a certain RT tolerance was used as a measure of overall accuracy of the alignment algorithm. Manual annotations are not available for the human plasma dataset; therefore, the high-quality results (peaks with low false discovery rate cutoff) of OpenSWATH were used for benchmarking.
Results
Parameter Optimization
Here, we present an algorithm for multitrace chromatographic alignment that only uses raw MS2 data from targeted proteomics or DIA experiments for RT alignment. To optimize the performance of our algorithm, we investigated the effect of algorithmic parameters on the accuracy of the alignment of runs from the validation dataset (5). First, we evaluated the performance for different similarity measures of chromatogram groups. The dot product masked with spectral angle (see supplemental Section S5) as a similarity measure provided the highest fraction of peptides aligned for all 120 possible run pairs (Fig. 2A). Within an RT error tolerance of half-peak width (here: 15.3 s), this similarity measure aligned 94.33% of annotated peaks with the highest area under the curve (AUC) of all approaches (see supplemental Tables 7 and 8).
We then investigated the effect of the gap penalty used in dynamic programming. In DIAlignR, the gap penalty is calculated heuristically as a fixed quantile value of the distribution of similarity scores. We found that the selection of quantile value did not have a considerable impact on the percentage of peaks aligned within a certain RT tolerance (Fig. 2B). From the figure, 20th to 90th quantile values yielded approximate 95.6% of aligned peaks within half-peak width. The effect of gapQuantile was less pronounced for wider RT tolerance. For further analysis, the 65th quantile was selected as the base gap penalty for chromatogram alignment. For the affine gap penalty, a gap opening factor of 0.125 was used, while a gap extension factor of 40 was considered (see supplemental Section S5).
We next investigated the impact of the number of transitions on the alignment (see supplemental Section S5 and supplemental Fig. 10A). We found that, as the number of fragment ions increased, alignment accuracy improved, with the best alignment 94.3% from using all library fragment ions compared with 88.7% for only one transition (supplemental Table 15). However, the largest improvement was going from one transition (88.7%) to two transitions (92.8%) with smaller improvements for using all transitions. This indicates that a single transition was not sufficient for this algorithm, but the relative gain was more modest after two transitions.
Our algorithm constrains the similarity matrix using a global alignment function. Constraining the alignment in a certain window (given by RSEdistFactor) around the global fit derived from “anchor peptides” improves the alignment accuracy. We observed that, with a constrained similarity matrix 95.4% peaks were aligned compared with 94.3% with the nonconstrained one (see supplemental Fig. 10B). An example of such alignment is shown in Figs. 2C and 2D in which the similarity matrix had two high similarity hot spots. By constraining the alignment inside the dashed region in Fig. 2D, the alignment path went through the correct hot spot. With the unconstrained similarity matrix, an incorrect alignment resulted, as shown in the supplemental Fig. 11.
Validation Using “Gold Standard” Reference Dataset
Using a validation dataset, we compared DIAlignR to current alignment methods. In terms of number of peptides aligned and alignment precision, chromatogram alignment by DIAlignR outperformed LOESS and linear regression methods (see Fig. 3A and Table II). On the S. pyogenes benchmark dataset, DIAlignR decreased error rates by 1.8-fold compared with the state-of-the-art methods. Cumulatively, chromatographic alignment only misaligned 4.3% of all peaks within 15.3 s (half-peak width) of the true RT compared with 7.9% for LOESS (while LOESS with default parameters misaligned 22.8% of all peaks, and linear regression misaligned 44.8%; see Fig. 3A).
Table II. The average number of peptides aligned from manually validated S. pyogenes dataset and from heterogeneous human plasma measurements. For the plasma data, peaks with OpenSWATH m-score < 0.001 are used for evaluation of the algorithm.
Dataset | Method | Average number of peaks aligned within half-peak width | Average number of peaks aligned within one peak width | Average number of peaks aligned within two peak width | Total number of peaks per run | Peaks aligned within half-peak width (%) |
---|---|---|---|---|---|---|
Validation dataset | DIAlignR | 394.81667 | 407.3 | 410.69167 | 437 | 95.68765 |
LOESS | 380.07500 | 406.18333 | 410.81667 | 437 | 92.10249 | |
Heterogenous human plasma dataset | DIAlignR | 397.56159 | 400.50362 | 403.88043 | 406 | 97.92157 |
LOESS | 308.67754 | 382.17754 | 403.15217 | 406 | 76.02895 |
We next investigated the effect of experimental perturbation on the performance of the alignment method. We compared within-condition alignments with between-condition alignments (in the validation dataset, the conditions were 0% and 10% human plasma added to S. pyogenes during growth). For both alignment methods, we observed decreased performance for between-condition alignments compared with within-condition alignments (Fig. 3B). However, the performance drop of the LOESS method (4.93%) was substantially larger than the corresponding performance drop of DIAlignR (2.7%), indicating increased robustness to sample heterogeneity for DIAlignR.
To evaluate the consistency of alignment approaches across multiple run pairs, we computed the number of correctly aligned peaks (defined as instances where the alignment was correct within half-peak width) for each run pair. This distribution was shifted toward the right with low standard deviation for the chromatogram alignment method compared with LOESS, indicating that the former was consistent in its performance (Fig. 3C). In terms of the precision of the alignment, chromatogram alignment consistently performed better than global alignment methods as the former had a higher area under the cumulative peptide frequency curve for each run pair (higher AUC for 120 out of 120 pairs; see supplemental Fig. 12C). Similarly, we observed a larger RT variation (standard deviation = 18.45 s) with the LOESS approach, which the chromatogram alignment corrected satisfactorily with the standard deviation being 11.68 s (Fig. 3D and supplemental Figs. 12A and 12B). We concluded that, on the validation dataset, DIAlignR performed consistently better in terms of accuracy of alignment and number of correctly aligned peaks across a range of different RT cutoffs and LC-MS/MS runs.
Next, we were interested in how the global differences between the two methods translate to individual alignments. We, therefore, computed the alignment error for each pairwise alignment of each peptide (total 49,505 alignments) and found that chromatographic alignment outperformed LOESS in 4.7% of all cases, whereas, LOESS achieved better results in 1.1% of cases, while comparable performance was achieved in the remaining 94.2% cases (see supplemental Fig. 13B). On average, DIAlignR reduced the RT error by 2.3 s with a median of 1.7 s (see supplemental Fig. 13C). Overall, our method aligned 47.3k peaks correctly compared with 45.6k by an optimized LOESS within half-peak width (15.3 s). However, in general we observed that, on the validation dataset, both methods performed with similar consistency, which may be due to the low complexity of a bacterial sample and the high homogeneity of the data as they were acquired within two consecutive days on the same LC column.
Application to Large-Scale Heterogeneous Human Plasma Measurements
After demonstrating consistently improved performance on the S. pyogenes validation dataset, we investigated the performance of our algorithm on the data from large-scale SWATH-MS experiments on human plasma. These experiments provided a more challenging dataset as the data were acquired over a period of six months with an intermittent repair of the instrument and replacement of the old column (column1) with a new column (column2). Two LC-MS/MS runs from each of the 12 batches were selected at random, and 406 peptides were used for testing our algorithm. Since we did not have manually validate peaks, high-confidence peak groups (q-value < 10−3) were used as the validation set.
Comparing our chromatogram alignment algorithm (DIAlignR) with the LOESS method on a highly heterogeneous human plasma dataset, we found that our approach aligned 97.92% of peaks compared with 76.03% by LOESS with a maximal error of 20 s (half chromatographic peak width) as depicted in Fig. 4A. All tested 276 pairwise alignments showed improved performance using chromatographic alignment (see supplemental Fig. 15). Next, we were interested in the performance of our method on the alignment of runs acquired on the two different columns. We found that, for runs acquired on different columns, chromatogram alignment method aligned 97.7% (compared with 97.84% within-column alignment) of peaks compared with 63.38% (89.06% for within-column alignment) by the LOESS method (Fig. 4B), suggesting that DIAlignR retained performance even for highly heterogeneous datasets while the LOESS approach did not. Specifically, we found not only that DIAlignR outperformed LOESS on between-column alignments but also that the performance loss for DIAlignR was much less pronounced than for LOESS compared with within-column alignments. After validating the performance of chromatogram alignment cumulatively, we decided to investigate its consistency across individual run-pair alignments. Fig. 4C presents the distribution of the number of peaks aligned in all 276 pairs. DIAlignR was capable of aligning 400 peaks on average within half-peak width (while LOESS aligned 309 peaks on average), a 29% improvement. This indicated substantial alignment error when using LOESS, which could be reduced drastically by DIAlignR.
To validate the performance on individual alignment, we further computed the alignment error for each pairwise alignment for every peptide. The standard deviation of alignment error for LOESS was 22.91 s compared with 13.7 s for DIAlignR (Fig. 4D). This indicated the higher precision of RT alignment with our approach. Out of 112,056 alignments, we found that DIAlignR outperformed LOESS in 23% of all cases and performed similarly in 76% cases (see supplemental Fig. 14—while performing worse in 1.13% cases). Upon manual validation, several of these worse-performing peaks were found to be due to wrong annotation by OpenSWATH (supplemental Fig. 18). Thus, testing of the chromatogram alignment approach on the heterogeneous human plasma dataset again validated its consistent and improved RT alignment performance.
Switching of Peptide Elution Order
In liquid chromatography, RT drift is often observed from one run to another run. However, we were interested whether this drift may be variable for different peptides and thus could result in reversal of retention order (15). In such a scenario, two peptides that are eluting in order in one run may reverse their elution order in another run. Since our approach did not make an assumption of order preservation of peptide elution and facilitated independent alignment, we hypothesized that DIAlignR would be capable of uncovering instances of non-order-preserving chromatographic alignment. Specifically, we analyzed peptide pairs that switch elution order from the heterogeneous and distant plasma runs.
To confirm the alignment for such peak-switching cases by chromatogram alignment algorithm, we specifically looked at the alignment of the pair “run4_run23” as it has the highest number of peak switching pairs. run4 was part of batch V4, acquired on February 28, 2017 whereas run23 was from batch M3, acquired on July 20, 2017. The LOESS fitting from common high-scoring training peptides for this pair is presented in Fig. 5A. Most of the test peptides were scattered around the global fit line instead of being directly on the line. This graph quickly suggests 407 peptide pairs (one from either side of the line) comprising of 237 peptides that have switched their elution order out of 406 peptides (see supplemental Section S6). We thus found that, overall, 58.4% of peptides were involved in at least one event of non-order-preserving elution.
One of the peak switching cases is presented in Fig. 5B. In run4 peptide AQLVDMK/2 elutes after HYDGSYSTFGER/2, whereas in run23 the elution order was found to be reversed. Both peptides saw positive RT drift in run23 from run4; however, HYDGSYSTFGER/2 shifts 1,070 − 850 = 270 s whereas AQLVDMK/2 drifts only 1,050 − 900 = 150 s. This varying RT drift between two runs caused the peptides to elute in a different order. The peptide-pair cannot be aligned with a global alignment approach, which in the best-case scenario would be off by 120 s; however, our chromatogram alignment method mapped the peaks correctly from run4 to run23 (see supplemental Fig. 17).
We, further, calculated the cumulative fraction of peptides aligned for pair “run4_run23” (Fig. 5C). Chromatogram alignment correctly aligned 98% peaks compared with LOESS, which was able to align only 37.93%, thus, DIAlignR was capable of decreasing the error by up to 30-fold. Eight peaks, which were not correctly aligned by chromatogram alignment, were further inspected visually by the authors and were found to be the cases of misannotation by OpenSWATH, mainly due to the posttranslational modifications (see supplemental Section S7 and supplemental Fig. 18).
DISCUSSION
Correcting for RT drift and aligning RTs between LC-MS/MS runs has been a long-standing problem in proteomics, and it has become of particular importance as proteomics moves toward large-scale analysis of human cohorts. However, most efforts so far focus on MS1 data, and few algorithms are available that can exploit the full information present in MS2 spectra produced by targeted methods or DIA/SWATH-MS.
In this paper, we presented a novel algorithm that used the raw fragment-ion chromatograms directly to perform RT alignment for targeted proteomics and DIA data. Our algorithm uses XICs to map peaks across a pair of runs and improves alignment accuracy compared to current state-of-the-art methods. We, furthermore, extended the algorithm and implemented a hybrid approach, which used a feature-based global alignment to condition the similarity matrix s that led to further gains in accuracy (see supplemental Fig. 10B). This hybrid approach provides the best of both worlds with a flexible “knob” that allows the user to either put more focus on global features or rely more on local information. To our knowledge, researchers have not yet explored dynamic-programming-based alignment on raw fragment-ion chromatograms. The dynamic programming approach is essential for obtaining a nonlinear (or gapped) alignment as distant runs also have varying drift even for local peaks. Using LOESS to partially constrain the alignment made our algorithm more stable and provided the robustness of global alignment methods.
We showed that on a “gold-standard” validation dataset, DIAlignR consistently outperformed a global alignment method (using either linear or nonlinear approaches), the current state-of-the-art (supplemental Fig. 12C). We observed that alignment accuracy increased almost 4% if a precursor had two transitions instead of one (supplemental Fig. 10A), and an additional 1.5% of aligned precursors by using all six fragment ions, which also corresponds to recommended guidelines (4). Since the DIAlignR approach puts more emphasis on local data, we also observed instances of overfitting where the global alignment function produced better alignment (supplemental Fig. 13B). Overall, however, we saw increased performance, and the DIAlignR algorithm decreased error rates from 7.9% to 4.3%. Interestingly, we found that our method was less sensitive to changes in chromatographic condition or sample matrix than global alignment approaches (Fig. 3B).
This finding led us to speculate that the novel chromatographic alignment would be less sensitive to heterogeneity in sample composition and chromatographic condition in large-scale studies. We tested our algorithm on a large-scale SWATH-MS experiment of human plasma acquired over several months. On this dataset, DIAlignR reduced RT alignment error from 24% to 2%, which is a significant improvement over current state-of-the-art methods. Our approach outperformed other methods and consistently mapped the highest number of peaks within half-peak width irrespective of acquisition time interval, column change, or instrument repair between two runs (Fig. 4B). DIAlignR improved RT alignment accuracy, which has the potential to improve peak-group identification and quantification through downstream tools. We manually identified an example of a wrongly aligned peak group as shown in supplemental Fig. 19. We also observed that, in the case of a peak being outside of an extracted chromatogram, our method was able to map RT outside of it as our hybrid approach also uses global alignment (see supplemental Fig. 18). Chromatograms can then be re-extracted and be used to correctly annotate peaks. Thus, this method can further be employed to extract chromatograms by OpenSWATH and other tools.
The improvement in RT alignment came with nonnegligible computation cost. For an alignment of 10-min-wide XICs with a 3.4-s cycle time, DIAlignR took, on average, 0.16 s. Thus, pairwise alignment of selected 437 peptides took approximately 1 min per run pair. The highest cost in the alignment of each peptide was the calculation of the alignment path using dynamic programming. However, this problem scales linearly with the number of peptides in the library and could be easily parallelized on a computing cluster.
We believe that our approach is most useful for large-scale heterogeneous targeted proteomics studies where runs are acquired by different personnel and data are collected over several months or even years. Applying a single mapping function in such experiments becomes a very challenging task, considering the switching of elution order of peptides. Global alignment functions, being monotonic, assume chronological order of peptide elution and, therefore, cannot align switched peptides. Hence, we observed substantial underfitting with the global function and an overall reduction of error using DIAlignR. Our hybrid approach aligned these peptides accurately as it mostly relied on additional dimensions of fragment-ion m/z to align peaks. It is possible that switching peptides may share fragment ions; however, this is very rare scenario if the library is designed carefully (4), and in such cases, our method will perform no worse than global alignment methods.
Accurate RT alignment has multiple uses in the application of mass-spectrometry-based proteomics for large-scale systems biology studies; correct identification and improved quantitation of a large number of analytes are two of them. This seems intuitive as most quantitative approaches currently available, at least to some degree, rely on accurate RT alignment. We present a tool that can align RTs of DIA data by establishing correspondence between analytes across large number of samples, making DIA amenable for multicenter and longitudinal studies. We also expect that this tool can be utilized by existing proteomics software to streamline analyte identification and to improve the quantification.
DATA AVAILABILITY
Raw chromatograms and features extracted by OpenSWATH are available on PeptideAtlas under accession code PASS01280.
Supplementary Material
Acknowledgments
We are grateful to Michael Snyder for supervising data acquisition and providing access to the heterogeneous plasma dataset. We also thank Michael Brudno for valuable discussion on chromatogram alignment using dynamic programming.
Footnotes
* The authors declare no competing financial interests.
This article contains supplemental material supplemental Tables 1–3, 7, 8, and 15 and supplemental Figs. 1, 10–15, and 17–19.
1 The abbreviations used are:
- DIA
- data-independent acquisition
- AUC
- area under the curve
- LC
- liquid chromatography
- LOESS
- local weighted regression
- RSE
- residual standard error
- RT
- retention time
- XIC
- extracted ion chromatograms
- SWATH-MS
- sequential windowed acquisition of all theoretical fragment ion mass spectra
- iRT
- indexed retention time
- TRIC
- TRansfer of identification confidence.
REFERENCES
- 1. Uzozie A. C., and Aebersold R. (2018) Advancing translational research and precision medicine with targeted proteomics. J. Proteomics 189, 1–10 [DOI] [PubMed] [Google Scholar]
- 2. Surinova S., Schiess R., Hüttenhain R., Cerciello F., Wollscheid B., and Aebersold R. (2011) On the development of plasma protein biomarkers. J. Proteome Res. 10, 5–16 [DOI] [PubMed] [Google Scholar]
- 3. Nigjeh E. N., Chen R., Brand R. E., Petersen G. M., Chari S. T., von Haller P. D., Eng J. K., Feng Z., Yan Q., Brentnall T. A., and Pan S. (2017) Quantitative proteomics based on optimized data-independent acquisition in plasma analysis. J. Proteome Res. 16, 665–676 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4. Schubert O. T., Röst H. L., Collins B. C., Rosenberger G., and Aebersold R. (2017) Quantitative proteomics: Challenges and opportunities in basic and applied research. Nat. Protoc. 12, 1289–1294 [DOI] [PubMed] [Google Scholar]
- 5. Röst H. L., Liu Y., D'Agostino G., Zanella M., Navarro P., Rosenberger G., Collins B. C., Gillet L., Testa G., Malmström L., and Aebersold R. (2016) TRIC: An automated alignment strategy for reproducible protein quantification in targeted proteomics. Nat. Methods 13, 777–783 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6. Gillet L. C., Navarro P., Tate S., Röst H., Selevsek N., Reiter L., Bonner R., and Aebersold R. (2012) Targeted data extraction of the MS/MS spectra generated by data-independent acquisition: A new concept for consistent and accurate proteome analysis. Mol. Cell. Proteomics 11, O111.016717 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7. Guo T., Kouvonen P., Koh C. C., Gillet L. C., Wolski W. E., Röst H. L., Rosenberger G., Collins B. C., Blum L. C., Gillessen S., Joerger M., Jochum W., and Aebersold R. (2015) Rapid mass spectrometric conversion of tissue biopsy samples into permanent quantitative digital proteome maps. Nat. Med. 21, 407–413 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8. Röst H. L., Rosenberger G., Navarro P., Gillet L., Miladinović S. M., Schubert O. T., Wolski W., Collins B. C., Malmström J., Malmström L., and Aebersold R. (2014) OpenSWATH enables automated, targeted analysis of data-independent acquisition MS data. Nat. Biotechnol. 32, 219–223 [DOI] [PubMed] [Google Scholar]
- 9. Tsou C.-C., Avtonomov D., Larsen B., Tucholska M., Choi H., Gingras A.-C., and Nesvizhskii A. I. (2015) DIA-Umpire: Comprehensive computational framework for data-independent acquisition proteomics. Nat. Methods 12, 258–264 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10. Navarro P., Kuharev J., Gillet L. C., Bernhardt O. M., MacLean B., Röst H. L., Tate S. A., Tsou C.-C., Reiter L., Distler U., Rosenberger G., Perez-Riverol Y., Nesvizhskii A. I., Aebersold R., and Tenzer S. (2016) A multicenter study benchmarks software tools for label-free proteome quantification. Nat. Biotechnol. 34, 1130–1136 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11. Liu Y., Buil A., Collins B. C., Gillet L. C., Blum L. C., Cheng L.-Y., Vitek O., Mouritsen J., Lachance G., Spector T. D., Dermitzakis E. T., and Aebersold R. (2015) Quantitative variability of 342 plasma proteins in a human twin population. Mol. Syst. Biol. 11, 786. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12. Escher C., Reiter L., MacLean B., Ossola R., Herzog F., Chilton J., MacCoss M. J., and Rinner O. (2012) Using iRT, a normalized retention time for more targeted measurement of peptides. Proteomics 12, 1111–1121 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13. Bruderer R., Bernhardt O. M., Gandhi T., and Reiter L. (2016) High-precision iRT prediction in the targeted analysis of data-independent acquisition and its impact on identification and quantitation. Proteomics 16, 2246–2256 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14. Smith R., Ventura D., and Prince J. T. (2015) LC-MS alignment in theory and practice: A comprehensive algorithmic review. Brief Bioinform. 16, 104–117 [DOI] [PubMed] [Google Scholar]
- 15. Spicer V., Grigoryan M., Gotfrid A., Standing K. G., and Krokhin O. V. (2010) Predicting retention time shifts associated with variation of the gradient slope in peptide RP-HPLC. Anal. Chem. 82, 9678–9685 [DOI] [PubMed] [Google Scholar]
- 16. Wu L., Amon S., and Lam H. (2016) A hybrid retention time alignment algorithm for SWATH-MS data. Proteomics 16, 2272–2283 [DOI] [PubMed] [Google Scholar]
- 17. Nielsen N.-P. V., Carstensen J. M., and Smedsgaard J. (1998) Aligning of single and multiple wavelength chromatographic profiles for chemometric data analysis using correlation optimised warping. J. Chromatogr. A 805, 17–35 [Google Scholar]
- 18. Bylund D., Danielsson R., Malmquist G., and Markides K. E. (2002) Chromatographic alignment by warping and dynamic programming as a pre-processing tool for PARAFAC modelling of liquid chromatography-mass spectrometry data. J. Chromatogr. A 961, 237–244 [DOI] [PubMed] [Google Scholar]
- 19. Listgarten J., Neal R. M., Roweis S. T., and Emili A. (2005) Multiple alignment of continuous time series. In Advances in neural information processing systems 17, edited by Saul L. K., Weiss Y., and Bottou L.. MIT Press; 817–824 [Google Scholar]
- 20. Sadygov R. G., Maroto F. M., and Hühmer A. F. R. (2006) ChromAlign: A two-step algorithmic procedure for time alignment of three-dimensional LC-MS chromatographic surfaces. Anal. Chem. 78, 8207–8217 [DOI] [PubMed] [Google Scholar]
- 21. Prakash A., Mallick P., Whiteaker J., Zhang H., Paulovich A., Flory M., Lee H., Aebersold R., and Schwikowski B. (2006) Signal maps for mass spectrometry-based comparative proteomics. Mol. Cell. Proteomics 5, 423–432 [DOI] [PubMed] [Google Scholar]
- 22. Hoffmann N., and Stoye J. (2009) ChromA: Signal-based retention time alignment for chromatography-mass spectrometry data. Bioinformatics 25, 2080–2081 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23. Christin C., Hoefsloot H. C., Smilde A. K., Suits F., Bischoff R., and Horvatovich P. L. (2010) Time alignment algorithms based on selected mass traces for complex LC-MS data. J. Proteome Res. 9, 1483–1495 [DOI] [PubMed] [Google Scholar]
- 24. Robinson M. D., De Souza D. P., Keen W. W., Saunders E. C., McConville M. J., Speed T. P., and Likić V. A. (2007) A dynamic programming approach for the alignment of signal peaks in multiple gas chromatography-mass spectrometry experiments. BMC Bioinformatics 8, 419. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25. Baran R., Kochi H., Saito N., Suematsu M., Soga T., Nishioka T., Robert M., and Tomita M. (2006) MathDAMP: A package for differential analysis of metabolite profiles. BMC Bioinformatics 7, 530. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26. Wang J., and Lam H. (2013) Graph-based peak alignment algorithms for multiple liquid chromatography-mass spectrometry datasets. Bioinformatics 29, 2469–2476 [DOI] [PubMed] [Google Scholar]
- 27. Sandin M., Ali A., Hansson K., Månsson O., Andreasson E., Resjö S., and Levander F. (2013) An adaptive alignment algorithm for quality-controlled label-free LC-MS. Mol. Cell. Proteomics 12, 1407–1420 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28. Prince J. T., and Marcotte E. M. (2006) Chromatographic alignment of ESI-LC-MS proteomics data sets by ordered bijective interpolated warping. Anal. Chem. 78, 6140–6152 [DOI] [PubMed] [Google Scholar]
- 29. Hoffmann N., Keck M., Neuweger H., Wilhelm M., Högy P., Niehaus K., and Stoye J. (2012) Combining peak- and chromatogram-based retention time alignment algorithms for multiple chromatography-mass spectrometry datasets. BMC Bioinformatics 13, 214. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30. Chambers J. M., and Hastie T. J. (1992) Statistical models in S. Pacific Grove, CA: Wadsworth & Brooks/Cole Advanced Books & Software [Google Scholar]
- 31. Searle B. C., Pino L. K., Egertson J. D., Ting Y. S., Lawrence R. T., Villen J., and MacCoss M. J. (2018) Comprehensive peptide quantification for data independent acquisition mass spectrometry using chromatogram libraries. bioRxiv 277822. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32. Rosenberger G., Bludau I., Schmitt U., Heusel M., Hunter C. L., Liu Y., MacCoss M. J., MacLean B. X., Nesvizhskii A. I., Pedrioli P. G. A., Reiter L., Röst H. L., Tate S., Ting Y. S., Collins B. C., and Aebersold R. (2017) Statistical control of peptide and protein error rates in large-scale targeted data-independent acquisition analyses. Nat. Methods 14, 921–927 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33. Chambers M. C., Maclean B., Burke R., Amodei D., Ruderman D. L., Neumann S., Gatto L., Fischer B., Pratt B., Egertson J., Hoff K., Kessner D., Tasman N., Shulman N., Frewen B., Baker T. A., Brusniak M.-Y., Paulse C., Creasy D., Flashner L., Kani K., Moulding C., Seymour S. L., Nuwaysir L. M., Lefebvre B., Kuhlmann F., Roark J., Rainer P., Detlev S., Hemenway T., Huhmer A., Langridge J., Connolly B., Chadick T., Holly K., Eckels J., Deutsch E. W., Moritz R. L., Katz J. E., Agus D. B., MacCoss M., Tabb D. L., and Mallick P. (2012) A cross-platform toolkit for mass spectrometry and proteomics. Nat. Biotechnol. 30, 918–920 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34. Durbin R., Eddy S. R., Krogh A., and Mitchison G. (1998) Biological sequence analysis: Probabilistic models of proteins and nucleic acids. Cambridge University Press [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Raw chromatograms and features extracted by OpenSWATH are available on PeptideAtlas under accession code PASS01280.