本文整理汇总了C++中Digest::SetCompare方法的典型用法代码示例。如果您正苦于以下问题:C++ Digest::SetCompare方法的具体用法?C++ Digest::SetCompare怎么用?C++ Digest::SetCompare使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Digest
的用法示例。
在下文中一共展示了Digest::SetCompare方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: run
void runManager::run()
{
if (runManParam->XML_OUT) {
fprintf(runManParam->FILEOUTXML, "<spectrumMatchList>\n");
}
spectrumData = new data();
memCheck.data++;
spectrumData->init(runManParam);
// DIGESTION: static initialization
IOParam param;
param.SetEnzyme(runManParam->ENZYME);
param.m_iMissedClevage = runManParam->MISSED;
param.m_eResolution = MASS_MONOISOTOPIC;
param.m_eIonMode = ION_MODE_M;
param.m_bPTM = false;
Digest digest;
digest.Load(¶m);
while (spectrumData->load()) {
spectrumData->display(runManParam->FILEOUT);
if (runManParam->XML_OUT) {
spectrumData->displayXML(runManParam->FILEOUTXML);
}
unsigned long int iniTime = clock();
popitam = new Compare();
memCheck.popitam++;
// CONSTRUIT LE GRAPHE, DIRIGE LES POINTEURS
//gfs
unsigned long int t0 = clock();
//eof gfs
popitam->init_POP(runManParam, scoreFunction[runManParam->m_MUTMOD], aaParam,
ionParamTOFTOF1, ionParamQTOF1, ionParamQTOF2, ionParamQTOF3,
spectrumData, popiResults, allRunStats);
//gfs
double dt0 = ((double)(clock()-t0)/(CLOCKS_PER_SEC/1000));
unsigned long int t1 = clock();
//eof gfs
popitam->init_DIG(); // PREPARE LA DIGESTION
// DIGESTION: dynamic initialization
digest.SetCompare(popitam);
// PEPTIDE RANGE: ABSOLUTE MIN = 666 (~6aa); ABSOLUTE MAX = 3333 (~30aa);
double MIN = 666;
double MAX = 3333;
// c'est l'erreur sur la masse parente qui determine le range
if (!runManParam->m_MUTMOD) {
if ((spectrumData->get_parentMassM() - runManParam->PREC_MASS_ERROR) > 666) {
MIN = spectrumData->get_parentMassM() - runManParam->PREC_MASS_ERROR;
}
if ((spectrumData->get_parentMassM() + runManParam->PREC_MASS_ERROR) < 3333) {
MAX = spectrumData->get_parentMassM() + runManParam->PREC_MASS_ERROR;
}
}
else {
if ((spectrumData->get_parentMassM() - runManParam->UP_LIMIT_RANGE_PM) > 666) {
MIN = spectrumData->get_parentMassM() - runManParam->UP_LIMIT_RANGE_PM;
}
if ((spectrumData->get_parentMassM() - runManParam->LOW_LIMIT_RANGE_PM) < 3333) {
MAX = spectrumData->get_parentMassM() - runManParam->LOW_LIMIT_RANGE_PM;
}
}
digest.Limit(MIN, MAX);
// ---------------------------
//gfs
double dt1 = ((double)(clock()-t1)/(CLOCKS_PER_SEC/1000));
unsigned long int t2 = clock();
//eof gfs
popitam->Run(&digest); // IDENTIFIE LE SPECTRE
//gfs
double dt2 = ((double)(clock()-t2)/(CLOCKS_PER_SEC/1000));
//cout << "init_POP = " << dt0 << endl;
//cout << "init_DIG = " << dt1 << endl;
//cout << "Run = " << dt2 << endl;
//eof gfs
popitam->EndRun(spectrumData->specID);
fprintf(runManParam->FILEOUT, "\nProcessing time was: %f\n", (double)(clock()-iniTime)/CLOCKS_PER_SEC);
//popitam->DisplayUnusedAC(runManParam->FILEOUT);
fprintf(runManParam->FILEOUT, "\n\nNEXT______________________________________________________________\n\n");
if (popitam != NULL) {
delete popitam;
popitam = NULL;
memCheck.popitam--;
}
}
if (runManParam->XML_OUT) {
//.........这里部分代码省略.........