Skip to main content

PARPST: a PARallel algorithm to find peptide sequence tags

Abstract

Background

Protein identification is one of the most challenging problems in proteomics. Tandem mass spectrometry provides an important tool to handle the protein identification problem.

Results

We developed a work-efficient parallel algorithm for the peptide sequence tag problem. The algorithm runs on the concurrent-read, exclusive-write PRAM in O(n) time using log n processors, where n is the number of mass peaks in the spectrum. The algorithm is able to find all the sequence tags having score greater than a parameter or all the sequence tags of maximum length. Our tests on 1507 spectra in the Open Proteomics Database shown that our algorithm is efficient and effective since achieves comparable results to other methods.

Conclusions

The proposed algorithm can be used to speed up the database searching or to identify post-translational modifications, comparing the homology of the sequence tags found with the sequences in the biological database.

Background

Protein identification is one of the most important goals of drug discovery research and in proteomics. Nowadays, the leading technique to identify a protein or a peptide is the tandem mass spectrometry (MS/MS). The basic idea of the identification of a peptide using tandem mass spectrometry is simple: a peptide is ionized and broken, at the peptide bond, in charge fragments (ions). The mass/charge ratio of the resulted fragments are visualized in a graphic called tandem mass spectrum or ms/ms spectrum (Figure 1). A ms/ms spectrum contains: the mass of the whole peptide, and a pattern of fragments that can be associated to a given sequence. Each fragment is characterized by mass/charge ratio and intensity: we refer to this pair as peak. A good quality spectrum should contain the complete series of y-ions (the fragment ions containing the carboxyl terminal), and the complete series of the b-ions (the fragment ions containing the amino terminus) (Figure 2). In this case it is very easy to reconstruct the amino acidic sequence for the peptide, since it is sufficient to compute the mass differences between two adjacent peaks in each of the two series. Unfortunately, in practice, many factors contribute to complicate the problem. Indeed, many b-ion or y-ion peaks might be absent from the spectrum, or it might be an imperfect fragmentation that causes a different types of ions, or the sample might be contaminated, or it might be present post-translational modifications or many other type of peaks might unexpected appear in the spectrum. There are three different computational approaches motivated by peptide sequencing: the peptide identification searching in a database, the de novo peptide sequencing, and the peptide sequence tag. The first method finds the best matching peptide from a sequence database using a scoring function based on the likelihood that an identified peptide is actually the peptide of the spectrum [1, 2]. This method is the mostly used but it is able only to identify peptide stored in a database. On the contrary the de novo method allows to identify a peptide using only the spectrum without any other previous knowledge and hence even if the peptide is not in a database. Many algorithms using this approach have been developed [310] having different time complexity, but the accuracy of them depends on the quality of the input spectrum: usually these algorithms cannot find the complete sequence due to missing peaks and hence the applicability of them is limited in practice. The peptide sequence tag approach combines the two previous methods: first the de novo method is applied to find a partial solution, so called sequence tag, and then a database search is applied to identify the complete sequence. The idea of using peptide sequence tags is not novel [11, 12] and it is recently re-proposed to increase the speed of the database searching [13, 14] or to find post-translation modifications [15]. Most of these algorithms are using a previous developed de novo approach and their time complexity to find the optimal solution according to any scoring function is at least O(n2), where n is the number of the mass spectrum peaks. A simple scoring function can be defined as the sum of the correspondent mass peak abundances found in the spectrum [3] or it can be based on the ion-type, favouring the b and y ions over the other types [7, 10]. In this paper we propose a parallel algorithm to determine all the peptide sequence tags longer than an input number of amino acids or all those scoring more than an input number, according to any scoring function. The parallel approach is motivated by demand of efficiency, since the interpretation of mass spectra is a high throughput process. The algorithm is work-efficient running in O(n) time on a concurrent-read, exclusive-write (CREW) PRAM [16] with log n processors, and it is a variation of the algorithm proposed in [5] to find peptide sequence tags. We simulate the parallelism by an implementation in Java on threads using barriers for synchronization. Our tests on 1507 spectra in the Open Proteomics Database shown that our algorithm is efficient and effective since achieves comparable results to other approaches.

Figure 1
figure 1

A ms/ms spectrum. In the x-axe we have the mass/charge ratio of each fragment and in the y-axe the abundance of it.

Figure 2
figure 2

A peptide fragmentation. In a mass spectrometer a whole peptide (below) is broken into two fragments, one of them charged. Usually the breaking point is the peptide bond: in this case we could obtain a b-ion that maintains the amino termini or a y-ion that maintains the carboxyl termini.

Methods

