Abstract

We present a versatile user-friendly software tool, PolyAlign, for the alignment of multiple LC-MS signal maps with the option of manual landmark setting or automated alignment. One of the spectral images is selected as a reference map, and after manually setting the landmarks, the program warps the images using either polynomial or Hermite transformation. The software provides an option for automated landmark finding. The software includes a very fast zoom-in function synchronized between the images, which facilitate detecting correspondences between the adjacent images. Such an interactive visual process enables the analyst to decide when the alignment is satisfactory and to correct known irregularities. We demonstrate that the software provides significant improvements in the alignment of LC-MALDI data, with 10–15 landmark pairs, and it is also applicable to correcting electrospray LC-MS data. The results with practical data show substantial improvement in peak alignment compared to MZmine, which was among the best analysis packages in a recent assessment. The PolyAlign software is freely available and easily accessible as an integrated component of the popular MZmine software, and also as a simpler stand-alone Perl implementation to preview data and apply landmark directed polynomial transformation.

1. Introduction

With the emergence of liquid chromatography coupled to mass spectrometry (LC-MS) as a predominant method for bioanalysis, a number of software packages have been tailored for the alignment of data sets from multiple LC-MS analyses. In particular these and related algorithms have targeted comparative metabolomic and proteomics applications and have been widely demonstrated to provide an improved level of comparison for complex samples. Several of these methods have been recently reviewed by Katajamaa and Oresic [1], Vandenbogaert et al. [2], America and Cordewener [3], and Lange et al. [4]. The methods can be divided into two specific groups as follows. There are methods which identify and select significant features from the raw data that are used as a reference for alignment; here we refer to these as feature-based methods. Alternatively, there are those that use the whole data, which we refer to as profile-based methods.

The data points from LC-MS analyses can be defined by their mass-to-charge ratios (), retention times, and intensities. This combination of numeric attributes is often referred to as a feature vector and when one of these attributes (usually intensity) is expressed by color scale, these features can be conveniently visualized as a plot, sometimes described as an LC-MS contour map or LC-MS image [5]. In the feature-based alignment method of Wang et al. [6], the concept of an element spectrum vector was defined as the peak pattern of a specific peptide in an otherwise empty mass spectrum. These vectors can then be created for each possible peptide and used to align the experimental mass spectra.

With the profile-based methods, in which alignment is performed prior to feature extraction, the likelihood of errors due to feature detection is reduced. The earliest of these methods used the total ion chromatogram (TIC) approach in which the sum of peak intensities of each spectrum is used as the basis of alignment; the more similar the sum is in two spectra from different samples, the more likely it is that they will match [7, 8]. An example of such a method is the TIC-based system of Listgarten et al. [8], which was later enhanced by dividing the spectrum into four bins, with each bin containing about the same amount of ion current [9]. A hidden Markov model was used to represent the true retention times of the spectra, the parameters of which were estimated using the maximum likelihood principle and the expectation maximization algorithm. Krebs et al. [10] presented an alignment method for gas chromatography-MS data which used splines and Hermite functions to correct the retention times. Retention time errors were estimated from automatically selected landmarks that the software determined from correlation of the TIC-peaks. Prakash et al. [11] presented a similarity score for each spectrum pair, which was calculated on the basis of the presence of similar peaks in the same mass position and by taking into account their neighbourhoods and the possibility of a random match. Jaitly et al. [12] presented the LCMSWARP method for the alignment of LC-MS data sets. The method first detects peaks which are then grouped together between different samples. They argue that some of the differences in retention time are global and linear and are corrected more easily. The remaining differences are modelled with the Gaussian distribution. For this modelling, the data sets are divided into sections, and the alignment of the different sections are scored using a similarity score, which is based on the Mahalanobis distances calculated from the matches between sections.

