18#if !defined(ms_fragmentvector_INCLUDED_)
19#define ms_fragmentvector_INCLUDED_
29namespace matrix_science {
30 class ms_mascotresfilebase;
61 MATCH_MOST_INTENSE_PEAK = 0x0000,
62 MATCH_CLOSEST_PEAK = 0x0001
97 int getNumberOfFragments()
const;
100 void clearFragments();
106 const ms_fragment * getFragmentByNumber(
const unsigned int numFrag)
const;
108 typedef std::vector<ms_fragment> frag_vector;
110#if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
112 frag_vector * getVector();
115 const frag_vector * getVector()
const;
118 bool addExperimentalData(
const std::string & peakList,
120 const double tolerance,
121 const std::string & toleranceUnits,
122 const bool updateMatchList =
true);
127 const int flags = MATCH_MOST_INTENSE_PEAK,
128 const int peaksUsedFromIons1 = -1,
129 const int peaksUsedFromIons2 = -1,
130 const int peaksUsedFromIons3 = -1);
132 typedef std::map<double, double> peaklist_t;
135 bool addExperimentalData(
const peaklist_t & peakList,
136 const double tolerance,
137 const std::string & toleranceUnits,
138 const bool updateMatchList =
true);
142 static void getMassesWithinTolerance(
const double mass,
143 const double toleranceValue,
144 const TOLERANCE_UNIT toleranceUnit,
148 static void getMassesWithinTolerance(
const double mass,
149 const double toleranceValue,
150 const TOLERANCE_UNIT toleranceUnit,
156 frag_vector entries_;
157 peaklist_t experimentalData_;
158 void matchFragments();
160 std::string matchingTolUnits_;
Class representing a single peptide fragment.
Definition: ms_fragment.hpp:38
Class for holding a list of ms_fragment objects.
Definition: ms_fragmentvector.hpp:47
MATCH_PEAKS
Flags for matching experimental peaks to calculated peaks.
Definition: ms_fragmentvector.hpp:59
TOLERANCE_UNIT
Flags for tolerance units used for matching peaks.
Definition: ms_fragmentvector.hpp:73
@ TOLERANCE_PERCENT
Percentage of the fragment or peptide mass.
Definition: ms_fragmentvector.hpp:76
@ TOLERANCE_DALTON
Simple Daltons.
Definition: ms_fragmentvector.hpp:74
@ TOLERANCE_MMU
milli mass units (1000th of a Dalton)
Definition: ms_fragmentvector.hpp:75
Abstract base class of ms_mascotresfile_dat and ms_mascotresfile_msr.
Definition: ms_mascotresfilebase.hpp:72