Let an experimental spectrum be given related to an unknown peptide P of mass m P . A peptide sequence tag is a short string of amino acid mass differences deduced from the fragment spectrum. Let any scoring function and any number δ be given. Our task is to determine all the sequence tags scoring at least δ. If the score reduces to count the length of the string, the output consists in the sequence tags of lengths at least δ. We refer to this problem as the peptide sequence tag problem.

Although a spectrum may contain a few different types of ions, for simplicity, we consider b-ions and y-ions only. Therefore we assume M = {m1, m2,…,mn} to represent a spectrum where the real numbers mi correspond to the m/z ratios of the peaks in the spectrum augmented with the numbers 1, 19, m P −17, and m P +1 that represent the “empty” b-ion, the “empty” y-ion, the weightiest b-ion, and the weightiest y-ion, respectively. Let us denote the set of the masses of the twenty amino acids by A. The peptide sequence tag problem can be reformulated in terms of paths in a graph. We build a labelled directed acyclic graph G = (V,E) such that

■ every node ν i is associated to a mi M (1 ≤ in);

■ (ν i , ν j ) E if and only if (m j m i ) A (1 ≤ i <jn).

The peptide sequence tag problem consists in determining any path between two nodes in the graph G with score greater than δ. The introduction of any scoring function corresponds to assign weights to the edges of the graph: the score of a path is the sum of the scores of the edges on the path.

The algorithm

The elements of A and M are stored in two sorted arrays in the shared global memory of the PRAM. We divide M into groups of log n consecutive elements, and we assign a “responsible” processor to each mass in each group so that the i th processor is responsible for the i th mass inside the group. We divide the algorithm in three procedures:

■ pre-computation procedure

■ propagation procedure

■ determination procedure.

We repeat each procedure for every group of log n elements, from the first one to the last one, and in reverse order. The procedures presented in this section are CREW since they require concurrent access to A and M in reading, but only exclusive access to the global memory in writing. In order to simplify the description that follows we give value one to the weight of each edge. This assumption corresponds to determine the longest feasible path for the de novo peptide sequencing problem or feasible paths longer than any given value as solutions for the peptide sequencing tag problem. In the next paragraph we describe the three procedures.

Pre-computation procedure

The first procedure consists in building the graph. Considering each group of log n masses, we associate a node to each mass, and so the i th processor is responsible for the i th node νi in the group. Processor i, for each element in A, checks if there exists a node ν j in M that differs from it to the mass of the element in A. In this case we put an edge between ν i and ν j in the graph. We store this edge in two different adjacency lists, the so called predecessor (pred) and successor (succ) list:

p r e d i [ k ] = j , M [ i ] M [ j ] = A [ k ] , s u c c i [ k ] = j , M [ j ] M [ i ] = A [ k ] . MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXafv3ySLgzGmvETj2BSbqeeuuDJXwAKbsr4rNCHbGeaGqipu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=xfr=xb9adbaqaaeGaciGaaiaabeqaaeaabaWaaaGcbaqbaeaabiqaaaqaaiabdchaWjabdkhaYjabdwgaLjabdsgaKnaaBaaaleaacqWGPbqAaeqaaOWaamWaaeaacqWGRbWAaiaawUfacaGLDbaacqGH9aqpcqWGQbGAcqGGSaalcqGHuhY2cqWGnbqtdaWadaqaaiabdMgaPbGaay5waiaaw2faaiabgkHiTiabd2eannaadmaabaGaemOAaOgacaGLBbGaayzxaaGaeyypa0Jaemyqae0aamWaaeaacqWGRbWAaiaawUfacaGLDbaacqGGSaalaeaacqWGZbWCcqWG1bqDcqWGJbWycqWGJbWydaWgaaWcbaGaemyAaKgabeaakmaadmaabaGaem4AaSgacaGLBbGaayzxaaGaeyypa0JaemOAaOMaeiilaWIaeyi1HSTaemyta00aamWaaeaacqWGQbGAaiaawUfacaGLDbaacqGHsislcqWGnbqtdaWadaqaaiabdMgaPbGaay5waiaaw2faaiabg2da9iabdgeabnaadmaabaGaem4AaSgacaGLBbGaayzxaaGaeiOla4caaaaa@702C@

Note that any node can have at most twenty predecessors or successors, or none. Since M is a sorted array, using a binary search algorithm to determine the predecessors and successors, the pre-computation takes O(log n) time for each group and hence O(n) totally.

Propagation procedure

