Ladder(new
int[SizeIn]),
71Hit(new
int[SizeIn]),
73Intensity(new unsigned[SizeIn]),
74Delta(new
int[SizeIn]),
84Ladder(new
int[Old.LadderSize]),
85Hit(new
int[Old.LadderSize]),
86LadderSize(Old.LadderSize)
100 for(
i= 0;
i<
size();
i++) {
126 const unsignedModMask,
127 const CModModList[],
136 const int*IntMassArray = MassArray.
GetIntMass();
137 const char*
constAAMap(AA.
GetMap());
152 intProlineOffset(0);
167 Offset, Direction, NumMod, ModIndex,
168ModList, ModMask, 0, ion,
Charge, SearchType,
169ExactMass))
return false;
177ModIndex = NumMod - 1;
183 Offset, Direction, NumMod, ModIndex,
184ModList, ModMask, 0, ion,
Charge, SearchType,
185ExactMass))
return false;
195 Offset, Direction, NumMod, ModIndex,
196ModList, ModMask,
i+iSkip, ion,
Charge, SearchType,
197ExactMass))
return false;
202(
i+ iSkip + ProlineOffset <= stop - start &&
203 Sequence[
Offset+ Direction * (
i+ iSkip + ProlineOffset)] !=
'\x0e')) {
225 else if(
size() !=
static_cast <int>(
Stop-
Start))
return;
240 if((*
this)[
i] <= MassIndex + Tolerance &&
241(*
this)[
i] > MassIndex - Tolerance )
return true;
253 if((*
this)[x] < MassIndex - Tolerance)
255 else if((*
this)[x] > MassIndex + Tolerance)
260 if(x < LadderIndex - 1 && x >= 0 &&
261(*
this)[x+1] < MassIndex + Tolerance && (*this)[x+1] >
262MassIndex - Tolerance)
273TSeriesChargePairList::iterator Iter;
281 for(
i= 0;
i< MaxModPerPep;
i++) {
283newLadderListPtr->push_back(newLadder);
296 if(BeginCharge != 0 && EndCharge != 0) {
318!
MatchIter(Iter, BeginCharge, EndCharge, SeriesType))
330 if(
MatchIter(Iter, BeginCharge, EndCharge, SeriesType))
return;
331 Next(Iter, BeginCharge ,EndCharge, SeriesType);
const char *const GetMap(void) const
return the map for translating AA char to AA number
void Next(TLadderMap::iterator &Iter, TMSCharge BeginCharge=0, TMSCharge EndCharge=0, TMSIonSeries SeriesType=eMSIonTypeUnknown)
iterate over the ladder map over the charge range and series type indicated
TSeriesChargePairList & SetSeriesChargePairList(void)
return the list of charge, series type pairs that are used to initialize the maps
void Begin(TLadderMap::iterator &Iter, TMSCharge BeginCharge=0, TMSCharge EndCharge=0, TMSIonSeries SeriesType=eMSIonTypeUnknown)
bool MatchIter(TLadderMap::iterator &Iter, TMSCharge BeginCharge=0, TMSCharge EndCharge=0, TMSIonSeries SeriesType=eMSIonTypeUnknown)
see if key of the map element pointed to by Iter matches the conditions
void CreateLadderArrays(int MaxModPerPep, int MaxLadderSize)
populate the Ladder Map with arrays based on the ladder
TLadderMap & SetLadderMap(void)
returns the laddermap (maps key based on charge and series type to a vector of CLadder)
bool Contains(int MassIndex, int Tolerance)
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
const bool CreateLadder(const int IonType, const int Charge, const char *const Sequence, const int SeqIndex, const int start, const int stop, const int mass, const CMassArray &MassArray, const CAA &AA, const unsigned ModMask, const CMod ModList[], const int NumMod, const CMSSearchSettings &Settings, const bool NoProline)
make a ladder
const TIntensity & GetIntensity(void) const
Get the intensity array.
AutoPtr< int, ArrayDeleter< int > > Ladder
mass ladder
AutoPtr< THit, ArrayDeleter< THit > > Hit
hit count for a given m/z value
bool ContainsFast(int MassIndex, int Tolerance)
void Or(CLadder &LadderIn)
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
const TLadderNumber & GetLadderNumber(void) const
Return the array containing the number of the ions.
int M
number of matched peaks
static const int ChargeSeries2Key(TMSCharge Charge, TMSIonSeries Series)
convert a charge and series to a map key
static const TMSIonSeries Key2Series(int Key)
convert a key into a series type
static const TMSCharge Key2Charge(int Key)
convert a key into a charge
@MSSearchSettings.hpp User-defined methods of the data storage class.
const int *const GetIntMass(void) const
contains information for a post translational modification at a particular sequence site
container_type::iterator iterator
const_iterator begin() const
iterator_bool insert(const value_type &val)
container_type::value_type value_type
Include a standard set of the NCBI C++ Toolkit most basic headers.
element_type * get(void) const
Get pointer.
void Reset(void)
Reset reference object.
TNegative GetNegative(void) const
Get the Negative member data.
TSearchb1 GetSearchb1(void) const
Get the Searchb1 member data.
EMSSearchType
what type of atomic mass to use
TProductsearchtype GetProductsearchtype(void) const
Get the Productsearchtype member data.
const TChargehandling & GetChargehandling(void) const
Get the Chargehandling member data.
TExactmass GetExactmass(void) const
Get the Exactmass member data.
TSearchctermproduct GetSearchctermproduct(void) const
Get the Searchctermproduct member data.
unsigned int
A callback function used to compare two keys in a database.
vector< CRef< CLadder > > TLadderList
const double kIonTypeMass[]
const int kIonDirection[]
ion direction.
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
signed char TMSCharge
charge type
short TMSNumber
ion sequence number, starting from 0.
signed char TMSIonSeries
ion type, e.g.
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4