84 int& operator [] (
int n);
107 const bool CreateLadder(
const int IonType,
116 const unsigned ModMask,
117 const CMod ModList[],
141 bool CalcDelta(
const int *IntMassArray,
142 const char *
const AAMap,
148 const CMod ModList[],
158 bool MaskSet(
unsigned ModMask,
int ModIndex);
164 int GetSeqIndex(
void);
170 bool Contains(
int MassIndex,
int Tolerance);
171 bool ContainsFast(
int MassIndex,
int Tolerance);
181 void ClearHits(
void);
196 const TDelta& GetDelta(
void)
const;
206 const int GetM(
void)
const;
216 const int GetSum(
void)
const;
272 const char *
const AAMap,
278 const CMod ModList[],
287 if(!
delta)
return false;
290 while(NumMod > 0 && ModIndex >= 0 && ModIndex < NumMod &&
292 if (
MaskSet(ModMask, ModIndex)) {
295 ModIndex += Direction;
307 ion +=
delta/ChargeIn;
366 retval += *(
Hit.get() +
i);
375 *(
Hit.get() +
i) = 0;
380 return (
bool) (ModMask & (1 << ModIndex));
505 void CreateLadderArrays(
int MaxModPerPep,
int MaxLadderSize);
TSeriesChargePairList & SetSeriesChargePairList(void)
return the list of charge, series type pairs that are used to initialize the maps
TLadderMap LadderMap
contains a map from charge, ion series to the CLadderArrays the key is gotten from CMSMatchedPeakSetM...
const TLadderMap & GetLadderMap(void) const
returns const laddermap
TSeriesChargePairList SeriesChargePairList
contains the series, charge of the ion series to be generated
TLadderMap & SetLadderMap(void)
returns the laddermap (maps key based on charge and series type to a vector of CLadder)
const TSeriesChargePairList & GetSeriesChargePairList(void) const
return the list of charge, series type pairs that are used to initialize the maps
TIntensity & SetIntensity(void)
Set the intensity array.
const TDelta & GetDelta(void) const
Get the mass delta array.
bool CalcDelta(const int *IntMassArray, const char *const AAMap, const char *Sequence, int Offset, int Direction, int NumMod, int &ModIndex, const CMod ModList[], unsigned ModMask, int i, int &ion, const int ChargeIn, EMSSearchType SearchType, double ExactMass)
calculate the mass difference
int & SetSum(void)
Set the sum of ranks of matched peaks.
const TIntensity & GetIntensity(void) const
Get the intensity array.
TLadderNumber LadderNumber
number of ion in the series
AutoPtr< int, ArrayDeleter< int > > Ladder
mass ladder
const int GetSum(void) const
Get the sum of ranks of matched peaks.
TDelta Delta
mass deltas between theoretical and experimental
AutoPtr< THit, ArrayDeleter< THit > > Hit
hit count for a given m/z value
int & SetM(void)
Set the number of matches.
TLadderNumber & SetLadderNumber(void)
Return the array containing the number of the ions.
TDelta & SetDelta(void)
Set the mass delta array.
int Sum
sum of ranks of matched peaks
bool MaskSet(unsigned ModMask, int ModIndex)
const int GetM(void) const
Get the number of matches.
const TLadderNumber & GetLadderNumber(void) const
Return the array containing the number of the ions.
int M
number of matched peaks
TIntensity Intensity
intensity of matched peaks
@MSSearchSettings.hpp User-defined methods of the data storage class.
contains information for a post translational modification at a particular sequence site
TMass GetProductDelta(void) const
Get the mass to be added to the product mass.
container_type::iterator iterator
element_type * get(void) const
Get pointer.
CBeginInfo Begin(C &obj)
Get starting point of object hierarchy.
TSeqPos GetStop(const CSeq_loc &loc, CScope *scope, ESeqLocExtremes ext=eExtreme_Positional)
If only one CBioseq is represented by CSeq_loc, returns the position at the stop of the location.
TSeqPos GetStart(const CSeq_loc &loc, CScope *scope, ESeqLocExtremes ext=eExtreme_Positional)
If only one CBioseq is represented by CSeq_loc, returns the position at the start of the location.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_XOMSSA_EXPORT
EMSSearchType
what type of atomic mass to use
map< int, TLadderListPtr > TLadderMap
list< TSeriesChargePair > TSeriesChargePairList
AutoPtr< TLadderList > TLadderListPtr
pair< int, TLadderListPtr > TLadderMapPair
vector< CRef< CLadder > > TLadderList
const double kNeutron
neutron mass
const struct ncbi::grid::netcache::search::fields::SIZE size
static bool Contains(const CSeq_loc &a, const CSeq_loc &b, CScope *scope)
Miscellaneous common-use basic types and functionality.
Int4 delta(size_t dimension_, const Int4 *score_)
signed char TMSCharge
charge type
short TMSNumber
ion sequence number, starting from 0.
signed char TMSIonSeries
ion type, e.g.