The second procedure of the algorithm permits, for each node, to compute the maximum length path passing through it. This goal is reached by iterating the search of the predecessor (successor) of every node using the pointer jumping technique [16] in every group. In order to handle the propagation, processor i stores and updates the current predecessor in the start_path pointer:

start_path[i] = h {1, …, n} at least one path from ν i to ν h exists.

Note that all the predecessors of ν i belong to the ν i 's group or to any group that precedes it, being M sorted. Hence all the start_path pointers of the predecessors of ν i are known, when ν i 's group is processed, due to the order in which groups are handled. The same is done to update the current successor in end_path. We also calculate the distances d s and d e from any node ν i to the ν h node pointed by start_path[i] and end_path[i] pointers. At the end of the propagation procedure these two pointers, related to each node ν i , will point to the termini nodes of the longer path passing through ν i . Algorithm “Propagation” (Figure 3) describes only the computation of d s and start_path for any group, while d e and end_path can be obtained by replacing pred and start_path with succ and end_path, respectively. At first, for each node i, we initialize the start_path[i] pointer:

Figure 3
figure 3

Algorithm of the Propagation procedure. Propagation procedure permits, for each node, to compute the maximum length path passing through it. Pseudo-code is presented for the computation of start_path and d s for any group, while d e and end_path can be obtained by replacing pred and start_path with succ and end_path, respectively.

  1. a)

    if i has only one predecessor j, then start_path[i] = j and d s [i] = 1 (Fig. 3, stat. 3–5);

  2. b)

    otherwise, start_path[i] = i and d s [i] = 0 (Fig. 3, stat. 6–8).

Then, for each node i, we repeat the following steps until there are no changes in any start_path of the group (that is start_path[i] = start_path[start_path[i]], for all i in the group):

  1. a)

    if start_path[i] points to a node different from i and different from start_path[start_path[i]], then we assign d s [i] = d s [i] + d s [start_path[i]] as the new distance of the node, and start_path[i] = start_path[start_path[i]] for the pointer (Figure 4a; Figure 3 stat. 14–16);

Figure 4
figure 4

Propagation. Propagation procedure after the initialization, updates the start_path pointers. pred edges are represented as continued arrows, start_path pointers are represented as broken arrows.(a) If start_path[i] points to a node different from i (e.g. a predecessor of i) and different from start_path[start_path[i]] = j, then we assign start_path[i] = j. (b) If i has all the predecessors with start_path pointers pointing to themselves or predecessors with start_path pointing to the same node j, then we assign start_path[i] = j. (c) If all the predecessors of i have the start_path pointers cycling on themselves or start_path pointing to a node without predecessors, we consider the predecessor j having the maximum d s distance and we assign start_path[i]= j.

  1. b)

    otherwise, if i has all the predecessors with start_path pointers pointing to themselves or predecessors with start_path pointing to the same node j, then we assign start_path[i] = j. d s [i] becomes the maximum distance d s of predecessors pointing to j, plus 1 (Figure 4b; Figure 3, stat. 18–22);

  2. c)

    otherwise, if all the predecessors of i have the start_path pointers cycling on themselves or start_path pointing to a node without predecessors, we consider the predecessor j having the maximum d s distance and we assign start_path[i] = j and d s [i] = 1 + d s [j] (Figure 4c; Figure 3, stat. 24–29);

  3. d)

    otherwise, the node waits for some changes in the start_path pointers of its predecessors.

At the end of the propagation procedures, each node i knows the maximum distance d s [i] + d e [i] of a path passing through it, the starting node start_path[i], and the ending node end_path[i] of this path. The computational complexity of this procedure is O(log n) time for each group. Indeed, in the worst condition only one node at time is unlocked and it can upload the start_path. At the beginning, we have a set of pointer trees. We are interested in the sum of their heights. This sum is obviously less than log n. Pointer jumping and merging operations decrease the total height since a tree of height h is transformed into a star by applying pointer jumping in O(log(h)) steps, and the root of a star “hooks” to the parent of any of the root's predecessor in G. Therefore, in the worst case, if h max is the maximum height of the initial set of, say k, pointer trees, all these trees degenerate into stars in O(log(h max )) time, and finally they are merged in a list ranking of roots, and the algorithm stops in O(k) time. Since h max , klog n in every group, and we apply Algorithm “Propagation” to all the n/log n groups, the time complexity is O(n).

Determination procedure