In applications of alignment methods for comparison of multiple analyses, errors in mass axis are generally small, but differences in the time axis and column replacement may be sufficient to introduce ambiguity in peak matching. Furthermore, with a complete LC-MS sample series, the variations encountered in retention times may be larger than anticipated and at times nonlinear. Fluctuations in temperature, mobile phase flow rate and composition, as well as the accumulation of contaminants in the column and minor changes in sample composition among other inconsistencies in running conditions will account for deviations in retention times between the runs.

In situations of high sample complexity and varied separation reproducibility, the alignment of several LC-MS images is not a trivial task. In effect, a computer algorithm is needed to address two important tasks: recognize the features arising from the same set of analytes between different runs and transform the retention times of features of different runs so that they become identical and comparable. With proteomics, this translates into the comparison of profiles of thousands of peptides which are often closely eluting in time, within a narrow mass to charge window. Moreover, with experiments involving several case/control groups and multiple time points, where the sample numbers can extend from tens to hundreds, the researcher should be able to reliably compare a very large number of peaks and determine statistically significant differences within the dataset.

In our applied research towards the identification of protein biomarkers for type 1 diabetes we have investigated the longitudinal proteomic profiles of serum from subjects with a HLA class II haplotype defined risk of type-1 diabetes. Part of this strategy has been based on the use of a label free LC-Matrix Assisted Laser Desorption Ionization (LC-MALDI) approach [1315]. The LC-MALDI method enables the storage of separated peptides on the MALDI target plate. Data are created from a MALDI analysis of the material collected on the target, providing a list of singly charged peptide ions identified in this primary analysis. Following an intra-run based global normalization the peptide lists are compared between different samples and differences and/or interesting peaks further determined by further analysis (MS/MS) of the MALDI target plate. To maximize the descriptive potential of this data set and accommodate for deviations and technical variations, an alignment step was introduced during the primary comparison phase. Our initial data evaluation began with MZmine (version 0.6) [16], but to add additional flexibility to the alignment, a new alignment tool was developed.

In the present paper, we describe a versatile easy to use LC-MS data alignment package (PolyAlign) with options for both automated and user selected landmark-based alignment. The output of the tool is a set of LC-MS images where the retention times are corrected according to the alignment between the images. The tool was implemented both as a stand-alone package and an addition to MZmine. A profile-based LC-MS data alignment approach is used that is based on a global transformation method for retention time correction, with either a polynomial or Hermite based model. Importantly, in the design of the alignment package we gave strong emphasis for the ease of use and installation of the alignment tool. Here we aimed at simple and effective controls and an intuitive direct visual control of the warping phase through a convenient GUI. With the material tested the use of the Hermite interpolation indicated superiority in its speed and efficacy in the alignment. The implementation was designed to be versatile towards data produced by different types of mass spectrometers in mzXML format, including LC-MALDI and LC-ESI configurations.

2. Experimental Section

2.1. Test Material

For the evaluation and testing of the proposed alignment software, we have used both LC-MALDI and LC-ESI data. The LC-MALDI data were from the analyses of serum samples periodically collected from case and control subjects, as a part of the Finnish nationwide diabetes prevention and prediction study (DIPPstudy, [17]). Aliquots of the serum (8 μL) were depleted of the 6 most abundant serum proteins with an Agilent “MARS” serum depletion spin column. Samples were reduced, alkylated, and then digested with trypsin (Promega, sequence grade). The digests were desalted using Varian “Omix” large volume desalting pipette tips. The serum digests were separated with an 100 um × 75 um i.d. “Acquity” C18 BEH nanoUPLC column, using a Dionex Ultimate 3000 nanoLC. Peptide separation was performed using a gradient from 5–30% B in 120 min at a mobile phase flow rate of 255 nL/min. The phase compositions was as follows: Phase A. 5% acetonitrile, 0.1% trifluoroacetic acid; Phase B, 95% acetonitrile, 0.1% trifluoroacetic acid. The column eluate was collected directly to polymeric anchor chip (PAC) MALDI target plates (Bruker Daltonics), using a Probot (LCpackings) spotting robot, at 128 discrete loci from 21.5 minutes to 97.2 minutes, with spotting intervals of 35 seconds. An Ultraflex II TOF/TOF MALDI mass spectrometer (Bruker Daltonics) was used in reflector mode with a range from 750–3500 Da. For each sample matrix spot 1200 shots were made, with 600 shots for each calibrant spot. The separations were performed at a temperature of 55°C, which provided both an improved separation efficiency (due to increased mass transfer in the mobile phase) and a reduced operating pressure (due to decreased mobile phase viscosity). The combination of an elevated separation temperature facilitated the use of an un-modified nano-LC instrument with UPLC media.

