ProteoWizard
|
#include "pwiz/utility/misc/unit.hpp"
#include "Peptide.hpp"
#include "Digestion.hpp"
#include "pwiz/utility/misc/Std.hpp"
#include "boost/thread/thread.hpp"
#include "boost/thread/barrier.hpp"
#include "boost/exception/all.hpp"
#include "boost/foreach_field.hpp"
Go to the source code of this file.
Classes | |
struct | DigestedPeptideLessThan |
struct | ThreadStatus |
Functions | |
void | testCleavageAgents () |
bool | testDigestionMetadata (const DigestedPeptide &peptide, const string &expectedSequence, size_t expectedOffset, size_t expectedMissedCleavages, size_t expectedSpecificTermini, const string &expectedPrefix, const string &expectedSuffix) |
void | testTrypticBSA (const Digestion &trypticDigestion) |
void | testSemitrypticBSA (const Digestion &semitrypticDigestion) |
void | testNontrypticBSA (const Digestion &nontrypticDigestion) |
void | testSemitrypticMethionineClippingBSA (const Digestion &semitrypticDigestion) |
void | testBSADigestion () |
void | testFind () |
void | testThreadSafetyWorker (boost::barrier *testBarrier, ThreadStatus &status) |
void | testThreadSafety (const int &testThreadCount) |
int | main (int argc, char *argv[]) |
Variables | |
ostream * | os_ = 0 |
void testCleavageAgents | ( | ) |
Definition at line 43 of file DigestionTest.cpp.
References pwiz::identdata::cleavageAgents(), CVID_Unknown, pwiz::cv::cvTermInfo(), MS_Arg_C, MS_Asp_N, MS_Asp_N_ambic, MS_Chymotrypsin, MS_CNBr, MS_Formic_acid, MS_ion_trap, MS_Lys_C, MS_Lys_C_P, MS_no_cleavage, MS_NoEnzyme_OBSOLETE, MS_PepsinA, MS_TrypChymo, MS_Trypsin, MS_Trypsin_P, MS_unspecific_cleavage, MS_V8_DE, MS_V8_E, pwiz::cv::CVTermInfo::name, os_, unit_assert, unit_assert_operator_equal, and unit_assert_throws.
Referenced by testThreadSafetyWorker().
bool testDigestionMetadata | ( | const DigestedPeptide & | peptide, |
const string & | expectedSequence, | ||
size_t | expectedOffset, | ||
size_t | expectedMissedCleavages, | ||
size_t | expectedSpecificTermini, | ||
const string & | expectedPrefix, | ||
const string & | expectedSuffix | ||
) |
Definition at line 119 of file DigestionTest.cpp.
References pwiz::proteome::DigestedPeptide::CTerminusSuffix(), e(), pwiz::proteome::DigestedPeptide::missedCleavages(), pwiz::proteome::DigestedPeptide::NTerminusPrefix(), pwiz::proteome::DigestedPeptide::offset(), pwiz::proteome::Peptide::sequence(), pwiz::proteome::DigestedPeptide::specificTermini(), and unit_assert_operator_equal.
Referenced by testFind(), and testTrypticBSA().
void testTrypticBSA | ( | const Digestion & | trypticDigestion | ) |
Definition at line 144 of file DigestionTest.cpp.
References pwiz::proteome::Digestion::begin(), pwiz::proteome::Digestion::end(), pwiz::proteome::DigestedPeptide::missedCleavages(), pwiz::proteome::DigestedPeptide::offset(), os_, pwiz::identdata::peptide(), pwiz::proteome::Peptide::sequence(), pwiz::proteome::DigestedPeptide::specificTermini(), testDigestionMetadata(), and unit_assert.
Referenced by testBSADigestion().
void testSemitrypticBSA | ( | const Digestion & | semitrypticDigestion | ) |
Definition at line 198 of file DigestionTest.cpp.
References pwiz::proteome::Digestion::begin(), pwiz::proteome::Digestion::end(), pwiz::proteome::DigestedPeptide::missedCleavages(), pwiz::proteome::DigestedPeptide::offset(), os_, pwiz::identdata::peptide(), pwiz::proteome::Peptide::sequence(), pwiz::proteome::DigestedPeptide::specificTermini(), unit_assert, and unit_assert_operator_equal.
Referenced by testBSADigestion().
void testNontrypticBSA | ( | const Digestion & | nontrypticDigestion | ) |
Definition at line 288 of file DigestionTest.cpp.
References pwiz::proteome::Digestion::begin(), pwiz::proteome::Digestion::end(), pwiz::proteome::DigestedPeptide::missedCleavages(), pwiz::proteome::DigestedPeptide::offset(), os_, pwiz::identdata::peptide(), pwiz::proteome::Peptide::sequence(), pwiz::proteome::DigestedPeptide::specificTermini(), unit_assert, and unit_assert_operator_equal.
Referenced by testBSADigestion().
void testSemitrypticMethionineClippingBSA | ( | const Digestion & | semitrypticDigestion | ) |
Definition at line 388 of file DigestionTest.cpp.
References pwiz::proteome::Digestion::begin(), pwiz::proteome::Digestion::end(), pwiz::proteome::DigestedPeptide::missedCleavages(), pwiz::proteome::DigestedPeptide::offset(), os_, pwiz::identdata::peptide(), pwiz::proteome::Peptide::sequence(), pwiz::proteome::DigestedPeptide::specificTermini(), unit_assert, and unit_assert_operator_equal.
Referenced by testBSADigestion().
void testBSADigestion | ( | ) |
Definition at line 479 of file DigestionTest.cpp.
References pwiz::proteome::Digestion::begin(), pwiz::proteome::Digestion::end(), MS_Asp_N, MS_no_cleavage, MS_Trypsin_P, MS_unspecific_cleavage, NonSpecific, os_, SemiSpecific, testNontrypticBSA(), testSemitrypticBSA(), testSemitrypticMethionineClippingBSA(), testTrypticBSA(), and unit_assert_operator_equal.
Referenced by testThreadSafetyWorker().
void testFind | ( | ) |
Definition at line 547 of file DigestionTest.cpp.
References pwiz::proteome::Digestion::find_all(), pwiz::proteome::Digestion::find_first(), MS_Lys_C_P, NonSpecific, SemiSpecific, testDigestionMetadata(), unit_assert, and unit_assert_throws.
void testThreadSafetyWorker | ( | boost::barrier * | testBarrier, |
ThreadStatus & | status | ||
) |
Definition at line 635 of file DigestionTest.cpp.
References e(), ThreadStatus::exception, testBSADigestion(), testCleavageAgents(), and testFind().
void testThreadSafety | ( | const int & | testThreadCount | ) |
Definition at line 655 of file DigestionTest.cpp.
References testThreadSafetyWorker().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 680 of file DigestionTest.cpp.
References e(), os_, TEST_EPILOG, TEST_FAILED, TEST_PROLOG, and testThreadSafety().
ostream* os_ = 0 |
Definition at line 40 of file DigestionTest.cpp.