This procedure allows to retrieve the solutions of the peptide sequence tag problem. Some change to the procedure permits to compute all the feasible paths of maximum length or all the feasible paths with length more than δ. We describe the latter case. At the end of the previous section, each node i having d s [i] + d e [i] > δ belongs to a solution of the peptide sequence tag problem. Moreover the set of the nodes i such that start_path[i] = i and d e [i] > δ are the starting nodes of any solution. In order to print all the solutions we can use a sequential procedure, taking at most O(ns), where s is the number of the possible sequence tags. Indeed, beginning from each starting node i we print all the possible solutions visiting only the successors j such that d s [i]+1+d e [j] > δ, and so forth for the successors of these nodes.

Results

In order to understand the performance of our algorithm and to compare it with other existing software, we simulated the processes by using the multithreading in Java, addressing the synchronization by means of barriers. We tested our program on a four 2 GHz dual-core Intel processors 8GB RAM machine.

Our first dataset consists in 1363 annotated Escherichia Coli ion trap tandem mass spectra from the Open Proteomics Database (OPD) [17] with different Xcorr (97 spectra with Xcorr ≥ 2.5, 246 spectra with Xcorr ≥ 2.0 and 1363 spectra Xcorr ≥ 1.5), and our second dataset consists of the 280 spectra of [13]. We tested the program over all these spectra after running a data pre-processing to remove tiny noise peaks as in Mascot (personal communication).

For the first dataset, the algorithm looks for peptide sequence tags of maximum length. We evaluated the percentage of cases when the algorithm finds at least one correct sequence tag at different lengths k. We obtained the following percentage:

■ 99.6%, for k = 3;

■ 96.1%, for k = 4;

■ 96.1%, for k = 3;

■ 59.5%, for k = 3.

The average running time required to generate the sequence tags is 0.15 seconds. We compared our program with the public available program PepNovo on the same dataset of 280 spectra as in [13]. We evaluated the occurrence of at least one correct sequence tag in the generated sequence tag of maximum length found by our algorithm. Since in general the generated sequence tag is not unique, we used the scoring function defined in [7] to assign a score to the sequences. We evaluated the percentage of cases where any correct tag is contained in the highest scoring solution at different lengths. Additionally, we reported on the occurrence of any correct tag in the set of size three of the top scoring solutions. The results are listed in Table 1. We note that, since the percentages grow substantially if we consider the occurrence of correct sequence tags in the generated maximum length sequence tags, selectivity of the scoring function is low. Therefore better results could be obtained by using a different scoring function.

Table 1 Experimental results.

The average running time required to generate the sequence tags is 0.11 seconds.

Conclusions

The problem of identifying modified or variant peptide sequences is a challenging one, especially when the spectrum for unmodified sequence is not present as a standard for comparison. By joining the best partial sequences of the de novo interpretation and the database search algorithms, sequence tag can increase the speed and the effectiveness of the identification, and the discovery of unknown modifications, sequence variations and possibly alternate splice sites in proteins. Here, we have proposed a new work-efficient parallel algorithm to find peptide sequence tags. Our tests shown that our algorithm is efficient and accurate since achieves comparable results to other methods. Therefore, at least in theory, the proposed algorithm could be used to identify post-translational modifications, comparing the homology of the sequence tags found with the sequences in the biological database.

Abbreviations

CREW:

concurrent read, exclusive write

MS/MS:

tandem mass (or mass/mass)

OPD:

Open Proteomics Database

PRAM:

Parallel Random Access Memory

RAM:

Random Access Memory

