 Methodology
 Open access
 Published:
Nontargeted homologue series extraction from hyphenated high resolution mass spectrometry data
Journal of Cheminformatics volumeÂ 9, ArticleÂ number:Â 12 (2017)
Abstract
Background
A large proportion of polar anthropogenic compounds routinely released into the environment comprises homologue series, i.e., sets of chemicals differing in a repeating chemical unit. Using analytical techniques such as liquid chromatography coupled to highresolution mass spectrometry (LCHRMS), these compounds are readily measurable as signal sets with characteristic differences in mass and typically retention time. However, and despite such distinct characteristics, no computational approach for the direct, simultaneous and untargeted detection of all such signal sets comprising both LC and HRMS information has to date been presented.
Results
A fast twostaged approach has been developed to extract LCHRMS signal patterns which can be indicative of homologous analytes. In a first stage, a kd tree representation of picked LCHRMS peaks is used to extract all feasible 3tuples of peaks with restrictions in, e.g., mass defect differences. A second stage then recombines these 3tuples to larger series tuples while ensuring smooth changes in their retention time characteristics. This unsupervised approach was evaluated for ten effluent samples from Swiss sewage treatment plants (STPs), in both positive and negative electrosprayionization.
Conclusions
Beside recovering all continuous series of previously identified homologues, substantial fractions of nontargeted peaks could subsequently be assigned into very diverse peak series, although assignments were often not unique. The latter ambiguities were resolved by a selforganizing map technique and revealed both distinctive series meshing and rivaling combinatorial solutions in the presence of isobaric or gapped series peaks. When comparing STPs, several ubiquitous yet partially lowfrequent series mass differences emerged and may prioritize future identification efforts. The presented algorithm is freely available as part of the R package nontarget and as a userfriendly webinterface at www.envihomolog.eawag.ch.
Background
Homologue compounds differing in a common chemical subunit are regularly addressed in different areas of research. They have been focused on in fields as diverse as toxicology [1â€“3], biopolymers [4â€“7] food control [8, 9] and oil processing [10, 11]. In environmental research, natural and anthropogenic homologue sources have been detected in various media, with Surface Active Agents (Surfactants) even classified as High Production Volume Chemicals (HPVC) [12â€“19]. Not surprisingly, the analytical detection of homologue series (HS) has therefore been of great interest. Among the methods used, liquid chromatography (LC) and highresolution mass spectrometry (HRMS) have found abundant application to detect polar and semipolar HS with both high sensitivity and specificity [20]. However, while most applications have targeted a priori known or suspected HS, rather few nontargeted approaches have been established to extract the LCHRMS signals of yet unknown HS [21]. Concerning the latter, and as compared to nonhomologous compounds, the regular patterns in LCHRMS signals caused by the repetitive HS chemical units enable a specific fingerprinting. LCHRMS has therefore potential to routinely single out yet unknown signal series of, e.g., emerging contaminants, yet unidentified transformation products or differently ionized species of the same HS which otherwise evade targeted approaches. Once listed, the repetitive signals of individual or grouped HS would allow for averaged masses and additional peak relations to improve deisotoping, blank removal and finally their identification via complementary analytical methods (reference standards, MS^{n}) [22, 23].
Using mass spectrometric information, Kendrick mass defect plots and their extension to more than one type of chemical HS unit have been one popular method to determine the presence of signal patterns caused by unknown HS [11, 22, 24]. Another methodological branch has relied on extensive molecular formula fitting to detect regular patterns among measured classes of compounds, visualized by, e.g., van Krevelen diagrams or carbon versus mass plots [25â€“27]. Yet others have proposed a projection on regularly spaced vectors for HS pattern recognition [28]. Main drawbacks with these first approaches arise, inter alia, from either the restriction to a fixed set of basic HS units or the requirement to derive unique molecular formulas for demanding numbers of measured masses. Any available information from the orthogonal chromatographic dimension is therein omittedâ€”in spite of the often systematic differences in retention time (RT) among the homologues of a series [29, 30]. Methods to embrace chromatographic information and to combine it with HRMS data for signal series detection are however scarce. For instance, Pietrogrande and coworkers have proposed autocovariance functions to reveal joint regularities in mass and RT differences [31â€“34]. Here, one major LCrelated drawback is that RT differences cannot be easily linearized to align with autocorrelated differences in homologue masses because RT differences in a series are often not constant, vary significantly between different HS found in the same sample and can hardly be predicted in nontargeted analysis. Second, retracting and localizing single HS from autocovariance functions may not be straightforward. Third, infrequent HS may simply be masked by noise or the autocorrelation of more frequent HS. In contrast, other methods embracing both LC and HRMS information haveÂ rather aimed to aggregate data for comparison of samples, and do not aim at a detection of individual HS [4].
From a data mining perspective, the unsupervised extraction of regular HS patterns is indeed intricate, even from a list of picked signal peaks. As noted elsewhere [35], an exhaustive pairwise peak comparison to find regular mass differences is a timeconsuming task, not to speak of computing all possible series of such mass differences. Fortunately, differences in HS mass and RT can be restricted and their search optimized through appropriate metric data structures. To this end, a fast twostaged computational strategy to extract systematically spaced peak series from electrosprayionization (ESI) LCHRMS measurements is presented. The novel approach detects signal series even when (a) HS are not dominating a complex sample matrix, (b) no deisotoping or blanksubtraction was run beforehand, (c)Â signal peaks with differing measurement uncertainties exist in the same sample, (d) only limited prior HS information is available, (e) different HS units occur and (f) combinatorial ambiguities arise. The approach is evaluated for ten sewage treatment plant (STPs) effluent samples, both for revealing common patterns and for recovering the series of a priori identified HS compounds.
Methods
Based on a definition of LCHRMS signal series which can be caused by homologous compounds, series detection progresses in two stages. A first stage extracts the set S _{3} of feasible 3tupels (triplets) of peaks, while a second stage recombines them to larger tuples of nÂ >Â 3 in a stepwise manner.
Series definition
A series k of length nÂ â‰¥Â n _{ min } is defined as the tuple S _{ n,k }Â =Â (p _{1,k, } â€¦, p _{ n,k }) of picked LCHRMS signal peaks pÂ =Â {m/z, RT, intensity}, ordered by increasing m/z of the series peaks. S _{ n } denotes the set of all such series tuples having length n. Peaks being adjacent in a tuple are assumed to only differ in a repetitive and possibly unknown chemical unit or functional group, e.g., CH_{2} or OH. As a result, changes in the mass differences Î”m/z between any two adjacent series peaks p _{ j,k } and p _{ j+1,k } must remain within an error margin of [âˆ’4Îµ; 4Îµ]. Îµ here denotes a maximumÂ Â±Â m/z measurement error and may depend on m/z or peak intensity [36]. The Î”m/z of all series in a LCHRMS data set range within lower and upper bounds Î”m/z _{ min } and Î”m/z _{ max }, a priori set as the considered mass range of chemical units at given charges z.
Furthermore, Î”m/z restrains feasible differences in the mass defect of adjacent series peaks, denoted Î”m. The mass defect here refers to the deviation between an ion`s exact m/z value and its nearest integer [37]. For any monoisotopic chemical unit that could constitute a mass difference Î”m/z, bounds Î³ _{ min } and Î³ _{ max } for minimum and maximum differences in Î”m between a series peak p _{ j,k } and another peak p _{ j+1,k } can be determined by the mass defects of the isotopes of lowest mass for each of the elements contained in a unit. For example, and albeit lacking knowledge of the exact composition of a chemical unit but assuming only C, H, N, O, S, Cl and Br to be present, we can expect the value of Î”m between any two series peaks differing by Î”m/z to lie within [âˆ’0.0010 Î”m/z; 0.0078 Î”m/z]. The first factor Î³ _{ min } is determined by the ratio of mass defect to atomic mass of ^{79}Br, the second factor Î³ _{ max } by the ratio for ^{1}H. Factors for all of the other elements range in between these bounds. Î³ must be calculated over all chemical elements if no assumptions on the involved elements can be made. A mathematical definition of Î³ _{ min } and Î³ _{ max } is given in Additional file 1. Furthermore, one must account for the rounding involved in the calculation of mass defects: any Î”m along a series leading to mass defect values above 0.5 consequently wrap them to Î”mÂ âˆ’Â 1, whereas values below âˆ’0.5 convert to Î”mÂ +Â 1. Thus, differences by Î”m must be adapted accordingly.
Similar to the bounds for Î”m/z and Î”m, deviations in retention time RT between adjacent series peaks must also be restricted in order to reflect reasonable chromatographic characteristics caused by repeated introduction of chemical units [29, 30]. On the one hand, Î”RT _{ min } and Î”RT _{ max } hence define minimum and maximum bounds for differences in RT from one peak p _{ j,k } to its following tuple peak p _{ j+1,k }, respectively. On the other hand, changes in Î”RT across a series can be expected to be systematic [29, 30]. First, such changes in Î”RT from one pair of adjacent peaks in a tuple (p _{ j,k }, p _{ j+1,k }) to the next (p _{ j+1,k }, p _{ j+2,k }) must be smaller than a predefined value, denoted as Î”Î”RT. Second, cubic smoothing splines are fitted to model RT as a function of m/z in each series tuple [38]. Briefly, the model fit of each series as determined by the coefficient of determination (R ^{2}) has to be above a certain threshold, using a preset smoothing parameter Î»Â â‰¥Â 0.
Triplet detection
Constrained by the above outlined bounds for Î”m/z, Î”m and Î”RT, a first series detection stage uses kdimensional (kd) trees [39] as a metric data structure to enable a computationally fast extraction of peak 3tuples which might be feasible subtuples of larger series tuples. In a kd tree, each signal peak x from a LCHRMS data set is represented by a vector \(a_{x} \in {\mathbb{R}}^{4}\)
A geometrical depiction of the elements in a _{ x } is given by the blue lines in Fig.Â 1. The second and third elements \(a_{{x_{2} }}\) and \(a_{{x_{3} }}\) transform the minimum and maximum change in mass defect with changing peak mass to a metric scale that can be represented in a kd tree. In the latter, each tree node (alias peak) splits the space and the therein contained peaks into two partitions, using the peak with the median value for one of the elements in a _{ x }. The resulting two partitions are in turn split using the next element in a _{ x }, each by another median peak contained in those partitions (cp. numbered splitting planes in the TOC for an arbitrary example in \({\mathbb{R}}^{3}\)). Starting with the first entry of a _{ x } for the root node and recursively cycling over entries of a _{ x } until partitions with a single peak (i.e., terminal nodes) are reached, a kd tree supports fast range queries. These queries are conducted to extract all peaks from two subspaces of types L and H with lower and higher m/z repeatedly centered at each LCHRMS peak. The extracted peaks are then successively recombined to screen for all unique peak combinations that can form 3tuples in accordance with the above series definition and that include the current center peak as the second element of a triplet (cp. green and blue dots in Fig.Â 1). The peaks queried with these subspaces usually represent a minor fraction of all measured LCHRMS peaks and the recombination to feasible triplets thus greatly improves over a check using all peaks. The mentioned subspace types L and H result from combining the intervals
via their Cartesian products to the queried subspaces
Intervals I _{1}â€“I _{4} define bounds in each of the four dimensions of a _{ x } for a subspace H succeeding the queried center peak. In contrast, intervals I _{5}â€“I _{8} define a subspace L preceding the queried peak, as indicated by black lines and polygons in Fig.Â 1. Further details on how to account for the mentioned rounding issue of Î”m and to accelerate the computational retrieval of subspaces are provided in Additional file 2.
Tuple recombination
The second stage successively combines the extracted 3tuples to larger tuples. To this end, all pairwise combinations of tuples x and y from a set S _{ n } which only differ in their first and last peak members, i.e.,
or
and conform to the above series definitions concerning Îµ, changes in Î”RT and Î» are combined to a new (nÂ +Â 1)tuple in S _{ n+1}. After having formed all combinations from S _{ n }, the resulting tuples in S _{ n+1} are in turn recombined to larger tuples in the next set S _{ n+2}. This is repeated until an empty set is reached, wherein each ntuple is free to combine to several different (nÂ +Â 1)tuples. Therefore, a peak cannot be included more than once in one tuple, but several times in several different tuples. In every recursion, ntuples which can be combined to at least one new (nÂ +Â 1)tuple in S _{ n+1} are removed from S _{ n }; they otherwise remain in S _{ n } or are discarded when ranging below a minimum userdefined length n _{ min }. Moreover, redundant subtuples which form by a regular omission of peaks in larger ntuples of sets S _{ nâ‰¥5} need to be filtered at each recursion.
Series pairing
As mentioned, a peak may be a member of more than one series, as its containing 3tuples might have been incorporated into several different larger tuples instead of a single one. To elucidate the underlying reasons for such ambiguities, all unique series pairs that intersect in at least one peak of a LCHRMS sample were extracted and their properties characterized twofold.
On the one hand, the intersection angle Î¸ was used to approximate in how far two series x and y of such a pair were superjacent in the plane of RT and m/z. Î¸ is defined as
In this equation, numerator and denominator state the dot product and the product of the Euclidean norm of vectors with scaled mean values
of each series, respectively. Here, \(c_{\Delta RT}\) and \(c_{\Delta m/z}\) are the range of \(\overline{\Delta RT}\) and \(\overline{\Delta m/z}\) over all series. The smaller the value of Î¸, the more do two paired series overlie with each other in the RT vs. m/z plane. At Î¸Â =Â 0Ï€, they are fully superjacent.
On the other hand, a selforganizing map (SOM) was used to visualize and cluster common properties among the paired series to explain differences in Î¸ [40, 41]. Being an unsupervised learning strategy, SOMs allow the mapping of a large set of m multidimensional input vectors vÂ =Â (v _{1} ,â€¦,v _{ j } ,â€¦,v _{ m }) of series pair properties onto a smaller twodimensional grid of SOM nodes. The SOM can then be selectively displayed for the mapped properties; similar properties are herein mapped to close regions in the SOM while different ones are rather separated. In the given case, each input vector of series pair properties
contains the mean values of m/z and RT differences present in paired series x and y, arranged by \(\overline{{\Delta m/z_{x} }} \ge \overline{{\Delta m/z_{y} }}\) and \(\hat{c}_{\Delta RT}\) and \(\hat{c}_{\Delta m/z}\) representing the mean expected measurement uncertainties of Î”RT and Î”m/z, respectively. Based on these properties, an intersection angle Î¸ can be calculated for each SOM node via Eq.Â (14) to estimate the superjacency of series mapped onto it. Further information on the training and quality of the SOM is provided in the Additional file 3. The SOM calculations were conducted with the R kohonen package, parameterized as listed in the Additional file 4: Table S1 [42].
Sampling and analysis
Evaluation was carried out on 24Â h flowproportional samples taken from the effluent of ten Swiss sewage treatment plants in February 2010, as used and detailed in Schymanski et al. [16]. In short, a sample volume of 0.25Â L was each pHadjusted, filtered, spiked with 103 isotopelabeled standards and enriched via a mixedbed solidphase extraction. After basic/acidic extraction, further enrichment under a nitrogen gas stream, reconstitution with HPLC water to 1Â mL and a second filtering step, a final aliquot of 20 Î¼L was analyzed with HPLCESIHRMS. The chromatographic step comprised Waters XBridge C18 columns (Milford, USA) and a water/methanol gradient at a flow rate of 200 Î¼L/min generated by a Rheos 2200 low pressure mixing pump (Flux instruments, Basel, Switzerland). A QExactive (Thermo Fisher Scientific, San Jose, USA) was used for fullscan mass spectrometric analysis at a resolution of 140,000 at m/zÂ =Â 200, following electrospray ionization in each positive and negative modes (spray voltage +4 and âˆ’3Â kV, respectively; 350Â Â°C capillary temperature). A blank measurement was run prior to each block of positive and negative sample aliquots, respectively. The data files are openly accessible via the MassIVE repository [43].
Data processing
LCHRMS fullscan data were centroided and converted to openÂ mzXML format files with ProteoWizard (version 3.0.7162) [44, 45]. All downstream analysis was then run in the R statistical environment [46]. Utilizing the R package enviPick (version 1.2) [47], ion chromatograms were extracted in each file and each extracted chromatogram screened for signal peaks, with parameters listed in the Additional file 5: Table S2. Upon peakpicking, series were detected with the above outlined algorithm, as parameterized in Additional file 6: Table S3. For each peak being part of a series, both a blank subtraction and a deisotoping was run with the enviMass v3.1 [48] and the nontarget v1.9 [49] packages, respectively (see Tables S4 and S5 for parameters in Additional files 7 and 8). In the first case, a peakcentered RT and m/z window was checked for each sample peak to not contain raw blank data points higher than 0.1 times the maximum sample peak intensity to certify its presence in the effluent. A majority rule, i.e., a fraction ofÂ â‰¥0.5 peaks per series, was used for a final assignment of a series to be of blank origin. For deisotoping, a comparison with quantized simulation data enabled a grouping of the isotopologue peaks of an unknown compound, within given measurement uncertainties. The peaks in the individual isotopologue groups of each series peak were then ranked by increasing m/z. A series was assumed to be monoisotopic if the most frequent rank over all peaks in a series equaled 1.
Results and discussion
Series inventory and recovery
On average (Â±standard deviation, SD), 21,153Â Â±Â 3052 and 10,418Â Â±Â 831 peaks were picked from the LCHRMS measurements of the 10 STP samples in positive and negative ionization modes, respectively (Table S6, Additional file 9). A substantial mean fraction of 0.37Â Â±Â 0.09 of these peaks could be assorted into series for the positive mode, whereas a smaller and less variant fraction of 0.13Â Â±Â 0.03 was assorted in the negative mode. Only few of these detected series are likely caused by chance alone, as in fully unrelated sets of peaks. As estimated by additional randomization experiments in Table S7 of Additional file 10, false discovery rates amounted to much smaller mean fractions of 0.02Â Â±Â 0.01 and below for the positive and negative ionization modes, respectively. Furthermore, overall numbers of peaks assigned to series were strongly correlated with the total number of picked peaks in a STP sample, although series peaks dominated the measured set of picked peaks at only one location (STP ID 8, positive mode). Series counts were in turn correlated with the fraction of series peaks for both ionizations although the length of individual series varied greatly, from five and up to 30 peaks. Notably, series counts were often on the same order as the peak counts of which they were comprised, for reasons discussed in the next section. Overall, 7576Â Â±Â 4222 and 1018Â Â±Â 494 series were detected in positive and negative modes, respectively. The large SD was mainly driven by one STP (ID 8, Table S6).
To test the presented algorithm, a ground truth set of eight known HS compounds was utilized. These compounds had each at least five of their homologues tentatively identified in a majority of the discussed STP samples in a suspect screening campaign conducted by Schymanski et al. [16]; they consisted of the surfactants LAS, SPAC, DAT, STAC, C_{12}AES, C_{13}AES, SAS and PEG as listed in Table S6 of the named study. In line with this previous study, the full peak series of the four surfactants SPAC, STAC, C_{12}AES and PEG were consistently recovered in all ten STP samples by our algorithm. The peak series of the remaining four HS compounds were recovered in nine (DAT), four (SAS) and three (LAS, C_{13}AES) samples. In all other cases, series could not be recovered because either not all series peaks were consistently picked at lower intensities (40% of cases) or had partly erratic RT behavior (60% of cases). The algorithm thus successfully retrieved all continuous HS peaks with systematic RT differences among the individual homologues. Furthermore, homologue peaks in addition to those individually screened in the named study were detected in at least six cases. In another six cases, some of the HS peaks were also integrated into series other than those covered in the named study, hence complementing the previous suspect screening approach (cp. Figures S2 and S3 in Additional files 11 and 12).
Moreover, much lower series counts were observed in the two blank measurements. Only few of the STP sample series were conversely removed via majority voting during the blank subtraction step, i.e., series fractions of 0.10Â Â±Â 0.06 (positive ionization mode) and 0.07Â Â±Â 0.03 (negative ionization mode). Their absolute numbers correlated negatively with the total number of picked peaks in a sample, which may be explained by varying degrees of matrix suppression of blank signals in more complex samples. Of the remaining nonblank series, fractions of 0.46Â Â±Â 0.13 (positive) and 0.27Â Â±Â 0.08 (negative) series contained sporadic peaks which did not pass the blank subtraction individually. This may be attributed either to false detection of series comprising sporadic peaks also present in the blank or to uncertainties in the blank subtraction for an existing series. Deducing from the above mentioned randomization experiment (Table S7 of Additional file 10), we expect the first case to be less frequent than the second. For the latter, running the blank subtraction after peaks were assorted into series instead of before can help avoid sporadic series gaps which impede series detection. On the other hand, removing all sample series with sporadic blank peak assignments would overestimate counts of such sample blank series by an order of magnitude as compared to series counts found in the blank measurements. Similar uncertainties existed for the filtering of monoisotopic series, with their counts listed in column 8 of Table S6 in Additional file 9. Fractions of 0.72 (positive) and 0.46 (negative) of monoisotopic series contained infrequent peaks with masses suggesting a nonmonoisotopic composition (i.e., with m/z rankÂ >Â 1), which is in line with the false positive rates of isotopologue grouping. Using ensembles of peaks in each series after the series detection step instead of an earlier deisotoping based on singular peaks might thus improve deisotoping.
Series computation
The restrictions for Î”RT, Î”m/z and Î”m localized at each center peak decrease the computational burden of detecting meaningful 3tuples. The total number of all possible 3tuple peak combinations in samples thereby reduced by around seven orders of magnitude to averages of 4.3Â Ã—Â 10^{5} and 1.0Â Ã—Â 10^{5} 3tuples for the positive and negative ionization mode, respectively. Of these triplets, fractions of only 0.13 (positive) and 0.08 (negative) passed into 4tuples through pairwise combinations; passed fractions then strongly increased towards higher ntuple combinations. At this stage, fractions of up to 0.14 4tuple combinations could be excluded for having erratic changes in Î”RT, which then dropped mostly to zero for series with length nÂ â‰¥Â 5. Additional exclusion criteria such as the similarity of chromatographic peak shapes or the distribution of Î”m/z and intensity in a series may be approached in future versions. Overall, the computation time for series detection never exceeded 4.1Â min per sample on a standard computer, including parsing of results, and decreased rapidly with the number of detected triplets. For negative mode samples, computation time was hence below 0.5Â min (Windows 7, R version 3.1.3, 2.2Â GHz Intel core i74702 MQ processor, singlecore usage, 32Â GB RAM, 64 bit).
Superjacent series
The incorporation of a single peak into different series was common to all samples and ionization modes. Dominant mean fractions of 0.99Â Â±Â 0.01 (positive) and 0.96Â Â±Â 0.02 (negative) series thus shared peaks with other series, for reasons elucidated further below. Often, much more than one peak sharing existed per series, leading to a multitude of series pairs with at least one peak in common (last two columns of Table S6 in Additional file 9). A SOM was hence trained for one STP sample (positive ionization, IDÂ =Â 1 in Table S6) to map and cluster properties of series pairs that can explain such peak sharing for different intersection angles between the paired series. The resulting SOM with node values for \(\overline{{\Delta m/z_{x} }}\) and \(\overline{{\Delta m/z_{y} }}\) in the top and bottom panels is shown in Fig.Â 2. To recall, \(\overline{\Delta m/z}\) is the mean Î”m/z in a series; concomitant distributions of \(\overline{\Delta RT}_{x}\) and \(\overline{\Delta RT}_{y}\) across SOM nodes can be found in the Additional file 13: Figure S4.
Based on the SOM, several observations can be made. First, although series pairs with a wide array of different \(\overline{\Delta m/z}\) and \(\overline{\Delta RT}\) values exist, many pairs nevertheless cluster at certain nodes (black dots in Fig.Â 2 and Figure S4 of Additional file 13). In fact, just 13% of the nodes are able to summarize 90% of the pairs. This indicates that dominant patterns in series properties can account for significant proportions of series being paired with other series. Second, the contribution of nonmonoisotopic series herein is noteworthy, affecting as much as 42% of the pairings. Third, a majority of series pairs intersect at low angles Î¸ and are therefore largely superjacent, i.e., they are similarly positioned in the RT and m/z plane. Using a histogramderived threshold of Î¸Â <Â 0.08Ï€, this affects a predominant fraction of 0.81 series pairs in the considered STP sample (Additional file 14: Figure S5; cp. last column of Table S6 in Additional file 9 for fractions in other STPs). The concomitant SOM nodes onto which such superjacent pairs map are shown in white in Additional file 16: Figure S7. In these SOM regions, nodes with both series in a pair having \(\overline{\Delta m/z}\)Â â‰ˆÂ 14.016 are most frequently used for mapping (nodes 1â€“3 in Fig.Â 2 and S4 of Additional file 13). Based on an inspection of the LCHRMS data, it can be concluded that these superjacent series frequently result from closeeluting isobaric peaks. If overlapping in the Î”RT window of different tuples, isobaric peaks can cause an exponential increase in the number of possible combinations for forming series from these tuples. For example, 2^{n} series combinations of comparable \(\overline{\Delta m/z}\) arise for n pairs of isobaric peaks each located at different m/z values. Isobaric peaks from homologue isomers are indeed common and may require additional analytical separation to be extractable as fully nonsuperjacent series [15, 50]. One confirming example known to have isobaric peaks from different isomers of homologues differing by CH_{2} at \(\overline{\Delta m/z}\)Â â‰ˆÂ 14.016 is provided for the identified SPAC surfactant in Figure S2 of Additional file 11, albeit for the negative ionization mode.
Another less frequent reason for superjacent series was the sporadic occurrence of missing peaks in otherwise continuous series, e.g., at series ends with diminishing measurement intensities. As a result, closely superjacent series with \(\overline{\Delta m/z}\) being multiples of each other are detected. Because the affected series are no strict subsets of each other, they cannot be eliminated during the removal of subtuples at the end of the second stage of the algorithm. An aggravated example for illustrating superjacency caused by such series gaps is provided in Figure S6 of the Additional file 15. To clarify, \(\overline{\Delta m/z}\) values being multiples of each other can also arise for differently charged adducts of the same homologue series; these multiples are however not superjacent and can thus be distinguished. Similarly, the different series of the different isotopologues of a homologue compound are unlikely superjacent but rather parallel in orientation in the m/z vs. RT plane.
Meshed series
A notable 19% of series pairs were not superjacent (highlighted by the heat colors in Figure S7 of Additional file 16), but instructively arranged. For closer inspection, the set of most strongly clustered monoisotopic series pairings at intersection angles Î¸Â â‰¥Â 0.08Ï€ was selected from the SOM (black squares 4â€“11 in Fig.Â 2 and S4 of Additional file 13). The chosen series are in turn plotted in Fig.Â 3 and comprise seven distinct values in \(\overline{\Delta m/z}\).
One first group of interrelated series embraces \(\overline{\Delta m/z}\) values of 14.016, 44.026, 30.011 and 58.042 Th, with multiple pairings between these values. The cooccurrence of these values can be illustrated by using a subset of series related to the known PEG surfactant, shown in Figure S3 of Additional file 12. Therein, the first two values stem from Ethoxylate (C_{2}H_{4}O_{1}) and possibly Alkyl (CH_{2}) homologue units of variable length, with the first identified as part of the known PEG series (black triangles in Figure S3). Confirmingly, cooccurrence of both units has also been reported for homologues found elsewhere in STP effluents [12, 15, 51]. With (a) both units coexisting at all their differing lengths and (b) varying RT increases for both the resulting chains, a meshlike orientation of these series in the m/z vs. RT plane arises. In addition, the mutual orientation of both series types allows for further crossmeshing, formed by a subtraction (C_{1}H_{2}O_{1}) and a sum (C_{3}H_{6}O_{1}) of the former two homologue units. This overall hypothesis is also in agreement with observed mass defect differences Î”m, which are smaller for higher O/C ratios in these four series types (lower panel of Figure S3).
A second major group of interrelated series pairs extracted from the concerned SOM nodes comprises \(\overline{\Delta m/z}\) values of 7.008, 29.021, 51.034 and 58.042 Th. This second group is likely a result of adduct formation at zÂ =Â 2, considering (a) concomitant mass defect differences (cp. lower panel of Fig.Â 3), (b) the first two values being halves of the above discussed \(\overline{\Delta m/z}\) values of 14.016 and 58.042 Th and (c) the latter two values formable by multiples and subtractions among the former two.
Several implications related to the outlined meshing must further be stressed. First, series meshing does not only provide complementary information, but can also prevent false conclusions. That is, a \(\overline{\Delta m/z}\) value of 58.042 Th may as well suggest the occurrence of a propylene oxide unit instead of a sum of two different unitsâ€”and propylene units are known to exist for homologue series [52]. As a matter of fact, other series with \(\overline{\Delta m/z}\)Â =Â 58.042 Th not participating in any meshing occur in the very same STP sample, but have yet to be chemically identified. Second, negative RT differences (Î”RT _{ min }Â <Â 0) can arise for peak series formed by subtractions in crossmeshing (such as the one with \(\overline{\Delta m/z}\)Â =Â 30.011 Th in Figure S3 of Additional file 12), even when RT is expected to increase with the length of the underlying chemical homologue chains (as exemplified for another unknown series with the same mass difference in Figure S2 of Additional file 11). Third, crossmeshed series with \(\overline{\Delta m/z}\) values not matching any molecular formula can arise if the atoms of the homologue units do not form subsets. In the above first example group, C_{2}H_{4}O_{1} minus CH_{2} equals C_{1}H_{2}O_{1}; however, a hypothetical C_{2}H_{4}O_{1} minus CF_{2} would in contrast not suggest a valid molecular formula. Fourth, meshed series may have fixed sets of \(\overline{\Delta m/z}\) values but likely a more variable set of \(\overline{\Delta RT}\) values. In the SOM, this latter variation is covered by several mapping nodes, which should nonetheless be close to each other in the SOM if the topological continuity holds (cp. black squares 10 and 11 in the bottom panel of Fig.Â 2 for two such adjacent nodes). Finally, the complexity of series meshing will rise with the number of homologous chains per compound. Even for the discussed example, further additions and subtractions from crossmeshing of (CH_{2})_{2} and (C_{2}H_{4}O_{1})_{2} units exist, but these were less frequent and hence not selected from the SOM here.
STP comparison
To complement the above exemplification of series patterns based on only a single STP sample, Fig.Â 4 ultimately stacks the \(\overline{\Delta m/z}\) distributions of all blankcorrected series for every STP at both ionization modes (panels A and C, black lines) and filters for \(\overline{\Delta m/z}\) values prevalent across STPs (panels B and D, gray bars). Noteworthy, a multiplicity of \(\overline{\Delta m/z}\) values exist, many of which are highly conserved across the different STPs, although at different frequencies and with less diversity in the negative than in the positive ionization mode. Among the most frequent, especially in the negative mode, are the three discussed values of \(\overline{\Delta m/z}\)Â =Â 14.016, 44.026 and 58.042 Th, partly corresponding to alkyl, ethoxylate and possibly propylene oxide units (red solid lines) [16]. The larger frequency of the latter again suggests another origin than the mere addition of the former two units as presented above, both at charges zÂ =Â 1 and zÂ =Â 2. Other than that, a large but still incomprehensive fraction of the remaining \(\overline{\Delta m/z}\) values might be annotated via either charge or gaprelated multiples or additions/subtractions of these three units, albeit tentatively until identified as such (red dashed and gray bars). Moreover, seven of the most ubiquitous yet lowfrequent \(\overline{\Delta m/z}\) values among STPs in positive mode almost disappear when nonmonoisotopic series are excluded from the cumulative frequency analysis (gray dashed lines, blue bars). Their values occur around major nonaffected ones at mass differences equal to those between ^{12}C and ^{13}C and may involve series of different isotopologues of different carbonrich members of homologue series. However, without further identification attemptsâ€”which can now gain from additional information on series meshing and \(\overline{\Delta m/z}\) cooccurrence across STPsâ€”such annotations remain largely speculative. Given the prevalence of some \(\overline{\Delta m/z}\) values, detected series may nonetheless be engaged to cluster different STPs, to quantify the ubiquity of series across STPs or to find similarities of unpaired series arising from, e.g., transformations by a second SOM training.
Implementation
The outlined algorithm is freely available as function homol.search() in the R package nontarget [49] and accessible through a webinterface at www.envihomolog.eawag.ch [53]. With the package, parameters Î”m/z _{ min }, Î”m/z _{ max }, Î”RT _{ min }, Î”RT _{ max }, Î”Î”RT, n _{ min } , Îµ, Î», R ^{2} and the involved chemical elements can all be userdefined (cp. Table S3 in Additional file 3). Optionally, restrictions for Î”m/z can be included for a more targeted series detection or to confine the numbers of computed series in samples with even higher HS contents, e.g., oil extracts. Spline smoothing can be disabled and changes in Î”RT increased to comprise series with erratic RT behavior, although this will almost certainly trigger more false positive series as a tradeoff. Series results can finally be tagged to adduct and isotopologue groups with the package to derive component peak sets; the package documentation contains instructive script examples for executing all functions with an exemplary list of peaks. As complement, the webinterface facilitates series detection and data handling for nonprogrammers and allows a fully interactive visualization, filtering and export of results. Extensive clustering of series pairs such as the proposed SOM is not scope of the package or webinterface.
Conclusion
Given the large throughput in LCHRMS experiments, a visual detection of systematic signal patterns to pinpoint the presence of unknown homologous compounds from the accumulated data is futile. Hence, an untargeted yet efficient bottomup computation of picked peak series with systematic differences in mass and retention time is presented and evaluated. With just a minimum of prior information on expected homologous compounds to confine this detection, the presented algorithm will reveal series regardless of their specific ionized species, certain modifications during ionization or nonlinear RT properties. While coping with variable measurement uncertainties, the algorithm enables the detection of lowfrequent and lowintense series even in complex matrices if series peaks are properly picked and reach a minimum but adjustable series length. Furthermore, nonrandom inclusion of peaks into different series proved useful to discern possible ambiguities in assigning peaks to series and to identify series meshing caused by homologues with more than a single variable chemical unit. The detected series are highly beneficial as they facilitate subsequent identification efforts, can lead to a substantial data reduction and provide additional nontargeted statistics to compare different samples, amongst others. Future research might implement gaptolerant versions of the proposed algorithm and further data mining to automatize the digestion of the wealth of complex series interrelations.
Abbreviations
 HPVC:

high production volume chemicals
 HRMS:

highresolution mass spectrometry
 HS:

homologue series
 LC:

liquid chromatography
 NN:

nearest neighbor
 RT:

retention time
 SOM:

selforganized map
 STP:

sewage treatment plant
References
DeWitt JC (2013) Toxicological effects of perfluoroalkyl and polyfluoroalkyl substances. Springer, New York
Martin JW, Smithwick MM, Braune BM, Hoekstra PF, Muir DC, Mabury SA (2004) Identification of longchain perfluorinated acids in biota from the Canadian Arctic. Environ Sci Technol 38(2):373â€“380
Olsen GW, Ellefson ME, Mair DC, Church TR, Goldberg CL, Herron RM et al (2011) Analysis of a homologous series of perfluorocarboxylates from American Red Cross adult blood donors, 2000â€“2001 and 2006. Environ Sci Technol 45(19):8022â€“8029
Goodacre R, Heald JK, Kell DB (1999) Characterisation of intact microorganisms using electrospray ionisation mass spectrometry. FEMS Microbiol Lett 176(1):17â€“24
Oberacher H, Walcher W, Huber CG (2003) Effect of instrument tuning on the detectability of biopolymers in electrospray ionization mass spectrometry. J Mass Spectrom 38(1):108â€“116
Schneiter R, BrÃ¼gger B, Sandhoff R, Zellnig G, Leber A, Lampl M et al (1999) Electrospray ionization tandem mass spectrometry (ESIMS/MS) analysis of the lipid molecular species composition of yeast subcellular membranes reveals acyl chainbased sorting/remodeling of distinct molecular species en route to the plasma membrane. J Cell Biol 146(4):741â€“754
Seebach D (2001) Homologs of amino acids and explorations into the worlds of Î²and Î³peptides. In: Lebl M, Houghten RA (eds) Peptides: the wave of the future. Springer, Netherlands, pp 569â€“571
Rodrigues CM, Rinaldo D, dos Santos LC, Montoro P, Piacente S, Pizza C et al (2007) Metabolic fingerprinting using direct flow injection electrospray ionization tandem mass spectrometry for the characterization of proanthocyanidins from the barks of Hancornia speciosa. Rapid Commun Mass Spectrom 21(12):1907â€“1914
Yassin GH, Koek JH, Jayaraman S, Kuhnert N (2014) Identification of novel homologous series of polyhydroxylated theasinensins and theanaphthoquinones in the SII fraction of black tea thearubigins using ESI/HPLC tandem mass spectrometry. J Agric Food Chem 62(40):9848â€“9859
Hughey CA, Rodgers RP, Marshall AG (2002) Resolution of 11 000 compositionally distinct components in a single electrospray ionization Fourier transform ion cyclotron resonance mass spectrum of crude oil. Anal Chem 74(16):4145â€“4149
Roach PJ, Laskin J, Laskin A (2011) Higherorder mass defect analysis for mass spectra of complex organic mixtures. Anal Chem 83(12):4924â€“4929
Clara M, Scharf S, Scheffknecht C, Gans O (2007) Occurrence of selected surfactants in untreated and treated sewage. Water Res 41(19):4339â€“4348
Gawlik B, Bidoglio G (2006) Background values in European soils and sewage sludges. European Commission, Brussels
Lin P, Rincon AG, Kalberer M, Yu JZ (2012) Elemental composition of HULIS in the Pearl River Delta Region, China: results inferred from positive and negative electrospray high resolution mass spectrometric data. Environ Sci Technol 46(14):7454â€“7462
Ruan T, Song S, Wang T, Liu R, Lin Y, Jiang G (2014) Identification and composition of emerging quaternary ammonium compounds in municipal sewage sludge in China. Environ Sci Technol 48(8):4289â€“4297
Schymanski EL, Singer HP, Longree P, Loos M, Ruff M, Stravs MA et al (2014) Strategies to characterize polar organic contamination in wastewater: exploring the capability of high resolution mass spectrometry. Environ Sci Technol 48(3):1811â€“1818
Stenson AC, Landing WM, Marshall AG, Cooper WT (2002) Ionization and fragmentation of humic substances in electrospray ionization Fourier transformion cyclotron resonance mass spectrometry. Anal Chem 74(17):4397â€“4409
UNEP. Linear alkylbenzene sulfonate (LAS), OECD screening information dataset (SIDS) for high production volume chemicals. UNEP Publications [Internet]. Available from: http://www.chem.unep.ch/irptc/sidsk/OECDSIDS/LAS.pdf. Accessed 15 June 2015
Zeng L, Li H, Wang T, Gao Y, Xiao K, Du Y et al (2013) Behavior, fate, and mass loading of short chain chlorinated paraffins in an advanced municipal sewage treatment plant. Environ Sci Technol 47(2):732â€“740
Petrovic M, FarrÃ© M, De Alda ML, Perez S, Postigo C, KÃ¶ck M et al (2010) Recent trends in the liquid chromatographyâ€“mass spectrometry analysis of organic contaminants in environmental samples. J Chromatogr A 1217(25):4004â€“4017
Krauss M, Singer H, Hollender J (2010) LChigh resolution MS in environmental analysis: from target screening to the identification of unknowns. Anal Bioanal Chem 397(3):943â€“951
Hsu CS, Qian K, Chen YC (1992) An innovative approach to data analysis in hydrocarbon characterization by online liquid chromatographymass spectrometry. Anal Chim Acta 264(1):79â€“89
Kilgour DP, Mackay CL, LangridgeSmith PR, Oâ€™Connor PB (2012) Appropriate degree of trust: deriving confidence metrics for automatic peak assignment in highresolution mass spectrometry. Anal Chem 84(17):7431â€“7435
Kendrick E (1963) A mass scale based on CH_{2} = 14.0000 for high resolution mass spectrometry of organic compounds. Anal Chem 35(13):2146â€“2154
Kim S, Kramer RW, Hatcher PG (2003) Graphical method for analysis of ultrahighresolution broadband mass spectra of natural organic matter, the van Krevelen diagram. Anal Chem 75(20):5336â€“5344
Reemtsma T (2010) The carbon versus mass diagram to visualize and exploit FTICRMS data of natural organic matter. J Mass Spectrom 45(4):382â€“390
Wu Z, Rodgers RP, Marshall AG (2004) Twoand threedimensional van Krevelen diagrams: a graphical analysis complementary to the Kendrick mass plot for sorting elemental compositions of complex organic mixtures based on ultrahighresolution broadband Fourier transform ion cyclotron resonance mass measurements. Anal Chem 76(9):2511â€“2516
Carlson JE, Gasson JR, Barth T, Eide I (2012) Extracting homologous series from mass spectrometry data by projection on predefined vectors. Chemom Intell Lab Syst 114:36â€“43
HÃ©berger K (2007) Quantitative structure(chromatographic) retention relationships. J Chromatogr A 1158(1):273â€“305
Kaliszan R (2007) QSRR: quantitative structure(chromatographic) retention relationships. Chem Rev 107(7):3212â€“3246
Marchetti N, Felinger A, Pasti L, Pietrogrande MC, Dondi F (2004) Decoding twodimensional complex multicomponent separations by autocovariance function. Anal Chem 76(11):3055â€“3068
Pietrogrande M, Perrone M, Sangiorgi G, Ferrero L, Bolzacchini E (2014) Data handling of GC/MS signals for characterization of PAH sources in Northern Italy aerosols. Talanta 120:283â€“288
Pietrogrande MC, Bacco D, Marchetti N, Mercuriali M, Zanghirati G (2011) 2D autocovariance function for comprehensive analysis of twoway GCâ€“MS data matrix: application to environmental samples. Talanta 83(4):1225â€“1232
Pietrogrande MC, Zampolli MG, Dondi F (2006) Identification and quantification of homologous series of compound in complex mixtures: Autocovariance study of GC/MS chromatograms. Anal Chem 78(8):2579â€“2592
Kunenkov EV, Kononikhin AS, Perminova IV, Hertkorn N, Gaspar A, SchmittKopplin P et al (2009) Total mass difference statistics algorithm: a new approach to identification of highmass building blocks in electrospray ionization fourier transform ion cyclotron mass spectrometry data of natural organic matter. Anal Chem 81(24):10106â€“10115
Brenton AG, Godfrey AR (2010) Accurate mass measurement: terminology and treatment of data. J Am Soc Mass Spectrom 21(11):1821â€“1835
Sleno L (2012) The use of mass defect in modern mass spectrometry. J Mass Spectrom 47(2):226â€“236
Hastie TJ, Tibshirani RJ (1990) Generalized additive models. CRC Press, Boca Raton
Bentley JL (1975) Multidimensional binary search trees used for associative searching. Commun ACM 18(9):509â€“517
Kohonen T (2013) Essentials of the selforganizing map. Neural Netw 37:52â€“65
Kohonen T, Schroeder M, Huang T (2001) Selforganizing maps. Springer, New York, p 43
Wehrens R, Buydens LMC (2007) Self and superorganising Maps in R: the Kohonen package. J Stat Softw [Internet]. http://www.jstatsoft.org/v21/i05
Schymanski EL, Singer HP, Longree P, Loos M, Ruff M, Stravs MA, et al GNPSâ€”characterising Swiss wastewater with HRMS/MS 2014 [Internet]. UCDS Center for Computational Mass Spectrometry. ftp://massive.ucsd.edu/MSV000079601. Accessed 27 July 2016
Holman JD, Tabb DL, Mallick P (2014) Employing ProteoWizard to convert raw mass spectrometry data. Library, Curr Protoc Bioinform, pp 13â€“24
Kessner D, Chambers M, Burke R, Agus D, Mallick P (2008) ProteoWizard: open source software for rapid proteomics tools development. Bioinformatics 24(21):2534â€“2536
Team RC. R: a language and environment for statistical computing [Internet]. R Foundation for Statistical Computing, Vienna, Austria. http://www.Rproject.org/. Accessed 07 Mar 2015
Loos M enviPick: peak picking for high resolution mass spectrometry data [Internet]. https://cran.rproject.org/web/packages/enviPick/index.html. Accessed 11 May 2016
Loos M enviMass: utilities to process mass spectrometry (LCHRMS) data for environmental trend analysis [Internet]. https://github.com/blosloos/enviMass. Accessed 11 May 2016
Loos M Nontarget: detecting isotope, adduct and homologue relations in LCMS data [Internet]. https://cran.rproject.org/web/packages/nontarget/index.html. Accessed 11 May 2016
Erdem NS, Alawani N, Wesdemiotis C (2014) Characterization of polysorbate 85, a nonionic surfactant, by liquid chromatography vs. ion mobility separation coupled with tandem mass spectrometry. Anal Chim Acta 808:83â€“93
CoradaFernÃ¡ndez C, LaraMartÉ©n PA, Candela L, GonzÃ¡lezMazo E (2011) Tracking sewage derived contamination in riverine settings by analysis of synthetic surfactants. J Environ Monit R Soc Chem 13(7):2010â€“2017
Little J (2012) Identification of surfactants in commercial products by mass spectrometry [Internet]. https://littlemsandsailing.wordpress.com/2011/05/01/identificationofsurfactantsincommercialproductsbymassspectrometry/. Accessed 21 June 2015
Gerber C, Singer H, Loos M Eawag homologue series detection Webinterface [Internet]. http://www.envihomolog.eawag.ch. Accessed 12 May 2016
Authorsâ€™ contributions
ML drafted the manuscript, proposed, implemented and evaluated the presented algorithm for peak series extraction, including all data mining related to SOM training and cumulative mass differences among STPs. HS designed the experimental setup and advised on the application of the algorithm for environmental samples. ML and HS discussed the results and conclusions. Both authors read and approved the final manuscript.
Acknowledgements
The author gratefully acknowledges feedbacks and discussions provided by Francesco Corona, Juliane Hollender, Jennifer SchollÃ©e and Emma Schymanski. Experimental data were kindly provided by Matthias Ruff, Philipp LongrÃ©e and Christina RipollÃ©s Vidal. Christian Gerber has implemented the web interface. We would also acknowledge the suggestion of one reviewer to include randomization experiments.
Competing interests
The authors declare that they have no competing interests.
Availability of data and materials
The datasets supporting the conclusions of this article are available from the University of California (San Diego) MassIVE repository, ftp://massive.ucsd.edu/MSV000079601. The proposed algorithm is part of the R package nontarget, https://cran.rproject.org/web/packages/nontarget/index.html.
Funding
This study was partly financed by the Swiss Federal Office for the Environments (FOEN) and a mobility fellowship from the Swiss National Science Foundation (SNF).
Author information
Authors and Affiliations
Corresponding author
Additional files
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Cite this article
Loos, M., Singer, H. Nontargeted homologue series extraction from hyphenated high resolution mass spectrometry data. J Cheminform 9, 12 (2017). https://doi.org/10.1186/s133210170197z
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s133210170197z