For LC-ESI test material, serum samples were depleted of the top 6 most abundant serum proteins and prepared for LC-MS analysis as described for the LC-MALDI samples. Aliquots (~0.5 μg) of the serum digests were analyzed by LC-MS/MS using a system consisting of LC-Packings Ultimate-II nanoflow-LC (LC Packings, Amsterdam, Netherlands) coupled to a QSTAR Pulsar ESI-hybrid quadrupole-time of flight instrument (Applied Biosystems/MDS Sciex). Separation were made with a 15 cm × 75  μm i.d. fused silica capillary column packed with 5 μm Magic C18 (Michrom BioResources, Inc., Auburn, CA). Peptide separation was performed using a gradient from 2–35% B in 124 min at a mobile phase flow rate of 200 nL/min. The phase compositions were as follows: Phase A. 5% ACN, 0.1% HCOOH; Phase B, 95% ACN, 0.1% HCOOH. Data analysis was performed with Mascot (version 2.2, Matrix Science, London, UK), and the data were searched against a SwissProt database (release date 05/12/2005) with mammalian specific taxonomy. Methionine oxidation was specified as variable modification, and carboamido methylation modification of cysteine as a fixed modification. The precursor and fragment mass tolerances were 0.3 and 0.2 Da, respectively.

A summary of the test data is given in Table 1. Data set 1 included 4 technical replicate analyses of a single serum sample (Dataset 1), which was used to study the real technical distortion resulting from the LC-MS process without random or sample to sample error sources. Datasets 2 and 3 represent longitudinal serum samples from two subjects, with seven and five time points from subjects A and B, respectively. Samples are collected more frequently from the subjects once they are TID autoantibody positive. Analysis of control sera was also made using ESI-MS (Dataset 4). These data sets were used to test the performance of our method in a practical research setting. Artificially distorted maps [18] were also used in preliminary testing, the results for which are shown in the supporting information. Data files were converted to mzXML format using CompassXport 1.3.1 (Bruker) and mzStar for the Bruker MALDI and Applied Biosystems electrospray data, respectively. These files were centroided with no additional filtering.

2.2. Correcting Retention Time Errors

Two different methods were implemented for the correction of retention time errors. The first correcting function is a polynomial function (called the warping polynomial) of order : where is the observed retention time and the function gives the corrected retention time for . The coefficients are determined by the least squares method [19] using the time differences of the set of landmarks as defined by the user or given by the automatic landmarking method. Transformation is only done in the RT dimension due to the assumption that the mass values measured by the mass spectrometer are relatively accurate. After manually or automatically selecting the landmarks, the regression function is estimated and the software will warp the distorted signal map.

Alternatively, the transformation can be made using a cubic Hermite spline transformation, for which the transformation brings the landmarks into exact alignment, whereas in the polynomial correction this is not the case [20, 21]. The cubic Hermite spline is a third degree spline function, with Hermite polynomials used for interpolation. The Hermite polynomial for points in the interval () is where and are the starting and ending points, respectively, and starting and ending tangents, respectively, and , and . Furthermore, In the tests in Section 3, manual landmark finding was used, unless stated otherwise. The following guidelines were followed in the manual selection of landmarks for testing.(a)A true peptide signal represents typical chromatographic elution so that the signal spans over approximately 10–90 seconds with first rising and then declining intensity. The visual control of the landmark selection allows effective recognition of true peptide signals from background peaks or electric noise. (b)The point set can be clearly distinguished from its neighbourhood.

