Tdata::const_iterator iMods;
66 for(iMods =
Get().begin(); iMods !=
Get().end(); ++iMods) {
67 intModNum = (*iMods)->GetMod();
70 "CMSModSpecSet::CreateArrays modification number unknown");
74 if((*iMods)->GetMonomass() == 0.0) {
82 if((*iMods)->CanGetNeutralloss())
84((*iMods)->GetMonomass() -
85(*iMods)->GetNeutralloss().GetMonomass());
93 if((*iMods)->CanGetPsi_ms()) {
103CMSModSpec::TResidues::const_iterator iRes;
105 for(iRes = (*iMods)->GetResidues().begin(); iRes != (*iMods)->GetResidues().end(); ++iRes) {
108 "CMSModSpecSet::CreateArrays too many AAs in mod "<<
112 if(strchr(
UniqueAA, (*iRes)[0]) != 0)
116 "CMSModSpecSet::CreateArrays unknown AA "<<
117(*iRes) <<
" specified for mod "<< ModNum);
131CMSModSpecSet::Tdata::const_iterator
i;
133 for(
i= ModsIn.
Get().begin();
i!= ModsIn.
Get().end(); ++
i) {
134 Set().push_back(*
i);
144 #undef NCBI_USE_ERRCODE_Xconst char *const UniqueAA
@MSModSpecSet.hpp User-defined methods of the data storage class.
static const int kMaxNameSize
the maximum size of an modification friendly name
char ModChar[eMSMod_max][kMaxAAs]
the AA's affected
void Append(const CMSModSpecSet &ModsIn)
concatenates in another CMSModSpecSet
int NeutralLoss[eMSMod_max]
the integer scaled mass of the neutral loss
int NumModChars[eMSMod_max]
the number of AA's affected
EMSModType ModTypes[eMSMod_max]
categorizes existing mods as the types EMSModType
int ModMass[eMSMod_max]
the integer scaled mass of the mod
void CreateArrays(void)
creates arrays for the existing set
char ModNames[eMSMod_max][kMaxNameSize]
friendly names
bool isArrayed
Have the arrays been intialized?
static const int kMaxAAs
the maximum number of AA's a modification can affect
char UnimodNames[eMSMod_max][kMaxNameSize]
friendly names
#define ERR_POST_X(err_subcode, message)
Error posting with default error code and given error subcode.
void Warning(CExceptionArgs_Base &args)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Tdata & Set(void)
Assign a value to data member.
const Tdata & Get(void) const
Get the member data.
bool CanGet(void) const
Check if it is safe to call Get method.
EMSModType
enumerate modification types
@ eMSMod_max
maximum number of mods
Definition of all error codes used in objects libraries.
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