A dynamic programming approach for the alignment of signal peaks in multiple gas chromatography-mass spectrometry experiments
© Robinson et al; licensee BioMed Central Ltd. 2007
Received: 24 May 2007
Accepted: 29 October 2007
Published: 29 October 2007
Gas chromatography-mass spectrometry (GC-MS) is a robust platform for the profiling of certain classes of small molecules in biological samples. When multiple samples are profiled, including replicates of the same sample and/or different sample states, one needs to account for retention time drifts between experiments. This can be achieved either by the alignment of chromatographic profiles prior to peak detection, or by matching signal peaks after they have been extracted from chromatogram data matrices. Automated retention time correction is particularly important in non-targeted profiling studies.
A new approach for matching signal peaks based on dynamic programming is presented. The proposed approach relies on both peak retention times and mass spectra. The alignment of more than two peak lists involves three steps: (1) all possible pairs of peak lists are aligned, and similarity of each pair of peak lists is estimated; (2) the guide tree is built based on the similarity between the peak lists; (3) peak lists are progressively aligned starting with the two most similar peak lists, following the guide tree until all peak lists are exhausted. When two or more experiments are performed on different sample states and each consisting of multiple replicates, peak lists within each set of replicate experiments are aligned first (within-state alignment), and subsequently the resulting alignments are aligned themselves (between-state alignment). When more than two sets of replicate experiments are present, the between-state alignment also employs the guide tree. We demonstrate the usefulness of this approach on GC-MS metabolic profiling experiments acquired on wild-type and mutant Leishmania mexicana parasites.
We propose a progressive method to match signal peaks across multiple GC-MS experiments based on dynamic programming. A sensitive peak similarity function is proposed to balance peak retention time and peak mass spectra similarities. This approach can produce the optimal alignment between an arbitrary number of peak lists, and models explicitly within-state and between-state peak alignment. The accuracy of the proposed method was close to the accuracy of manually-curated peak matching, which required tens of man-hours for the analyzed data sets. The proposed approach may offer significant advantages for processing of high-throughput metabolomics data, especially when large numbers of experimental replicates and multiple sample states are analyzed.
Metabolomics refers to an all-inclusive profiling of low-molecular weight metabolites with an implicit aim to interpret results in the context of the organism's genome and its global metabolic network [1–4]. The term metabolic profiling is used to denote either targeted or non-targeted profiling of small molecules in biological samples. A targeted analysis focuses on specific, a priori known compounds, and therefore only parts of the chromatogram data matrix generated by the instrument may be considered relevant. In a non-targeted approach all detectable signals are analyzed, and the aim of such analysis is to achieve as wide coverage of metabolites as permitted by a particular experimental technique. A non-targeted metabolic profiling is an essential component of metabolomics, together with bioinformatics approaches for data analysis, interpretation, and integration [1–4]. In recent years metabolic profiling is increasingly being used in studies of microbial metabolism , biomarker discovery , toxicology [7, 8], nutrition [9, 10], and integrated systems biology [4, 11]. Hyphenated mass spectrometry approaches, in particular gas chromatography-mass spectrometry (GC-MS) [1, 12, 13] and liquid chromatography-mass spectrometry (LC-MS) [2, 14], are often used for metabolic profiling because of their inherent robustness, sensitivity, and large dynamic range.
GC-MS is particularly well suited for studies of low polarity metabolites with high sensitivity and specificity . The processing of GC-MS data is based on the detection of chromatogram signal peaks, a step performed either with proprietary software or with freely available software such as AMDIS . The net result of peak detection is a set of signal peaks that represent components present in the sample. Metabolic profiling experiments are relatively rapid, and typically multiple replicates per sample state are recorded to facilitate robust statistical analyses [1, 2, 13].
The problem of retention time correction is similar in GC-MS and LC-MS small molecule profiling experiments. There are two schools of thought on how to address this: one is to align entire chromatogram profiles prior to peak detection (profile alignment) [26–30], and the other is to perform peak detection first, and then align extracted signal peaks to correct for retention time drifts (peak alignment or peak matching) [18–23]. In either approach one can rely on the time domain data only, or include highly selective information from the m/z data domain (mass spectra).
Both peak matching and profile alignment methods have been used in the context of GC-MS data. Jonsson and co-authors have developed a strategy for rapid comparison of GC-MS metabolic profiles, based on the division of a chromatogram into time windows . To correct the retention time drifts they relied on finding the maximum covariance between the chromatograms . This is a profile alignment method that uses the time domain data only (Figure 1, branch 3). To be effective this method requires that chromatographic profiles to be aligned are similar to one another, as was the case in the analysis of leaf plant extracts where the main purpose of the alignment was to facilitate setting of time domain windows . A different alignment approach was used in the analysis of GC-MS data obtained from the profiling of tomato volatiles, but the algorithm was not described in detail .
The peak matching approach is an alternative to the profile alignment that has received a considerable attention in GC-MS [18, 19, 22]. Johnson et al. matched GC-MS peaks by retention time within a pre-defined time window . Although this approach was shown to be reasonably effective in the GC-MS analysis of diesel fuels, much remains to be desired for applications in biomedical research. For example, it is unclear how to choose the target-chromatogram to which other chromatograms will be aligned; the choice of the cut-off window is arbitrary; and the proposed method of grouping the peaks depends on the order in which the grouping is performed. Duran and co-workers proposed a clustering procedure which groups peaks starting from the minimum retention time . This approach is symmetrical with respect to all experiments and therefore alleviates the need for an arbitrary choice of a target chromatogram. However, the proposed clustering depends on the peak minimum retention time and the arbitrary retention time window . We have attempted to improve on the peak clustering idea by using hierarchical clustering . However, applications of this method have shown that results are rather sensitive to the quality of input data, especially for large retention time drifts. In summary, the body of work on peak matching suggests that accurate peak alignment is unlikely to be achieved by relying on retention time data only.
The most accurate retention time correction is likely to be achieved when complete chromatogram data matrices are utilized. Such methods have been applied to LC-MS  and CE-MS  metabolic profiling data. The main drawback of any approach that works with entire chromatogram data matrices is the large amount of (uninformative) noise data that must be handled, which dramatically increases computational costs. Our preliminary calculations showed that progressive alignment of chromatogram matrices aimed to avoid the choice of a "target" data set is computationally prohibitive. Furthermore, it is an open question whether the computational costs can be justified by the potential increase in accuracy compared to peak matching methods, when peak matching is based on both retention times and mass spectra.
The most advanced approaches for correction of retention time drifts have been developed on LC-MS and CE-MS data [20, 21, 27, 30]. To our knowledge the peak matching involving mass spectra has not been applied to GC-MS data, except in an approach proposed for a systematic identification of conserved metabolites . This approach aims specifically at identification of conserved metabolites across experiments, and its peak matching is implicitly serving as input for a motif discovery algorithm .
Here we present an approach for peak matching that relies on both peak retention times and mass spectra, capable of accurate alignment of peak lists from a large number of replicate GC-MS experiments. We use dynamic programming to arrive at the optimal solution to the global alignment problem. Dynamic programming was previously used for the alignment of chromatogram data matrices [27, 30], but not in peak matching. The proposed approach uses a similarity function which balances effectively similarity in peak retention times with the similarity in mass spectra, mimicking the way an experienced human operator performs peak matching. The proposed algorithm is modelled after the heuristic solution for multiple sequence alignment [32, 33], and relies on progressive alignment to match an arbitrary number of data sets. We apply this approach to GC-MS metabolic profiling data acquired on wild-type and mutant Leishmania mexicana parasites. In the absence of a suitable metric and an accepted benchmark for the peak alignment algorithms, we quantify absolute errors relative to manually derived "true" answer. We show that (a) the proposed method performed close to the accuracy of the manually curated alignments by an expert operator; (b) the results are not sensitive to the input parameters, suggesting that the proposed method is robust.
The input for the peak alignment procedure consists of two or more peak lists obtained from hyphenated mass spectrometry experiments (GC-MS data used in this work). These peak lists may be derived from replicate analyses of the same sample (for example, polar extracts from wild-type parasites), or replicate analyses of different samples (for example, polar metabolite extracts of wild-type and mutant parasite lines).
Each experiment is represented by a single and unique peak list. In the most general case, a peak list could be understood as a list of peak objects, where each peak object is characterized with one or more attributes. In the work described here, a peak was characterized with a unique peak ID, the retention time at the peak apex, and the mass spectrum at the peak apex. Henceforth, we assume that a peak list consists of peaks ordered by their retention time. Consider a peak list LA that contains peaks . In this case the retention time of the peak p2 is greater than that of p1, the retention time of the peak p3 is greater than that of p2, and so on.
Alignment of two peak lists
Consider two peak lists L A =  and L B =  which contain a total number of nA and nB peaks, respectively. The alignment of the peak lists LA and LB refers to the establishment of a one-to-one correspondence between the peaks from the two lists, with the possibility that any peak from one list has no matching peak in the other list. The alignment between the peak lists LA and LB could be represented as a list of peak pairs, where pairing implies peak-to-peak matching. For example,
[(p1, q1), (p2, q2), (p3, -), (p4, q3), ...]
where p1 is matched with q1, p2 is matched with q2, and so on. The peak p3 from the list LA does not have a matching peak in the LB list. The number of elements in the above list will depend on the optimal alignment, but cannot be less than the larger of A and B, and cannot exceed A+B. For brevity, we refer to the alignment between peak lists LA and LB as LA:LB.
It is apparent from the above that the alignment of two peak lists closely resembles the problem of pairwise sequence alignment. The situation for p3 in Equation  corresponds to matching a sequence letter to a gap. Furthermore, the analogy can be extended even further if one considers that the peak list is an ordered sequence of peaks. The variations in peak retention times arise from various non-linear effects during the separation stage, such as uneven flow of the carrier phase in the GC or LC column. Such perturbations may affect absolute peak retention times and may shift portions of the chromatogram in a non-linear manner , but normally do not change the order of peaks in terms of their retention times. The analogy with pairwise sequence alignment implies that dynamic programming could be applied to find the optimal alignment of two peak lists, provided that a suitable scoring scheme can be devised.
The scoring scheme for peak alignment
In the above equation S(i,j) is the similarity between the mass spectra of the peaks i and j, ti and tj are retention times of peaks i and j, and D is the retention time tolerance parameter which determines the importance of retention times to the overall peak similarity score. The function S(i,j) can be any function that returns a measure of the similarity in m/z ions detected in mass spectra of the peaks i and j. In our test implementation, S(i,j) was calculated as the cosine of the angle between the two mass spectra vectors (i.e. the normalized dot product). This resulted in values between 0 and 1: when the two mass spectra are identical S(i,j) = 1, and when they are completely dissimilar S(i,j) = 0.
The second term in the equation  modulates the similarity in mass spectra. When two peaks have identical retention times (ti = tj) this term equals one, and the peak similarity reduces to the mass spectra similarity (P(i,j) = S(i,j)). When the retention times of the two peaks differ, then exp[-(ti - tj)2/2D2] < 1, and P(i,j) < S(i,j). The greater the retention time difference the peak similarity P(i,j) is more reduced relative to the mass spectra similarity S(i,j). The extent of this reduction depends on the relationship between the difference (ti - tj) and the parameter D. When (ti - tj) >> D then exp[-(ti - tj)2/2D2] will be close to zero and peak similarity will be close to zero (P(i,j) = 0), even if mass spectra are identical (S(i,j) = 1).
The peak similarity function gives the "cost" of matching any two peaks. In addition to this, the dynamic programming algorithm requires a gap penalty to be defined. In sequence alignment gaps are treated with the affine gap function, designed to penalize gaps and to favor the extension of existing gaps over the creation of new gaps. In peak alignment favoring gap extensions is not physically justified, therefore, we set the gap penalty to a fixed number (G). With the above definition of P(i,j) (equation ) the meaningful range of G is between 0 and 1. A low value of G would favor the insertion of gaps even when peaks are originating from the same chemical compound; a high value of G would favour the alignment of peaks that are actually different.
With the above definitions for the peak similarity function and the choice of gap penalty it is possible to deploy dynamic programming to find the global solution to the problem of optimal alignment of two peak lists. A standard dynamic programming procedure involves the following steps: (1) initialization of a two dimensional score matrix whose rows are indexed with the peaks of one peak list and columns are indexed with the peaks of the other peak list; (2) filling the cells of the score matrix based on the peak similarity function and possibly the gap penalty; (3) the best alignment between two peak lists is deduced from the traceback on the score matrix. We note that the pairwise alignment of two peak lists is analogous to the problem of global sequence alignment .
Alignment of two alignments
Consider an alignment between two internally fixed alignments: one consisting of N peak lists (henceforth referred to as N-alignment) and the other consisting of M peak lists (M-alignment). In order to find the best alignment between two such alignments with two-dimensional dynamic programming the scoring scheme must be extended.
where I is the indicator function and P is given by Equation . Here we extend the definition of the peak similarity function to include scoring of a peak with a gap, which is always zero (i.e. P(i,-) = P(-,j) = 0). Therefore, it is possible that the denominator is less than NM, since some of the terms in Equation  may be zero due to involvement of gaps.
The similarity function between the third position of the alignment LA:LB and the first peak from the list LC is W(r1, (p1, -)) = P(r1,p1) since P(r1,-) = 0. In the case of N = 1 and M = 1, the alignment reduces to a simple pairwise alignment discussed above.
where Zk is the alignment score for the position k in the alignment, and the summation is over all positions in the alignment. The value of Zk depends on whether the gap was inserted in the k-th position of the alignment or not. If the gap was inserted either in the N- or M-alignment then Zk = -G. If the gap was not inserted then Zk equals W(i,j) given by the Equation , where i is the position from the N-alignment and j is the position from the M-alignment that are aligned to one another to result in the k position of the final (N+M)-alignment.
Alignment of an arbitrary number of peak lists
Consider the alignment of U peak lists LA, LB, LC,... where the peak list LA contains a total of nA peaks, the list LB contains a total of nB peaks, the list LC contains a total of nC peaks, and so on. The overall goal of the alignment process is to align the peak lists LA, LB, LC,... to obtain the alignment LA:LB:LC:... This alignment can be represented as a table or a matrix with U rows, each corresponding to one peak list. The exact number of columns in the alignment table will depend on the optimal alignment, but must be equal or greater than the maximum of nA, nB, nC,...
Although it is possible to devise an exact dynamic programming solution for a multi-dimensional alignment, this quickly leads to a computationally intractable problem [33, 35]. Therefore we modelled our solution after the progressive multiple sequence alignment [32, 33], with changes to accommodate the unique requirements of peak alignment. To find the best alignment of peak lists LA, LB, LC,... we first calculate all possible pairwise alignments between the peak lists. From all pairwise alignments the alignment score for each pair of peak lists is calculated (TAB, TAC, TBC,...). In the next step, a dendrogram (guide) tree is built which provides the similarity relationship between the peak lists. A progressive pairwise alignment is performed following the branching order given by the guide tree. In the first step the two most similar peak lists are selected and aligned, resulting in a 2-alignment. The other peak lists are added gradually following the guide tree until all peak lists are exhausted.
Within-state and between-state alignment
In the case of experiments performed on different cell states with more than one replicate experiment per cell state it is reasonable to align first replicate experiments performed on each cell state ("within-state alignment"), and then to align the resulting alignments ("between-state alignment") . This is because within each cell state one deals with true experimental replicates, and in the hypothetical case of perfect reproducibility all peaks will be observed in all experiments. In experiments performed on different cell states, such as wild-type and mutant cells, some metabolites may be missing in one state relative to another, and the expectation that all peaks observed in one state will be present in the other state is no longer valid.
Consider an alignment of three cell states (wild-type (WT), mutant-1 (M1), and mutant-2 (M2)), each having eight replicate experiments. In the first step, within-state alignments are performed resulting in three 8-alignments (WT, M1, and M2). To solve the order of between-state alignment all possible pairwise alignments between WT, M1, and M2 alignments are created, the total alignment scores are calculated, and another guide tree is built. The between-state alignment is built progressively from WT, M1, and M2 alignments following the guide tree to result in the final 24-alignment WT:M1:M2.
In practice, the reproducibility in peak retention times of experiments performed on the same cell state is often better compared to experiments performed on different cell states. Therefore, for optimal alignment involving different cell states it may be useful to use different parameters for retention time tolerance (D) and gap penalty (G). We denote these parameters Dw, Gw for within-state alignment and Db, Gb for between-state alignment.
Metabolite profiling studies were performed on different cultivated stages of the human parasite, Leishmania mexicana. Comparisons were also made between wild type parasites and a mutant cell line lacking three major glucose transporters . Polar metabolites were analyzed by GC-MS and peak lists generated manually or by using the proposed alignment method to assess the accuracy of the alignment and the sensitivity of the latter approach to input parameters such as the gap penalty and the retention time tolerance.
Within-state alignment of the wild-type cells profiling experiments
Eight replicate extracts of L.mexicana wild-type cells were analyzed by GC-MS and peaks were manually pre-processed and aligned. In this way a correct peak alignment table was constructed from 1,337 signal peaks from all eight replicate experiments. The manual analysis showed 173 unique metabolites, and the final alignment table contained 1,384 fields arranged in 8 columns (replicate experiments) and 173 rows (metabolites).
Comparison of the obtained peak alignment tables with the ideal alignment table allowed counting of errors. In the case of a simple peak mixing error (such as shown in Figure 5(a)) two metabolites are affected, resulting in an error count of two. If three metabolites were affected by peak mixing three errors were counted. In the case of a metabolite splitting error one or more metabolites may be affected.
Alignment of replicate analyses of wild type and mutant metabolite extracts
Experiments used in peak alignment
Aver. No peaks
wild-type, stationary phase
167.1 ± 2.3
Δgt, stationary phase
166.0 ± 4.9
The complete alignment of wild-type and glucose transporter mutant experiments resulted in a total of 188 unique metabolites. The correct alignment table involving all 16 experiments was also compiled manually. A total of three errors were found in the within-state alignment of the wild-type experiments, and two errors were found in the within-state alignment of the mutant experiments. A comparison with the correct alignment table showed that incorrect between-state alignment affected a total of ten metabolites. This involved a segment of five misaligned metabolite rows between 10.2 and 10.5 minutes that had a prominent but anomalous feature at m/z = 155 that had created an effect of artificially similar mass spectra. It would be possible to remedy errors of this type with a more stringent retention time tolerance.
Discussion and Conclusion
GC-MS is a robust and sensitive platform for the profiling of certain metabolite classes [1, 4, 12, 13, 15]. Due to experimental limitations inherent in all chromatographic separations, slight drifts are observed in GC-MS elution times between experiments [17, 18]. These drifts are particularly problematic for non-targeted metabolic profiling studies, which aim to analyze all detectable analytes within multiple experiments [1, 12, 13, 19, 22, 23]. There are two schools of thought regarding how to address the retention time correction in hyphenated mass spectrometry (Figure 1). Algorithms that rely on time domain data only (Figure 1, branches 1 and 3) ignore highly pertinent information contained in the m/z dimension. Accumulated evidence suggests that effective retention time correction cannot be achieved based on retention time only, regardless of whether the approach involves peak matching or profile alignment [17–19, 22, 26, 28, 29].
Profile alignment approaches that use the full chromatogram data matrices are expected to be the most accurate (Figure 1, branch 4). These approaches, however, come at a high cost, both in terms of complexity and computational costs. For example, Bylund and co-authors used correlation optimised warping , while Baran and co-authors used dynamic time warping with explicitly specified time shifts . In both cases, an arbitrarily chosen "target" chromatogram was used to align all other chromatograms in a pairwise fashion, with the chromatogram data matrices segmented to facilitate the alignment [27, 30]. This raises several difficulties. For example, it is unclear how the choice of the target chromatogram may affect the final alignment. In principle, a more objective alignment of chromatogram data matrices could be achieved by calculating a similarity tree [32, 33]. This, however, must involve all possible pairwise alignments, which is likely to be computationally expensive. Furthermore, in the reported examples the chromatogram segmenting was based on strategic or node positions influenced by user chosen parameters , or a "representative" set of peaks . This in turn raises the question of how the segmenting method might affect the final alignment. Finally, these approaches handle a large amount of uninformative noise data, since only a small portion of the full chromatogram data matrix is informative signal.
Peak matching algorithms that use both time domain data and mass spectra are particularly promising, and have been applied to both LC-MS [20, 21] and more recently to GC-MS data . The input for these algorithms are signal peaks extracted from full chromatogram data matrices. Since the majority of uninformative data is discarded in the peak detection step, these methods operate on a vastly reduced data set while retaining highly selective information contained in the mass spectra. Here we propose an approach that falls into this category, and uses signal peak "objects" which are signals extracted from the chromatogram data matrix. A peak object may be characterized with several attributes including peak retention time (the time taken at the peak apex), peak mass spectrum (the m/z vector taken at the peak apex), experiment/cell state information, a unique peak ID, and so on. The result of an experiment is a list of peak objects, henceforth referred to as a peak list. From this viewpoint the peak matching problem is reduced to the alignment of peaks between multiple peak lists. If we assume that the elution order of peaks is conserved (a reasonable assumption for GC-MS; also an assumption widely used in proteomics based LC-MS ), this problem shows resemblance to extensively studied problem of multiple sequence alignment [32, 33]. In order to cope with rapidly escalating computational costs of an exact, multidimensional dynamic programming solution, efficient algorithms were developed for multiple sequence alignment [33, 35]. We have adapted this approach to the problem of peak alignment in multiple GC-MS experiments.
The method proposed here uses both peak retention times and mass spectra, and relies on dynamic programming to find the optimal solution to the global alignment problem. Any peak matching method that uses both similarity in retention times and mass spectra similarity depends on a balance between the two, and devising an approach that balances this correctly poses a considerable challenge. For example, it is possible to incorporate mass spectra similarity into the total peak similarity score used in progressive hierarchical clustering , but it is unclear how to weight the relative contributions of retention time and mass spectra. The problem here is that progressive clustering relies on a single cutoff of the dendrogram tree to delineate peak clusters (essentially, the cutoff is a constant across the entire data set), while the retention times drifts are highly non-linear (Figure 2 and ). In the work of Styczynski et al, the peak matching approach used to find conserved metabolites in GC-MS metabolic profiling experiments incorporated both the similarities in mass spectra and peak retention times . However, in the demonstration of this approach the retention time similarity was taken into account only coarsely, with an elution similarity threshold of 1 min . When two metabolites have distinct mass spectra, the retention time information can be neglected altogether and correct peak matching can still be achieved. However, for metabolites that elute in close proximity to one another, and give similar fragmentation patterns, the information provided by retention times is critical for a correct matching. Therefore, we would expect the method of Styczynski and co-authors to have difficulty when metabolites with similar fragmentation patterns elute in close proximity, as demonstrated by their inability to resolve isoleucine and leucine in the test data set .
We propose the peak similarity function that incorporates the similarity between peak mass spectra modulated by the similarity in peak retention times (Equation ). This function is governed by two parameters: the gap penalty function (G) and the retention time tolerance (D). The first parameter (G) determines how similar mass spectra must be for peaks to be considered to represent the same metabolite; the second parameter (D) is related to expected drifts in retention times between experiments. For example, if retention times in a particular set of experiments are highly reproducible, decreasing the retention time tolerance will enable this information to be leveraged for increased accuracy in the peak alignment.
To achieve the alignment of multiple peak lists, we rely on progressive alignment based on a similarity tree. The similarity tree is calculated from pairwise alignments, and the global alignment is built progressively, starting from the two most similar peak lists, and joining other peak lists in a process guided by the similarity tree [32, 33]. When several cell states with multiple replicate experiments per state are analyzed, within each cell state one deals with true experimental replicates, while in experiments performed on different cell states some metabolites may be missing altogether in one state relative to another. To accommodate for this complexity, we first perform a within-state alignment, followed by the between-state alignment built by aligning the within-state alignments. In the case of more than two sets of replicate experiments, a similarity tree is built based on pairwise similarities between fixed within-state alignments, and then the alignments themselves are aligned progressively following the similarity tree. Therefore multiple guide trees are built, one for each set of replicate experiments to facilitate within-state alignment. An additional guide tree may be built to facilitate between-state alignment if more than two states are present.
Several methods for peak matching based on both retention times and mass spectra (Figure 1, branch 2) have been described recently [20, 21, 23]. Of these only the approach of Styczynski and co-authors was developed on GC-MS data , while the software packages MZmine  and XCMS  were developed on LC-MS data. In our experience the latter software packages tend to overinterpret GC-MS data, assigning a greater number of peaks than expected (probably related to differences in fragmentation patterns between GC-MS and LC-MS). Nevertheless, the alignment algorithms implemented in MZmine and XCMS are relevant and we briefly review them here.
MZmine uses a simple alignment method to build the peak alignment table: one peak at a time is taken and an attempt is made to match it to an existing row of the peak alignment table. If no rows match a new row is created . A secondary peak detection method is used to fill the gaps in the resulting alignment table . We expect this approach to exhibit limitations similar to those observed in hierarchical clustering , and discussed above.
XCMS incorporates one of the most advanced peak matching algorithms for metabolite profiling data described to date . In this approach the distribution of peaks along the time domain by using the kernel density estimator is calculated, and regions where many peaks have similar retention times are identified . From this, a fixed time interval that determines each group of peaks is deduced . In practice, the retention time drifts are distributed in a highly irregular fashion, and a fixed time interval is unlikely to be able to capture peak groups correctly. This is suggested by observed peak collisions, where more than one peak from the same experiment is joined into a single group . The same problem was encountered in other peak matching methods [19, 22], and requires additional, empirical intervention, such as "collision resolution"  or "tie-breaking" in XCMS . The approach we propose inherently prevents peak collisions. Furthermore, it does not rely on any fixed intervals to group peaks, nor does it rely on any assumptions about the distribution of peaks across the samples.
It is of interest to compare the method proposed here to the approach for constructing signal maps, described recently in LC-MS proteomics experiments . Underlying the calculation of signal maps is the method for optimal alignment of chromatogram data matrices, that can be classified as belonging to branch 4 in Figure 1. These authors used the Needleman-Wunsch algorithm to align full chromatogram data matrices obtained from LC-MS proteomics experiments . They also used minimum spanning tree, or progressive merging of pairwise alignments into a consensus run, to produce a global signal map . Apart from the overt difference in that we focus on extracted signals rather than using the full chromatogram data matrices, there are several important yet more subtle differences between the two methods. First, in contrast to the method of  the score function proposed here incorporates both similarities in retention times and mass spectra. Second, in constructing signal maps from peptide mass spectra Prakash and co-workers allow for multiple mass spectra in one experiment to correspond to a single mass spectrum in the other experiment . Since we are aligning peak objects rather than the raw signal, our approach inherently allows only one-to-one peak matching, and we consider explicitly the question of gaps (a match-to-nothing). Both of these features are critical for the ability to achieve the alignment of signal peaks in GC-MS. Similarly as in the approach of , we rely on the two-dimensional formulation of the global sequence alignment problem. However, during progressive alignment of individual experiments we do not merge individual runs into a "consensus" run, because this has a potential to degrade signal if two unrelated signal peaks are merged. Rather, our approach is based on the generalized solution for the alignment of two alignments, i.e. an N- and M-alignment. This has an additional benefit to be directly extensible to the alignment of pre-computed alignments representing replicates of different cell states (where signal-to-nothing matches may be significant), and allows one to tackle the problem of an arbitrary number of cell states with the same conceptual framework and finite computational resources. We note that the modification proposed for the calculation of mass spectra similarity , and results from other proteomics studies , could be used in the method proposed here.
It would be useful to compare more directly the performance and accuracy of the approach proposed here to the approaches for peak matching described previously. Unfortunately, this is currently not feasible for two reasons. Firstly, a standard data set which could be used as a benchmark does not exist. Furthermore, it is difficult to create such a data set ad hoc. Most other alignment methods of interest, such as methods implemented in software packages MZmine  or XCMS , are embedded in the multi-step processing pipelines, and the input to peak matching is generated directly from the output of package-specific peak detection. Secondly, a suitable metric to quantify differences between two methods does not exist. This is particularly problematic, because in even the simplest case the resulting alignment table may involve hundreds of peak entries, and it is not clear how to represent and quantify the differences between two such tables.
The development of a suitable metric to compare two peak matching methods is likely to require a separate research effort. To circumvent this we have performed a detailed analysis of absolute error and compiled error statistics relative to the "correct" alignment table created manually (Figures 6 and 7). The error analysis performed on experimental data consisting of eight replicate GC-MS experiments collected on Leishmania parasites with ~170 peaks per experiment showed that, for near optimal parameters, <5 metabolites were affected by misalignment errors. This approaches the accuracy achieved in a manual alignment, which required tens of man-hours for the tested data set.
The alignment accuracy was not overly sensitive to empirical parameters for a wide range of values (gap penalty and retention time tolerance), suggesting that the method is robust. To address the problem of a benchmark data set, we provide our test data set in the supplementary material (see Additional files 1, 2, 3). This includes input peak lists, raw chromatogram data matrices, and alignment tables, including those produced for optimal parameters, as well as the "correct" alignment table prepared manually.
The main drawback of the proposed approach is that it operates on a set of signal peaks obtained from peak detection pre-processing. Automated peak detection remains a challenge , and any errors introduced during peak detection (such as missing peaks or false peaks) will propagate through to the alignment tables. This is inherent in all peak matching methods, and could be viewed as an advantage as well. Focusing on signal peaks results in a greatly reduced data set which contains the vast majority of interesting signal, and allows one to leverage this information for downstream processing , in addition to significantly reducing computational costs required for downstream processing.
Metabolic profiling of L.mexicana
L. mexicana wild-type and L. mexicana Δgt promastigotes (lacking three glucose transporters  were cultivated in RPMI media, pH 7.4 containing 10 % fetal calf serum (FCS). Parasites were harvested in mid-log phase or stationary phase (24 hr and 96 hr after inoculation, respectively). Prior to harvesting, the culture medium was rapidly chilled to 0°C by immersing the culture flasks in a dry-ice/ethanol bath. The temperature of the medium was monitored with an electronic thermometer and subsequent steps performed at 0°C. Replicate aliquots of the quenched culture medium (containing 4 × 107 cells) were harvested by centrifugation (15,000 g, 30 sec, 0°C) and washed twice with ice-cold phosphate-buffered saline, pH 7.5. The washed cell pellets were suspended in chloroform:methanol:water (containing 1 nmole scyllo-inositol and 1 nmole norleucine internal standards) (1:3:1 v/v/v) and extracted at 60°C for 15 min. Water was added to give a final chloroform:methanol:water ratio of 1:3:3 (v/v) and the aqueous and organic phases separated by centrifugation. The upper aqueous phases were dried in vacuo, suspended in 20 mg/ml methoxyamine in pyridine (20 μl, 16 hr, 25°C) with continuous shaking and then derivatized with MSTFA + 1% TMCS (Pierce; 20 μl, 1 hr, 25°C). Samples (1 μL) were injected onto an Agilent 6890N gas chromatograph interfaced with a 5973 mass selective detector using a 7683 automatic liquid sampler. Gas chromatography was performed on a 30 m DB5-MS column with 0.25 mm inner diameter and 0.25 μm film thickness (J&W Scientific). Injection temperature was 270°C, the interface set at 250°C, and the ion source adjusted to 230°C. The carrier gas was helium (flow rate 1 ml/min). The temperature program was 1 min isothermal heating at 70°C, followed by a 12.5°C/min oven temperature ramp to 295°C, then 25°C/min to 320°C and held for 1 min. Mass spectra were recorded at 3.2 scans/s (m/z 50–500).
Post-processing and data preparation
The total ion-chromatogram was integrated in ChemStation (MSD Chemstation D.01.02.16, Agilent Technologies) by using the default integrator. Resulting peak tables were exported to external files for further processing, together with raw data in ANDI-MS format. Initially the TICs were examined visually for each experiment, and peak lists were edited manually to mark the reference peak and uninformative peaks originating from the derivatizing reagent (TMS). Subsequently the reference peak and uninformative peaks were removed from the peak lists, and peaks in the region 6.5 to 21.0 min of each chromatogram were selected for further processing. Prior to peak alignment the mass spectra at peak apexes were extracted from the ANDI-MS files, and signals at m/z 73 and 147 (largely due to the derivatizing reagent) were suppressed for all peaks. To remove spurious metabolites such as those that arise as artefacts of empirical peak integration, all metabolite rows with less than four peaks were discarded after the alignment (i.e. one half of the original sample size of eight replicate experiments) .
This work was supported by the Bio21 Molecular Science and Biotechnology Institute, University of Melbourne. MJM was supported by the Australian National Health and Medical Research Council (NHMRC) Programme grant and Principal Research Fellowship. DDS was supported by NHMRC "Dora Lush" Biomedical scholarship (Id. No. 359427).
- Fiehn O, Kopka J, Dormann P, Altmann T, Trethewey RN, Willmitzer L: Metabolite profiling for plant functional genomics. Nat Biotechnol. 2000, 18: 1157-1161. 10.1038/81137.View ArticlePubMedGoogle Scholar
- Allen J, Davey HM, Broadhurst D, Heald JK, Rowland JJ, Oliver SG, Kell DB: High-throughput classification of yeast mutants for functional genomics using metabolic footprinting. Nat Biotechnol. 2003, 21: 692-696. 10.1038/nbt823.View ArticlePubMedGoogle Scholar
- Sweetlove LJ, Last RL, Fernie AR: Predictive Metabolic Engineering: A Goal for Systems Biology. Plant Physiology. 2003, 132: 420-425. 10.1104/pp.103.022004.PubMed CentralView ArticlePubMedGoogle Scholar
- Fernie AR, Trethewey RN, Krotzky AJ, Willmitzer L: Metabolite profiling: from diagnostics to systems biology. Nat Rev Mol Cell Biol. 2004, 5: 763-769. 10.1038/nrm1451.View ArticlePubMedGoogle Scholar
- Koek MM, Muilwijk B, van der Werf MJ, Hankemeier T: Microbial metabolomics with gas chromatography/mass spectrometry. Anal Chem. 2006, 78: 1272-1281. 10.1021/ac051683+.View ArticlePubMedGoogle Scholar
- Sabatine MS, Liu E, Morrow DA, Heller E, McCarroll R, Wiegand R, Berriz GF, Roth FP, Gerszten RE: Metabolomic identification of novel biomarkers of myocardial ischemia. Circulation. 2005, 112: 3868-3875. 10.1161/CIRCULATIONAHA.105.569137.View ArticlePubMedGoogle Scholar
- Robertson DG: Metabonomics in toxicology: a review. Toxicol Sci. 2005, 85: 809-822. 10.1093/toxsci/kfi102.View ArticlePubMedGoogle Scholar
- Keun HC: Metabonomic modeling of drug toxicity. Pharmacol Ther. 2006, 109: 92-106. 10.1016/j.pharmthera.2005.06.008.View ArticlePubMedGoogle Scholar
- Gibney MJ, Walsh M, Brennan L, Roche HM, German B, van Ommen B: Metabolomics in human nutrition: opportunities and challenges. Am J Clin Nutr. 2005, 82: 497-503.PubMedGoogle Scholar
- German JB, Watkins SM, Fay LB: Metabolomics in practice: emerging knowledge to guide future dietetic advice toward individualized health. J Am Diet Assoc. 2005, 105: 1425-1432. 10.1016/j.jada.2005.06.006.View ArticlePubMedGoogle Scholar
- Nikiforova VJ, Gakiere B, Kempa S, Adamik M, Willmitzer L, Hesse H, Hoefgen R: Towards dissecting nutrient metabolism in plants: a systems biology case study on sulphur metabolism. J Exp Bot. 2004, 55: 1861-1870. 10.1093/jxb/erh177.View ArticlePubMedGoogle Scholar
- Roessner U, Luedemann A, Brust D, Fiehn O, Linke T, Willmitzer L, Fernie A: Metabolic profiling allows comprehensive phenotyping of genetically or environmentally modified plant systems. Plant Cell. 2001, 13: 11-29. 10.1105/tpc.13.1.11.PubMed CentralView ArticlePubMedGoogle Scholar
- Urbanczyk-Wochniak E, Luedemann A, Kopka J, Selbig J, Roessner-Tunali U, Willmitzer L, Fernie AR: Parallel analysis of transcript and metabolic profiles: a new approach in systems biology. EMBO Rep. 2003, 4: 989-993. 10.1038/sj.embor.embor944.PubMed CentralView ArticlePubMedGoogle Scholar
- Tolstikov VV, Lommen A, Nakanishi K, Tanaka N, Fiehn O: Monolithic silica-based capillary reversed-phase liquid chromatography/electrospray mass spectrometry for plant metabolomics. Anal Chem. 2003, 75: 6737-6740. 10.1021/ac034716z.View ArticlePubMedGoogle Scholar
- Halket JM, Waterman D, Przyborowska AM, Patel RK, Fraser PD, Bramley PM: Chemical derivatization and mass spectral libraries in metabolic profiling by GC/MS and LC/MS/MS. J Exp Bot. 2005, 56: 219-243. 10.1093/jxb/eri069.View ArticlePubMedGoogle Scholar
- Stein SE: An Integrated Method for Spectrum Extraction and Compound Identification from Gas Chromatography/Mass Spectrometry Data. J Am Soc Mass Spectrom. 1999, 10: 770-781. 10.1016/S1044-0305(99)00047-1.View ArticleGoogle Scholar
- Malmquist G, Danielsson R: Alignment of chromatographic profiles for principal component analysis: a prerequisite for fingerprinting methods. Journal of Chromatography A. 1994, 687: 71-88. 10.1016/0021-9673(94)00726-8.View ArticleGoogle Scholar
- Johnson KJ, Wright BW, Jarman KH, Synovec RE: High-speed peak matching algorithm for retention time alignment of gas chromatographic data for chemometric analysis. J Chromatogr A. 2003, 996: 141-155. 10.1016/S0021-9673(03)00616-2.View ArticlePubMedGoogle Scholar
- Duran AL, Yang J, Wang L, Sumner LW: Metabolomics spectral formatting, alignment and conversion tools (MSFACTs). Bioinformatics. 2003, 19: 2283-2293. 10.1093/bioinformatics/btg315.View ArticlePubMedGoogle Scholar
- Katajamaa M, Oresic M: Processing methods for differential analysis of LC/MS profile data. BMC Bioinformatics. 2005, 6: 179-10.1186/1471-2105-6-179.PubMed CentralView ArticlePubMedGoogle Scholar
- Smith CA, Want EJ, O'Maille G, Abagyan R, Siuzdak G: XCMS: processing mass spectrometry data for metabolite profiling using nonlinear peak alignment, matching, and identification. Anal Chem. 2006, 78: 779-787. 10.1021/ac051437y.View ArticlePubMedGoogle Scholar
- De Souza DP, Saunders EC, McConville MJ, Likic VA: Progressive peak clustering in GC-MS Metabolomic experiments applied to Leishmania parasites. Bioinformatics. 2006, 22: 1391-1396. 10.1093/bioinformatics/btl085.View ArticlePubMedGoogle Scholar
- Styczynski MP, Moxley JF, Tong LV, Walther JL, Jensen KL, Stephanopoulos GN: Systematic identification of conserved metabolites in GC/MS data for metabolomics and biomarker discovery. Anal Chem. 2007, 79: 966-973. 10.1021/ac0614846.View ArticlePubMedGoogle Scholar
- Frenzel T, Miller A, Engel KH: A methodology for automated comparative analysis of metabolite profiling data. European Food Research and Technology. 2004, 216: 1438-2377.Google Scholar
- Broeckling CD, Reddy IR, Duran AL, Zhao X, Sumner LW: MET-IDEA: data extraction tool for mass spectrometry-based metabolomics. Anal Chem. 2006, 78: 4334-4341. 10.1021/ac0521596.View ArticlePubMedGoogle Scholar
- Nielsen NPV, Carstensen JM, Smedsgaard J: Aligning of single and multiple wavelength chromatographic profiles for chemometric data analysis using correlation optimised warping. Journal of Chromatography A. 1998, 805: 17-35. 10.1016/S0021-9673(98)00021-1.View ArticleGoogle Scholar
- Bylund D, Danielsson R, Malmquist G, Markides KE: Chromatographic alignment by warping and dynamic programming as a pre-processing tool for PARAFAC modelling of liquid chromatography-mass spectrometry data. J Chromatogr A. 2002, 961: 237-244. 10.1016/S0021-9673(02)00588-5.View ArticlePubMedGoogle Scholar
- Jonsson P, Gullberg J, Nordstrom A, Kusano M, Kowalczyk M, Sjostrom M, Moritz T: A strategy for identifying differences in large series of metabolomic samples analyzed by GC/MS. Anal Chem. 2004, 76: 1738-1745. 10.1021/ac0352427.View ArticlePubMedGoogle Scholar
- Eilers PH: Parametric time warping. Anal Chem. 2004, 76: 404-411. 10.1021/ac034800e.View ArticlePubMedGoogle Scholar
- Baran R, Kochi H, Saito N, Suematsu M, Soga T, Nishioka T, Robert M, Tomita M: MathDAMP: a package for differential analysis of metabolite profiles. BMC Bioinformatics. 2006, 7: 530-10.1186/1471-2105-7-530.PubMed CentralView ArticlePubMedGoogle Scholar
- Tikunov Y, Lommen A, de Vos CH, Verhoeven HA, Bino RJ, Hall RD, Bovy AG: A novel approach for nontargeted data analysis for metabolomics. Large-scale profiling of tomato fruit volatiles. Plant Physiol. 2005, 139: 1125-1137. 10.1104/pp.105.068130.PubMed CentralView ArticlePubMedGoogle Scholar
- Feng DF, Doolittle RF: Progressive sequence alignment as a prerequisite to correct phylogenetic trees. J Mol Evol. 1987, 25: 351-360. 10.1007/BF02603120.View ArticlePubMedGoogle Scholar
- Thompson JD, Higgins DG, Gibson TJ: CLUSTAL W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, position-specific gap penalties and weight matrix choice. Nucleic Acids Res. 1994, 22: 4673-4680. 10.1093/nar/22.22.4673.PubMed CentralView ArticlePubMedGoogle Scholar
- Needleman SB, Wunsch CD: A general method applicable to the search for similarities in the amino acid sequence of two proteins. J Mol Biol. 1970, 48: 443-453. 10.1016/0022-2836(70)90057-4.View ArticlePubMedGoogle Scholar
- Lipman DJ, Altschul SF, Kececioglu JD: A tool for multiple sequence alignment. Proc Natl Acad Sci U S A. 1989, 86: 4412-4415. 10.1073/pnas.86.12.4412.PubMed CentralView ArticlePubMedGoogle Scholar
- Burchmore RJ, Rodriguez-Contreras D, McBride K, Merkel P, Barrett MP, Modi G, Sacks D, Landfear SM: Genetic characterization of glucose transporter function in Leishmania mexicana. Proc Natl Acad Sci U S A. 2003, 100: 3901-3906. 10.1073/pnas.0630165100.PubMed CentralView ArticlePubMedGoogle Scholar
- Prakash A, Mallick P, Whiteaker J, Zhang H, Paulovich A, Flory M, Lee H, Aebersold R, Schwikowski B: Signal maps for mass spectrometry-based comparative proteomics. Mol Cell Proteomics. 2006, 5: 423-432. 10.1074/mcp.M500133-MCP200.View ArticlePubMedGoogle Scholar
- Wolski WE, Lalowski M, Martus P, Herwig R, Giavalisco P, Gobom J, Sickmann A, Lehrach H, Reinert K: Transformation and other factors of the peptide mass spectrometry pairwise peak-list comparison process. BMC Bioinformatics. 2005, 6: 285-10.1186/1471-2105-6-285.PubMed CentralView ArticlePubMedGoogle Scholar
- Reiner E, Abbey LE, Moran TF, Papamichalis P, Schafer RW: Characterization of normal human cells by pyrolysis gas chromatography mass spectrometry. Biomed Mass Spectrom. 1979, 6: 491-498. 10.1002/bms.1200061107.View ArticlePubMedGoogle Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.