The landmarks should be selected relatively uniformly over the signal map, for example, representing large RT and range, to guarantee that the transformation works well between the reference and object images. In theory, the number of landmarks should be at least for a polynomial transformation of degree , but the general rule is that 10–20 landmarks produce the best result as can be seen from Figure 2. We studied the impact of the number of landmarks on the alignment efficiency (see Section 3 below) and found that in practice 12 landmarks were sufficient. The degree of the warping polynomial may also influence the performance of the algorithm. A higher degree polynomial fits the landmark points better but becomes often unstable in areas with no landmarks. A lower-order polynomial has a smoother form, but it may not catch highly nonlinear or local distortions as effectively. We have included an option for automatic determination of the best degree of the polynomial. The algorithm tests different degrees and calculates a correlation coefficient for the images for each degree. The degree with the best correlation is selected. The software also allows the user to select the degree manually. The reference map should be the map with the most features, as this will likely make it easier to find the landmarks from other maps.

The automated landmarking algorithm is initiated with the selection of the area of the reference image from which the landmarks will be determined. By default the whole image is used, although the user can limit the area by zooming into a part of the map. Next, the area is divided into equal-sized parts (i.e., time slices) in the retention time dimension, by default . The most intense point in each slice is selected as the landmark in the reference image. The corresponding landmarks in the other images are searched by first selecting the expected area of the landmark with a user given MS equipment-dependent tolerance in both retention time and dimensions. The maximization of the Pearson correlation coefficient is then used to find the exact retention time of corresponding landmark spot inside this area. If the correlation test does not provide a good enough value of the correlation coefficient for the landmark pair, the landmark is discarded for this image pair. The user has then an option to inspect the results and, if wanted, remove or change landmark pairs which look suspicious, or he can add more landmark pairs.

2.3. The User Interface

With the integration of this preprocessing tool into MZmine for the correction of distorted data, we have improved the automatic alignment phase, whilst giving the user more control over the alignment process. The user can select landmarks by clicking the potential landmark spots at the two signal maps to be aligned. The graphical user interface (GUI) of the PolyAlign system has been designed to support the setting of landmarks in manual mode by allowing the user to insert and delete landmarks in a quick and intuitive way. Figure 1 displays a screenshot of the system output during landmarks setting. The GUI also shows the aligned map of the reference image and target image stacked together. The colours of the peaks from the map can be set by the user. This enables the user to keep track of the current state of the alignment, so that he can stop inserting landmarks when the transformation is accurate enough. Although the manual landmarking requires additional user input, it also allows good visual control over the warping process.

The process of manually setting the landmarks is greatly aided by the use of efficient zooming techniques. With the comparison of large LC-MS datasets, the speed of image generation and zooming can be limited. As these latter attributes were a crucial requirement in the usability of our software, we applied the quadtree data structure [22] in order to implement fast zooming capabilities in our program. The quadtree is based on a recursive decomposition of the data, and it thus enables the user to focus quickly on subsets (i.e., regions) of the data.

Larger sets of signal maps can be aligned by repeating the pairwise alignment procedure with more data files. To assist with this, the landmarks can be saved and used with successive data files. The user can choose one signal map as the reference map to which all the other maps are aligned. In this way, one can process a large experiment with tens of samples simultaneously, and every single data set can then be compared against each other without the need for further alignment.

The PolyAlign software has been implemented in two forms: as a simpler stand-alone Perl-language preprocessor, which is capable of reading mzXML-files, processing them with an easy-to-use GUI and then saving them with altered retention time values for the scans. This version lacks currently the automated landmarking system and the hermite transformation. Alternatively, the algorithm has been integrated in the popular open source software package MZmine [23] with all the features described above. MZmine has advanced capabilities for identifying the peak complexes from several LC-MS images and for matching them across samples. The integration of our algorithm into MZmine complements its original automatic alignment method [3, 16], with the provision of a powerful preprocessing tool for correcting distorted data sets, whilst providing the user with more control over the alignment process. The transformed files may be processed in parallel to create peak lists for analysis with such inbuilt tools as Curvilinear Distance Analysis (CDA) and Sammon's nonlinear mapping (NLM) [16]. The aligned mzXML files can be exported as new mzXML files for further processing using other software [24]. Both versions of the software are freely available from the web address http://staff.cs.utu.fi/staff/jussi.salmi/Supporting.html.

