NCBI C++ ToolKit
msms.cpp
Go to the documentation of this file.

Go to the repository for this file.

1 /* $Id: msms.cpp 46494 2010-07-14 20:24:08Z lewisg $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the authors in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Lewis Y. Geer
27  *
28  * File Description:
29  * Helper classes for ms search algorithms
30  *
31  * ===========================================================================
32  */
33 
34 #include <ncbi_pch.hpp>
35 #include <corelib/ncbistd.hpp>
36 
37 #include <fstream>
38 
39 #include "msms.hpp"
40 #include "omssascore.hpp"
41 
44 USING_SCOPE(omssa);
45 
46 /////////////////////////////////////////////////////////////////////////////
47 //
48 // CAA::
49 //
50 // lookup table for AA index
51 //
52 
53 CAA::CAA(void)
54 {
55  int i;
56  for(i = 0; i < 256; i++) AAMap[i] = kNumUniqueAA;
57  for(i = 0; i < kNumUniqueAA; i++) {
58  AAMap[static_cast <int> (UniqueAA[i])] = i;
59  // deal with blast readdb encoding.
60  AAMap[i] = i;
61  }
62 }
63 
64 
65 
66 /////////////////////////////////////////////////////////////////////////////
67 //
68 // CCleave::
69 //
70 // Classes for cleaving sequences quickly and computing masses
71 //
72 
73 
74 CCleave::CCleave(void): CleaveAt(0), kCleave(0), NMethionine(false)
75 {
78 }
79 
80 // char based replacement for find_first_of()
81 
82 int CCleave::findfirst(char* Seq, int Pos, int SeqLen)
83 {
84  int i, j;
85  for (i = Pos; i < SeqLen; i++)
86  for(j = 0; j < kCleave; j++)
87  if(Seq[i] == CleaveAt[j]) return i;
88  return i;
89 }
90 
91 
92 /**
93  * cleaves the sequence. Note that output is 0 and the positions
94  * of the aa's to be cleaved. Should be interpreted as [0, pos1],
95  * (pos1, pos2], ..., (posn, end]. This weirdness is historical --
96  * the C++ string class uses an identifier for end-of-string and has
97  * no identifier for before start of string.
98  *
99  * @param SeqStart pointer to start of sequence
100  * @param SeqEnd pointer to end of sequence
101  * @param PepStart ** to the start of peptide
102  * @param Masses cumulative masses of peptides
103  * @param NumMod number of variable mods
104  * @param MaxNumMod upper bound on number of variable mods
105  * @param EndMass the end masses of the peptides
106  * @param VariableMods list of variable mods
107  * @param FixedMods list of fixed modifications
108  * @param ModList mod site info
109  * @param IntCalcMass integer AA masses
110  * @param PrecursorIntCalcMass integer precursor masses
111  * @param Modset list of possible mods
112  * @param Maxproductions max number of product ions to calculate
113  * @return true if end of sequence
114  */
115 
116 bool CCleave::CalcAndCut(const char *SeqStart,
117  const char *SeqEnd, // the end, not beyond the end
118  const char **PepStart, // return value
119  int *Masses,
120  int& NumMod,
121  int MaxNumMod,
122  int *EndMasses,
123  CMSMod &VariableMods,
124  CMSMod &FixedMods,
125  CMod ModList[],
126  const int *IntCalcMass, // array of int AA masses
127  const int *PrecursorIntCalcMass, // precursor masses
128  CRef <CMSModSpecSet> &Modset,
129  int Maxproductions
130  )
131 {
132  char SeqChar(**PepStart);
133 
134  // n terminus protein mods
135  // allow alternative start if n-term methionine cleavage
136  if(*PepStart == SeqStart ||
137  (*PepStart == SeqStart+1 && NMethionine && *SeqStart == '\x0c'))
138  CheckMods(eMSModType_modn, eMSModType_modnaa, VariableMods, FixedMods,
139  NumMod, SeqChar, MaxNumMod, ModList,
140  *PepStart, Modset);
141 
142  // n terminus peptide
143  CheckMods(eMSModType_modnp, eMSModType_modnpaa, VariableMods, FixedMods, NumMod, SeqChar, MaxNumMod, ModList,
144  *PepStart, Modset);
145 
146 
147  // iterate through sequence
148  // note that this loop doesn't check at the end of the sequence
149  for(; *PepStart < SeqEnd; (*PepStart)++) {
150  SeqChar = **PepStart;
151 
152  // if top-down enzyme
153  // if > maxproductions * 2 from beginning and < maxproductions * 2 from end
154  // skip checking for mods
155 
156  if(!GetTopDown() ||
157  (GetTopDown() && ( *PepStart - SeqStart < 2*Maxproductions ||
158  SeqEnd - *PepStart < 2*Maxproductions))) {
159  // check for mods that are type AA only, variable only
160  CheckAAMods(eMSModType_modaa, VariableMods, NumMod, SeqChar, MaxNumMod, ModList,
161  *PepStart, false, Modset);
162  }
163 
164  CalcMass(SeqChar, Masses, PrecursorIntCalcMass);
165 
166  // check for cleavage point
167  if(CheckCleave(*PepStart, SeqStart)) {
168  // check c term peptide mods
169  CheckMods(eMSModType_modcp, eMSModType_modcpaa, VariableMods, FixedMods, NumMod, SeqChar, MaxNumMod,
170  ModList, *PepStart, Modset);
171  EndMass(EndMasses);
172  return false;
173  }
174  }
175 
176  // todo: deal with mods on the end
177 
178  CalcMass(**PepStart, Masses, PrecursorIntCalcMass);
179 
180  // check for mods that are type AA only, variable only
181  CheckAAMods(eMSModType_modaa, VariableMods, NumMod, **PepStart, MaxNumMod, ModList,
182  *PepStart, false, Modset);
183  // check c term peptide mods
184  CheckMods(eMSModType_modcp, eMSModType_modcpaa, VariableMods, FixedMods, NumMod, SeqChar, MaxNumMod, ModList,
185  *PepStart, Modset);
186  // check c term protein mods
187  CheckMods(eMSModType_modc, eMSModType_modcaa, VariableMods, FixedMods, NumMod, SeqChar, MaxNumMod, ModList,
188  *PepStart, Modset);
189 
190  EndMass(EndMasses);
191  return true; // end of sequence
192 }
193 
194 
195 ///
196 /// CTrypsin
197 ///
198 
200 {
201  CleaveAt = "\x0a\x10";
202  CleaveOffset = "\x00\x00";
203  CheckProline = true;
204  kCleave = 2;
205  TopDown = false;
206  NonSpecific = false;
207 }
208 
209 
210 ///
211 /// CNBr
212 ///
213 
215 {
216  CleaveAt = "\x0c";
217  CleaveOffset = "\x00";
218  CheckProline = false;
219  kCleave = 1;
220  TopDown = false;
221  NonSpecific = false;
222 }
223 
224 
225 ///
226 /// CFormicAcid
227 ///
228 
230 {
231  CleaveAt = "\x04";
232  CleaveOffset = "\x00";
233  CheckProline = false;
234  kCleave = 1;
235  TopDown = false;
236  NonSpecific = false;
237 }
238 
239 
240 ///
241 /// CArgC
242 ///
243 
245 {
246  CleaveAt = "\x010";
247  CleaveOffset = "\x00";
248  CheckProline = true;
249  kCleave = 1;
250  TopDown = false;
251  NonSpecific = false;
252 }
253 
254 
255 ///
256 /// CChymotrypsin
257 ///
258 
260 {
261  CleaveAt = "\x06\x16\x14\x0b";
262  CleaveOffset = "\x00\x00\x00\x00";
263  CheckProline = true;
264  kCleave = 4;
265  TopDown = false;
266  NonSpecific = false;
267 }
268 
269 
270 ///
271 /// CLysC
272 ///
273 
275 {
276  CleaveAt = "\x0a";
277  CleaveOffset = "\x00";
278  CheckProline = true;
279  kCleave = 1;
280  TopDown = false;
281  NonSpecific = false;
282 }
283 
284 
285 ///
286 /// CLysCP
287 ///
288 
290 {
291  CleaveAt = "\x0a";
292  CleaveOffset = "\x00";
293  CheckProline = false;
294  kCleave = 1;
295  TopDown = false;
296  NonSpecific = false;
297 }
298 
299 
300 ///
301 /// CCPepsinA
302 ///
303 
305 {
306  CleaveAt = "\x06\x0b";
307  CleaveOffset = "\x00\x00";
308  CheckProline = false;
309  kCleave = 2;
310  TopDown = false;
311  NonSpecific = false;
312 }
313 
314 
315 ///
316 /// CTrypCNBr
317 ///
318 
320 {
321  CleaveAt = "\x0a\x10\x0c";
322  CleaveOffset = "\x00\x00\x00";
323  CheckProline = true;
324  kCleave = 3;
325  TopDown = false;
326  NonSpecific = false;
327 }
328 
329 
330 ///
331 /// CTrypChymo
332 ///
333 
335 {
336  CleaveAt = "\x06\x16\x14\x0b\x0a\x10";
337  CleaveOffset = "\x00\x00\x00\x00\x00\x00";
338  CheckProline = true;
339  kCleave = 6;
340  TopDown = false;
341  NonSpecific = false;
342 }
343 
344 
345 ///
346 /// CTrypsinP
347 ///
348 
350 {
351  CleaveAt = "\x0a\x10";
352  CleaveOffset = "\x00\x00";
353  CheckProline = false;
354  kCleave = 2;
355  TopDown = false;
356  NonSpecific = false;
357 }
358 
359 
360 //! Whole Protein
361 
363 {
364  CleaveAt = "\x00";
365  CleaveOffset = "\x00";
366  CheckProline = false;
367  kCleave = 0;
368  // this is *not* top down as we want to match the precursor m/z
369  TopDown = false;
370  NonSpecific = false;
371 }
372 
373 
374 //! CAspN
375 
377 {
378  CleaveAt = "\x04";
379  CleaveOffset = "\x01";
380  CheckProline = false;
381  kCleave = 1;
382  TopDown = false;
383  NonSpecific = false;
384 }
385 
386 
387 //! CGluC
388 
390 {
391  CleaveAt = "\x05";
392  CleaveOffset = "\x00";
393  CheckProline = false;
394  kCleave = 1;
395  TopDown = false;
396  NonSpecific = false;
397 }
398 
399 
400 //! GluCAspN
401 
403 {
404  CleaveAt = "\x05\x04";
405  CleaveOffset = "\x00\x01";
406  CheckProline = false;
407  kCleave = 2;
408  TopDown = false;
409  NonSpecific = false;
410 }
411 
412 
413 /**
414  * Top-down, whole protein search
415  */
416 
418 {
419  CleaveAt = "\x00";
420  CleaveOffset = "\x00";
421  CheckProline = false;
422  kCleave = 0;
423  TopDown = true;
424  NonSpecific = false;
425 }
426 
427 
428 /**
429  * SemiTryptic
430  */
431 
433 {
434  CleaveAt = "\x0a\x10";
435  CleaveOffset = "\x00\x00";
436  CheckProline = true;
437  kCleave = 2;
438  TopDown = false;
439  NonSpecific = true;
440 }
441 
442 
443 /**
444  * NoEnzyme
445  */
446 
448 {
449  CleaveAt = "\x00";
450  CleaveOffset = "\x00";
451  CheckProline = false;
452  kCleave = 0;
453  TopDown = false;
454  NonSpecific = true;
455 }
456 
457 
458 /**
459  * Chymotrypsin without proline rule
460  */
461 
463 {
464  CleaveAt = "\x06\x16\x14\x0b";
465  CleaveOffset = "\x00\x00\x00\x00";
466  CheckProline = false;
467  kCleave = 4;
468  TopDown = false;
469  NonSpecific = false;
470 }
471 
472 
474 {
475  CleaveAt = "\x04\x05";
476  CleaveOffset = "\x01\x01";
477  CheckProline = false;
478  kCleave = 2;
479  TopDown = false;
480  NonSpecific = false;
481 }
482 
483 
485 {
486  CleaveAt = "\x05\x04";
487  CleaveOffset = "\x00\x00";
488  CheckProline = false;
489  kCleave = 2;
490  TopDown = false;
491  NonSpecific = false;
492 }
493 
494 
496 {
497  CleaveAt = "\x0a";
498  CleaveOffset = "\x01";
499  CheckProline = false;
500  kCleave = 1;
501  TopDown = false;
502  NonSpecific = false;
503 }
504 
505 
507 {
508  CleaveAt = "\x01\x06\x09\x0b\x0c\x13";
509  CleaveOffset = "\x01\x01\x01\x01\x01\x01";
510  CheckProline = true;
511  kCleave = 6;
512  TopDown = false;
513  NonSpecific = false;
514 }
515 
516 
518 {
519  CleaveAt = "\x06\x16\x14\x0b";
520  CleaveOffset = "\x00\x00\x00\x00";
521  CheckProline = true;
522  kCleave = 4;
523  TopDown = false;
524  NonSpecific = true;
525 }
526 
527 
529 {
530  CleaveAt = "\x05";
531  CleaveOffset = "\x00";
532  CheckProline = false;
533  kCleave = 1;
534  TopDown = false;
535  NonSpecific = true;
536 }
537 
538 
539 ///
540 
541 ///
542 /// Simple factory to return back object for enzyme
543 ///
544 
546 {
547  if (enzyme >= eMSEnzymes_max) return null;
548  switch (enzyme) {
549  case eMSEnzymes_trypsin:
550  return CRef <CCleave> (new CTrypsin);
551  break;
552  case eMSEnzymes_argc:
553  return CRef <CCleave> (new CArgC);
554  break;
555  case eMSEnzymes_cnbr:
556  return CRef <CCleave> (new CCNBr);
557  break;
559  return CRef <CCleave> (new CChymotrypsin);
560  break;
562  return CRef <CCleave> (new CFormicAcid);
563  break;
564  case eMSEnzymes_lysc:
565  return CRef <CCleave> (new CLysC);
566  break;
567  case eMSEnzymes_lysc_p:
568  return CRef <CCleave> (new CLysCP);
569  break;
570  case eMSEnzymes_pepsin_a:
571  return CRef <CCleave> (new CPepsinA);
572  break;
574  return CRef <CCleave> (new CTrypCNBr);
575  break;
577  return CRef <CCleave> (new CTrypChymo);
578  break;
580  return CRef <CCleave> (new CTrypsinP);
581  break;
583  return CRef <CCleave> (new CWholeProtein);
584  break;
585  case eMSEnzymes_aspn:
586  return CRef <CCleave> (new CAspN);
587  break;
588  case eMSEnzymes_gluc:
589  return CRef <CCleave> (new CGluC);
590  break;
591  case eMSEnzymes_aspngluc:
592  return CRef <CCleave> (new CGluCAspN);
593  break;
594  case eMSEnzymes_top_down:
595  return CRef <CCleave> (new CTopDown);
596  break;
598  return CRef <CCleave> (new CSemiTryptic);
599  break;
601  return CRef <CCleave> (new CNoEnzyme);
602  break;
604  return CRef <CCleave> (new CChymoP);
605  break;
606  case eMSEnzymes_aspn_de:
607  return CRef <CCleave> (new CAspNDE);
608  break;
609  case eMSEnzymes_gluc_de:
610  return CRef <CCleave> (new CGluCDE);
611  break;
612  case eMSEnzymes_lysn:
613  return CRef <CCleave> (new CLysN);
614  break;
616  return CRef <CCleave> (new CThermolysinP);
617  break;
619  return CRef <CCleave> (new CSemiChymotrypsin);
620  break;
621  case eMSEnzymes_semi_gluc:
622  return CRef <CCleave> (new CSemiGluC);
623  break;
624 
625  default:
626  return null;
627  break;
628  }
629  return null;
630 }
631 
632 
633 
634 /////////////////////////////////////////////////////////////////////////////
635 //
636 // CMassArray::
637 //
638 // Holds AA indexed mass array
639 //
640 
642 {
643  x_Init(SearchType);
644 }
645 
647 {
648  int i;
649  if(SearchType == eMSSearchType_average) {
650  for(i = 0; i < kNumUniqueAA; i++ ) {
651  CalcMass[i] = AverageMass[i];
653  }
654  }
655  else if(SearchType == eMSSearchType_monoisotopic ||
656  SearchType == eMSSearchType_multiisotope ||
657  SearchType == eMSSearchType_exact) {
658  for(i = 0; i < kNumUniqueAA; i++ ) {
659  CalcMass[i] = MonoMass[i];
661  }
662  }
663  else if(SearchType == eMSSearchType_monon15) {
664  for(i = 0; i < kNumUniqueAA; i++ ) {
665  CalcMass[i] = MonoN15Mass[i];
667  }
668  }
669 }
670 
671 // set up the mass array with fixed mods
672 void CMassArray::Init(const CMSMod &Mods,
673  const CMSSearchSettings::TProductsearchtype &SearchType,
674  CRef <CMSModSpecSet> Modset)
675 {
676  if(!Modset || !Modset->IsArrayed()) {
677  ERR_POST(Error << "CMassArray::Init: unable to use modification set");
678  return;
679  }
680  x_Init(SearchType);
681  CMSMod::TModLists::const_iterator i; // iterate thru fixed mods
682  int j; // the number of characters affected by the fixed mod
683 
684  for(i = Mods.GetAAMods(eMSModType_modaa).begin(); i != Mods.GetAAMods(eMSModType_modaa).end(); i++) {
685  for(j = 0; j < Modset->GetModNumChars(*i); j++) {
686  CalcMass[static_cast <int> (Modset->GetModChar(*i, j))] += MSSCALE2DBL(Modset->GetModMass(*i));
687  IntCalcMass[static_cast <int> (Modset->GetModChar(*i, j))] += Modset->GetModMass(*i);
688  }
689  }
690 }
#define MSSCALE2DBL(x)
Definition: MSMod.hpp:65
const int kNumUniqueAA
@MSMod.hpp User-defined methods of the data storage class.
Definition: MSMod.hpp:53
const char *const UniqueAA
Definition: MSMod.hpp:58
#define MSSCALE2INT(x)
Definition: MSMod.hpp:64
const double kProton
Definition: SpectrumSet.hpp:56
CAA(void)
Definition: msms.cpp:53
char AAMap[256]
Definition: msms.hpp:153
Definition: msms.hpp:925
CArgC(void)
CArgC.
Definition: msms.cpp:244
eMSEnzymes_aspn_de Asp-N that cuts at D and E
Definition: msms.hpp:1053
CAspNDE(void)
Definition: msms.cpp:473
Asp-N, Nterm of D.
Definition: msms.hpp:981
CAspN(void)
CAspN.
Definition: msms.cpp:376
Definition: msms.hpp:907
CCNBr(void)
CNBr.
Definition: msms.cpp:214
eMSEnzymes_chymotrypsin_p chymotrypsin without proline rule
Definition: msms.hpp:1042
CChymoP(void)
Chymotrypsin without proline rule.
Definition: msms.cpp:462
CChymotrypsin(void)
CChymotrypsin.
Definition: msms.cpp:259
static CRef< CCleave > CleaveFactory(const EMSEnzymes enzyme)
Simple factory to return back object for enzyme.
Definition: msms.cpp:545
const char * CleaveOffset
what is the cleavage offset
Definition: msms.hpp:641
bool CheckProline
Should we apply the proline rule (no cleavage before proline)
Definition: msms.hpp:668
bool CheckCleave(const char *iPepStart, const char *iSeqStart)
Check to see if we are at a cleavage point Used by CalcAndCut.
Definition: msms.hpp:736
bool NMethionine
n-terminal methionine cleavage
Definition: msms.hpp:673
void CalcMass(char SeqChar, int *Masses, const int *IntCalcMass)
Definition: msms.hpp:762
bool CalcAndCut(const char *SeqStart, const char *SeqEnd, const char **PepStart, int *Masses, int &NumMod, int MaxNumMod, int *EndMasses, CMSMod &VariableMods, CMSMod &FixedMods, CMod ModList[], const int *IntCalcMass, const int *PrecursorIntCalcMass, CRef< CMSModSpecSet > &Modset, int Maxproductions)
cleaves the sequence.
Definition: msms.cpp:116
void CheckMods(EMSModType NonSpecificIn, EMSModType Specific, CMSMod &VariableMods, CMSMod &FixedMods, int &NumMod, char SeqChar, int MaxNumMod, CMod ModList[], const char *iPepStart, CRef< CMSModSpecSet > &Modset)
checks all mods for a particular type
Definition: msms.hpp:833
int ProtonMass
Definition: msms.hpp:628
CCleave(void)
Definition: msms.cpp:74
bool NonSpecific
Is this a non-specific search?
Definition: msms.hpp:663
int TermMass
Definition: msms.hpp:629
void EndMass(int *Masses)
Definition: msms.hpp:772
int findfirst(char *Seq, int Pos, int SeqLen)
Definition: msms.cpp:82
const char * CleaveAt
where to cleave.
Definition: msms.hpp:636
bool GetTopDown(void) const
Is the enzyme really a top-down search?
Definition: msms.hpp:854
bool TopDown
TopDown does this signify a top-down search.
Definition: msms.hpp:652
int kCleave
How many cleavage characters.
Definition: msms.hpp:646
void CheckAAMods(EMSModType ModType, CMSMod &VariableMods, int &NumMod, char SeqChar, int MaxNumMod, CMod ModList[], const char *iPepStart, bool setfixed, CRef< CMSModSpecSet > &Modset)
looks for amino acid specific ptms
Definition: msms.hpp:780
CFormicAcid(void)
CFormicAcid.
Definition: msms.cpp:229
Glu-C and Asp-N.
Definition: msms.hpp:994
CGluCAspN(void)
GluCAspN.
Definition: msms.cpp:402
eMSEnzymes_gluc_de Glu-C that cuts at D and E
Definition: msms.hpp:1065
CGluCDE(void)
Definition: msms.cpp:484
Glu-C, Cterm of E.
Definition: msms.hpp:988
CGluC(void)
CGluC.
Definition: msms.cpp:389
Definition: msms.hpp:943
CLysCP(void)
CLysCP.
Definition: msms.cpp:289
Definition: msms.hpp:937
CLysC(void)
CLysC.
Definition: msms.cpp:274
eMSEnzymes_lysn Cuts N term of lysine
Definition: msms.hpp:1078
CLysN(void)
Definition: msms.cpp:495
bool IsArrayed(void)
Have the arrays been intialized?
int GetModNumChars(int Mod) const
get the number of modification AA's
char GetModChar(int Mod, int Number) const
get modification AA's
int GetModMass(int Mod) const
get modification mass
Definition: Mod.hpp:61
const TModLists & GetAAMods(EMSModType Type) const
Definition: Mod.hpp:85
void x_Init(const CMSSearchSettings::TProductsearchtype &SearchType)
Definition: msms.cpp:646
double CalcMass[kNumUniqueAA]
Definition: msms.hpp:114
int IntCalcMass[kNumUniqueAA]
Definition: msms.hpp:116
void Init(const CMSSearchSettings::TProductsearchtype &SearchType)
initialize mass arrays with fixed mods
Definition: msms.cpp:641
contains information for a post translational modification at a particular sequence site
Definition: msms.hpp:172
eMSEnzymes_no_enzyme search without enzyme (precursor mass only)
Definition: msms.hpp:1030
CNoEnzyme(void)
NoEnzyme.
Definition: msms.cpp:447
CPepsinA(void)
CCPepsinA.
Definition: msms.cpp:304
Chymotrypsin, cuts N terminal at A,F,I,L,M or V.
Definition: msms.hpp:1100
CSemiChymotrypsin(void)
Definition: msms.cpp:517
Glu-C, Cterm of E.
Definition: msms.hpp:1111
CSemiGluC(void)
Definition: msms.cpp:528
eMSEnzymes_semi_tryptic semi tryptic search (one end of peptide has to be tryptic)
Definition: msms.hpp:1018
CSemiTryptic(void)
SemiTryptic.
Definition: msms.cpp:432
eMSEnzymes_thermolysin_p cuts N terminal at A,F,I,L,M or V
Definition: msms.hpp:1089
CThermolysinP(void)
Definition: msms.cpp:506
eMSEnzymes_top_down top-down search of ETD spectra
Definition: msms.hpp:1006
CTopDown(void)
Top-down, whole protein search.
Definition: msms.cpp:417
CTrypCNBr(void)
CTrypCNBr.
Definition: msms.cpp:319
CTrypChymo(void)
CTrypChymo.
Definition: msms.cpp:334
CTrypsinP(void)
CTrypsinP.
Definition: msms.cpp:349
CTrypsin(void)
CTrypsin.
Definition: msms.cpp:199
whole protein (no cleavage)
Definition: msms.hpp:974
CWholeProtein(void)
Whole Protein.
Definition: msms.cpp:362
Include a standard set of the NCBI C++ Toolkit most basic headers.
unsigned short Pos
#define false
Definition: bool.h:36
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
Definition: ncbidiag.hpp:185
void Error(CExceptionArgs_Base &args)
Definition: ncbiexpt.hpp:1197
EMSEnzymes
enumerate enzymes
Definition: MSEnzymes_.hpp:64
@ eMSSearchType_multiisotope
@ eMSSearchType_average
@ eMSSearchType_monon15
@ eMSSearchType_monoisotopic
@ eMSSearchType_exact
@ eMSModType_modn
at the N terminus of a protein
Definition: MSModType_.hpp:66
@ eMSModType_modc
at the C terminus of a protein
Definition: MSModType_.hpp:68
@ eMSModType_modnpaa
at the N terminus of a peptide at particular amino acids
Definition: MSModType_.hpp:71
@ eMSModType_modcpaa
at the C terminus of a peptide at particular amino acids
Definition: MSModType_.hpp:73
@ eMSModType_modnp
at the N terminus of a peptide
Definition: MSModType_.hpp:70
@ eMSModType_modaa
at particular amino acids
Definition: MSModType_.hpp:65
@ eMSModType_modcaa
at the C terminus of a protein at particular amino acids
Definition: MSModType_.hpp:69
@ eMSModType_modcp
at the C terminus of a peptide
Definition: MSModType_.hpp:72
@ eMSModType_modnaa
at the N terminus of a protein at particular amino acids
Definition: MSModType_.hpp:67
@ eMSEnzymes_argc
Definition: MSEnzymes_.hpp:66
@ eMSEnzymes_semi_gluc
Definition: MSEnzymes_.hpp:89
@ eMSEnzymes_trypsin_p
Definition: MSEnzymes_.hpp:75
@ eMSEnzymes_whole_protein
Definition: MSEnzymes_.hpp:76
@ eMSEnzymes_aspn_de
Definition: MSEnzymes_.hpp:84
@ eMSEnzymes_aspn
Definition: MSEnzymes_.hpp:77
@ eMSEnzymes_pepsin_a
Definition: MSEnzymes_.hpp:72
@ eMSEnzymes_chymotrypsin
Definition: MSEnzymes_.hpp:68
@ eMSEnzymes_gluc_de
Definition: MSEnzymes_.hpp:85
@ eMSEnzymes_max
Definition: MSEnzymes_.hpp:90
@ eMSEnzymes_cnbr
Definition: MSEnzymes_.hpp:67
@ eMSEnzymes_semi_chymotrypsin
Definition: MSEnzymes_.hpp:88
@ eMSEnzymes_lysc_p
Definition: MSEnzymes_.hpp:71
@ eMSEnzymes_gluc
Definition: MSEnzymes_.hpp:78
@ eMSEnzymes_formicacid
Definition: MSEnzymes_.hpp:69
@ eMSEnzymes_aspngluc
Definition: MSEnzymes_.hpp:79
@ eMSEnzymes_no_enzyme
Definition: MSEnzymes_.hpp:82
@ eMSEnzymes_tryp_chymo
Definition: MSEnzymes_.hpp:74
@ eMSEnzymes_tryp_cnbr
Definition: MSEnzymes_.hpp:73
@ eMSEnzymes_lysn
Definition: MSEnzymes_.hpp:86
@ eMSEnzymes_semi_tryptic
Definition: MSEnzymes_.hpp:81
@ eMSEnzymes_chymotrypsin_p
Definition: MSEnzymes_.hpp:83
@ eMSEnzymes_top_down
Definition: MSEnzymes_.hpp:80
@ eMSEnzymes_trypsin
Definition: MSEnzymes_.hpp:65
@ eMSEnzymes_thermolysin_p
Definition: MSEnzymes_.hpp:87
@ eMSEnzymes_lysc
Definition: MSEnzymes_.hpp:70
int i
USING_SCOPE(objects)
USING_NCBI_SCOPE
Definition: msms.cpp:42
const double MonoMass[]
Definition: msms.hpp:77
const double AverageMass[]
Definition: msms.hpp:79
const double MonoN15Mass[]
Definition: msms.hpp:81
const double kWater
mass of water
Definition: msms.hpp:67
Modified on Sat Nov 07 14:11:30 2026 by modify_doxy.py rev. 717554