References

  1. Eng J, McCormack A, Yates J: An approach to correlate tandem mass spectral data of peptides with amino acid sequences in a protein database. Journal of American Society of Mass Spectrometry 1994, 5: 976–989.

    Article  CAS  Google Scholar 

  2. Perkins D, Pappin D, Creasy D, Cottrell J: Probability-based protein identification by searching sequence databases using mass spectrometry data. Electrophoresis 1999, 20: 3551–3567.

    Article  CAS  PubMed  Google Scholar 

  3. Bafna V, Edwards N: On de novo interpretation of tandem mass spectra for peptide identification. In Proceedings of the seventh annual international conference on Computational molecular biology: 10–30 April 2003; Berlin. Edited by: Vingron M, Istrail S, Pevzner P, Waterman M. ACM Press; 2003:9–18.

    Google Scholar 

  4. Brunetti S, Dutta D, Liberatori L, Mori E, Varrazzo D: An efficient algorithm for de novo peptide sequencing. In Proceeding of the seventh international conference on Adaptive and Natural Computing Algorithms: 21–23 March 2005; Coimbra. Edited by: Ribeiro B, Albrecht RF, Dobnikar A, Pearson DW, Steele NC. Springer Verlag; 2005:327–342.

    Google Scholar 

  5. Brunetti S, Lodi E, Mori E: De novo peptide sequencing: a work-efficient parallel algorithm. In Proceeding of the First International Conference on Bioinformatics Research and Development: 12–14 March 2007; Berlin. Edited by: Hochreiter S, Küng J, Palkoska J, Wagner R. OCG; 2007:66–67.

    Google Scholar 

  6. Chen T, Kao MK, Tepel M, Rush J, Church GM: A dynamic programming approach to de novo peptide sequencing via tandem mass spectrometry. In Proceedings of the eleventh annual ACM-SIAM symposium on Discrete algorithms: 09–11 January 2000; San Francisco Edited by: Shmoys D: Society for Industrial and Applied Mathematics. 2000, 389–398.

    Google Scholar 

  7. Danĉík V, Addona TA, Clauser KR, Vath JE, Pevzner PA: De novo peptide sequencing via tandem mass spectrometry. Journal of Computational Biology 1999, 6: 327–342.

    Article  PubMed  Google Scholar 

  8. Frank A, Pevzner PA: Pepnovo: de novo peptide sequencing via probabilistic network modeling. Anal Chem 2005, 77: 964–973.

    Article  CAS  PubMed  Google Scholar 

  9. Lu B, Chen T: A suboptimal algorithm for de novo peptide sequencing via tandem mass spectrometry. Journal of Computational Biology 2003, 10: 1–12.

    Article  PubMed  Google Scholar 

  10. Ma B, Zhang K, Hendrie C, Liang C, Li M, Doherty-Kirby A, Lajoie G: PEAKS: Powerful Software for Peptide De Novo Sequencing by MS/MS. Rapid Communications in Mass Spectrometry 2003, 20: 2337–2342.

    Article  Google Scholar 

  11. Mann M, Wilm M: Error-tolerant identification of peptides in sequence databases by peptide sequence tags. Analytical Chemistry 1994, 66(24):4390–4399.

    Article  CAS  PubMed  Google Scholar 

  12. Han Y, Ma B, Zhang K: Spider: software for protein identification from sequence tags with de novo sequencing error. Journal of Bioinform. Comput. Biol. 2005, 3: 697–716.

    Article  CAS  Google Scholar 

  13. Frank A, Tanner S, Bafna V, Pevzner P: Peptide sequence tags for fast database search in mass-spectrometry. Journal of Proteome Research 2005, 4: 1287–1295.

    Article  CAS  PubMed  Google Scholar 

  14. Tabb DL, Saraf A, Yates JR: Gutentag: high-throughput sequence tagging via an empirically derived fragmentation model. Analytical Chemistry 2003, 23: 415–6421.

    Google Scholar 

  15. Liu C, Yan B, Song Y, Xu Y, Cai L: Peptide sequence tag-based blind identification of post-translational modifications with point process model. Bioinformatics 2006, 22: e307-e313.

    Article  CAS  PubMed  Google Scholar 

  16. Jájá J: An introduction to parallel algorithms. Addison Wesley Longman Publishing Co.: Redwood City; 1992.

    Google Scholar 

  17. Prince JT, Carlson MW, Wang R, Lu P, Marcotte EM: The need for a public proteomics repository. Nat Biotechnol 2004, 22(4):471–472.

    Article  CAS  PubMed  Google Scholar 

Download references

Acknowledgements

We wish to thank Sonia Campa for help and useful discussions on the implementation of the algorithm.

This article has been published as part of BMC Bioinformatics Volume 9 Supplement 4, 2008: A Semantic Web for Bioinformatics: Goals, Tools, Systems, Applications. The full contents of the supplement are available online at http://www.biomedcentral.com/1471-2105/9?issue=S4.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Elisa Mori.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors' contributions

SB participated in the design of the algorithm, in the coordination and analysis of the tests and in revising the content of the paper. EL conceived of the initial idea to use the parallelism in this context and supervised all the phases of the developed work. EM carried out the design of the algorithm and its implementation, participated in testing the program and analysis of the experimental results and drafted the manuscript. MS carried out the testing and debugging of the program, participated in the analysis of the experimental results, and helped in revising the paper. All authors read and approved the final manuscript.

Rights and permissions

Open Access This article is published under license to BioMed Central Ltd. This is an Open Access article is distributed under the terms of the Creative Commons Attribution License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and permissions

About this article

Cite this article

Brunetti, S., Lodi, E., Mori, E. et al. PARPST: a PARallel algorithm to find peptide sequence tags. BMC Bioinformatics 9 (Suppl 4), S11 (2008). https://doi.org/10.1186/1471-2105-9-S4-S11

Download citation

  • Published:

  • DOI: https://doi.org/10.1186/1471-2105-9-S4-S11

Keywords