2.4. Testing Procedure

Several different test settings were used to evaluate the correction performance of PolyAlign. Firstly, we selected manually a large number of landmarks and divided them into testing and training sets, and used r-fold cross-validation for estimating the warping error. In particular, the landmark set was divided into r, groups, and then one group was used for estimating the alignment function and the error of the alignment was calculated using the other groups. By varying r we could find the optimal amount of landmarks for training: we observed that as more landmarks were added in the training set, the training set error increased and the testing set error typically decreased. Initially we observed that the training error was smaller than the testing error and finally reached a point at which the addition of more landmarks did not improve the alignment. A root mean square error, rms, measure was used for these tests, defined as where is the set of landmarks used as the testing set, and it consists of pairs (), where is the retention time of the landmark in the reference map and t the retention time of the landmark in the distorted map. The rms values are both before and after the alignment of the LC-MS images. We have also calculated correlation coefficients between the before and after alignment images. These results confirm the above findings, and they are available in the supporting information.

3. Results and Discussion

We have developed a profile-based LC-MS alignment tool for the analysis of multiple data files on the basis of polynomial and Hermite transformation. With the practical testing of this software, we needed to establish whether the method improved the alignment of the data, whilst establishing the optimal degree for the warping polynomial and the number of landmarks required for a good alignment. While the tests with the polynomial transformation were performed with polynomial degrees 1–3, only the results obtained with the best degree are shown here. Complete tables for these with all the polynomial degrees are shown in the supporting material.

For the technical replicates (data set 1), the root mean square errors are given in Table 2. In general, the error decreased as a result of warping by PolyAlign, but for the target map 1 it increased. After studying map 1 further, it was found that with this analysis a more intense background was observed across much of the chromatogram, with several broad tailing features that were not in the reference map, and thus it did not correlate well with the reference data set.

Tables 3 and 4 summarize the results for aligning the signal maps of subjects A and B (data sets 2 and 3), respectively. Again, the landmark error decreased systematically in each case as a result of the alignment. Some of the maps proved difficult to align due to the scarcity of good landmarks in some areas of the maps, and in part reflecting some of the limitations of the LC-MALDI strategy [25]. This highlights the importance of selecting good landmarks. The Wilcoxon signed rank test was used to test the statistical significance of the test results. In both cases, the alignment proved to improve significantly () as a result of the alignment.

On the basis of the experiments above, we conclude that there is no specific degree for the warping polynomial that should be favoured in general. The form of the distortion in the data dictates the optimal polynomial. If the data has a simple shift in starting time, then the linear correction works well enough, and the unnecessary complications of the higher degree coefficients can be avoided, as can be seen with the artificially distorted test material in the supporting material. However, in the test material sets 2 and 3, 2nd or 3rd degree terms are needed to model the distortion in many cases. In particular, it is advised that the user may choose between different degrees for the polynomial to get the best possible warping performance.

For the evaluation of landmark setting, we found that 12 landmark pairs appeared to be sufficient for our test material. Figure 2 shows a representative plot of the average correction error as a function of the number of landmark pairs. Similar figures for the other cases of the data set are shown in the supporting material. The test and training set errors converge after 12 landmarks. With these LC-MALDI data, the number of mass spectra per analysis was determined by the number of MALDI spots collected, that is, just 128. With ESI-LC-MS data, however, the number of mass spectra is far greater, as the data are acquired with 20 or more full MS1 scans per minute.

Peak matching between data sets was tested using both LC-ESI and LC-MALDI data. Here we calculated the number of peak groups that could be matched between the maps of the test data set. We used eight LC-MALDI maps (data set 5). These maps have large differences in retention time. The maps were aligned with the MZmine embedded version of the PolyAlign and the original MZmine alignment method using a retention time tolerance of 105 seconds. Figure 3 shows the number of peak groups that were matched between the different maps. In general, with a successful alignment technique, a large number of matching peaks would be expected from all the 8 maps. On the contrary to this, if most of the matches only occur between a few maps, the alignment may be less successful. The results of Figure 3 show that the number of peak matches clearly improved compared to the original MZmine algorithm. The Hermite transformation was the most successful method with this material, as shown by the distribution of the sizes of matching peak groups. Polynomial methods with different degrees and the automatic landmarking system without any correction to landmark positions were also better than the original MZmine. We believe that the Hermite transformation demonstrated a superior performance in this application as it follows the landmarks exactly, whereas the polynomial method accepts a transformation function which does not go via the landmark points. This approach could provide a useful implementation in similar software.

Figure 4 shows the corresponding results for 6 maps from the LC-ESI data set with 1% RT tolerance in matching the peaks. Again the Hermite interpolation with manual landmarking was the most successful method, but very good results were also achieved using the automatic landmarking system. Figure 5 shows an example of a successful alignment with two LC-MALDI maps. The running time of the algorithm was a few seconds.

In the critical review of alignment methods by Lange et al. [4] several different software packages were compared. These included MZmine, OpenMS, XAlign, XCMS, SpecArray, and msInspect, with the first three performing about equally well. Our algorithm can be used as stand-alone method to produce a set of mzXML-files for further analysis or as an enhancement of MZmine. The proposed algorithm provides an improvement over MZmine as was demonstrated in this section, so we believe that our method would be a useful tool for LC-MS alignment. Unfortunately, we were unable to use the dataset of Lange et al. for testing, as their alignment comparisons were made using a preprocessing step for feature detection, creating featureXML files. In contrast, our program was developed to directly align mzXML files and requires the full mass versus time spectral profiles that are absent from featureXML formatted data.

4. Conclusions

LC-MS profiling has a great potential in comparative proteomics [26, 27]. Furthermore, the production of detailed and accountable MS profiles can be highly beneficial for biomarker discovery experiments [28] and label-free comparative quantitative proteomics [29]. The alignment of LC-MS profiles from separate measurements is an important prerequisite for such applications as it can improve data comparison and extend the depth of analysis. Although several algorithms for LC-MS data alignment are now both commercially [30] and freely [31, 32] available, in our application we aimed to provide an additional level of flexibility that would facilitate the comparison of analyses across a prolonged study whilst putting emphasis on the ease of use and user control. We have developed an image alignment-based module that employs manually selected landmarks. Although the landmark selection requires an additional level of user input, it also provides a very good visual control over the data quality. The user has full power over the alignment process, and can see the changes in the combined image pair as more landmarks are inserted and the transformation model is developed. In this phase, the user can quickly evaluate whether the data set is compromised with the insertion of erroneous landmarks, thus providing an additional level of confidence. For aiding the user the alignment module has also an option of automatic landmarking. The option includes also the possibility for easily editing the landmarks proposed by the module.

Our mzXML format-based data alignment module PolyAlign was developed for use with both LC-MALDI and electrospray data. We have created a flexible and efficient LC-MS profile alignment tool that stands out due to its real life usability. It can be operated with layman Windows user knowledge, thus saving time and effort in the early stage of MS-profiling data interpretation. This software is freely available as a stand-alone Perl-language preprocessor and as an addition to the MZmine toolbox. Both versions of the software are available together with examples of the ESI and MALDI data from the web address http://staff.cs.utu.fi/staff/jussi.salmi/Supporting.html.

Supporting Information

Supporting information is available free at http://staff.cs.utu.fi/staff/jussi.salmi/Supporting.html.

Acknowledgments

The authors thank Mikko Katajamaa for his very valuable help with the MZmine software. This work was funded in part by funds from the Academy of Finland (Grant no.120569) and the National Technology Agency of Finland to Riitta Lahesmaa. H. Vähämaa and V. R. Koskinen contributed equally to this paper.