ProteoWizard
|
#include "Diff.hpp"
#include "TextWriter.hpp"
#include "examples.hpp"
#include "pwiz/utility/misc/unit.hpp"
#include "pwiz/utility/misc/Std.hpp"
#include <cstring>
Go to the source code of this file.
Variables | |
ostream * | os_ = 0 |
const double | epsilon = numeric_limits<double>::epsilon() |
void testIdentifiable | ( | ) |
Definition at line 43 of file DiffTest.cpp.
References diff(), pwiz::identdata::Identifiable::id, pwiz::data::BaseDiffConfig::ignoreVersions, pwiz::identdata::Identifiable::name, os_, and unit_assert.
Referenced by test().
void testFragmentArray | ( | ) |
Definition at line 90 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, diff(), e(), pwiz::identdata::FragmentArray::measurePtr, os_, unit_assert, unit_assert_equal, and pwiz::identdata::FragmentArray::values.
Referenced by test().
void testIonType | ( | ) |
Definition at line 128 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::identdata::IonType::charge, pwiz::data::CVParam::cvid, diff(), epsilon, pwiz::identdata::IonType::fragmentArray, pwiz::identdata::IonType::index, MS_frag__a_ion, MS_frag__z_ion, os_, unit_assert, and unit_assert_equal.
Referenced by test().
void testMeasure | ( | ) |
Definition at line 170 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::ParamContainer::cvParams, diff(), pwiz::data::ParamContainer::hasCVParam(), MS_product_ion_intensity, MS_product_ion_m_z, os_, pwiz::data::ParamContainer::set(), and unit_assert.
Referenced by test(), and testSpectrumIdentificationList().
void testSearchModification | ( | ) |
Definition at line 195 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::ParamContainer::cvParams, diff(), epsilon, pwiz::identdata::SearchModification::massDelta, os_, pwiz::identdata::SearchModification::residues, pwiz::data::ParamContainer::set(), UNIMOD_Gln__pyro_Glu, UNIMOD_Oxidation, unit_assert, and unit_assert_equal.
Referenced by test().
void testPeptideEvidence | ( | ) |
Definition at line 233 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::ParamContainer::cvParams, pwiz::identdata::PeptideEvidence::dbSequencePtr, diff(), pwiz::identdata::PeptideEvidence::end, epsilon, pwiz::identdata::PeptideEvidence::frame, pwiz::data::ParamContainer::hasCVParam(), pwiz::identdata::PeptideEvidence::isDecoy, MS_Mascot_expectation_value, MS_Mascot_score, os_, pwiz::identdata::PeptideEvidence::post, pwiz::identdata::PeptideEvidence::pre, pwiz::data::ParamContainer::set(), pwiz::identdata::PeptideEvidence::start, pwiz::identdata::PeptideEvidence::translationTablePtr, unit_assert, and unit_assert_equal.
Referenced by test().
void testProteinAmbiguityGroup | ( | ) |
Definition at line 301 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::ParamContainer::cvParams, diff(), pwiz::data::ParamContainer::hasCVParam(), MS_Mascot_expectation_value, MS_Mascot_score, os_, pwiz::identdata::ProteinAmbiguityGroup::proteinDetectionHypothesis, pwiz::data::ParamContainer::set(), and unit_assert.
Referenced by test().
void testPeptideHypothesis | ( | ) |
Definition at line 335 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, diff(), os_, pwiz::identdata::PeptideHypothesis::peptideEvidencePtr, pwiz::identdata::PeptideHypothesis::spectrumIdentificationItemPtr, and unit_assert.
Referenced by testProteinDetectionHypothesis().
void testProteinDetectionHypothesis | ( | ) |
Definition at line 366 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::ParamContainer::cvParams, pwiz::identdata::ProteinDetectionHypothesis::dbSequencePtr, diff(), pwiz::data::ParamContainer::hasCVParam(), MS_Mascot_expectation_value, os_, pwiz::identdata::ProteinDetectionHypothesis::passThreshold, pwiz::identdata::ProteinDetectionHypothesis::peptideHypothesis, pwiz::data::ParamContainer::set(), and unit_assert.
Referenced by test().
void testSpectrumIdentificationList | ( | ) |
Definition at line 415 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, diff(), epsilon, pwiz::identdata::SpectrumIdentificationList::fragmentationTable, MS_Mascot_expectation_value, pwiz::identdata::SpectrumIdentificationList::numSequencesSearched, os_, pwiz::identdata::SpectrumIdentificationList::spectrumIdentificationResult, testMeasure(), unit_assert, and unit_assert_equal.
Referenced by test().
void testProteinDetectionList | ( | ) |
Definition at line 453 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::ParamContainer::cvParams, diff(), pwiz::data::ParamContainer::hasCVParam(), MS_frag__b_ion, MS_frag__z_ion, MS_Mascot_expectation_value, os_, pwiz::identdata::ProteinDetectionList::proteinAmbiguityGroup, pwiz::data::ParamContainer::set(), and unit_assert.
Referenced by test().
void testAnalysisData | ( | ) |
Definition at line 484 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, diff(), epsilon, os_, pwiz::identdata::AnalysisData::proteinDetectionListPtr, pwiz::identdata::AnalysisData::spectrumIdentificationList, unit_assert, and unit_assert_equal.
Referenced by test().
void testSearchDatabase | ( | ) |
Definition at line 519 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::CVParam::cvid, pwiz::data::ParamContainer::cvParams, pwiz::identdata::SearchDatabase::databaseName, diff(), pwiz::data::CVParam::empty(), epsilon, pwiz::identdata::SearchDatabase::fileFormat, pwiz::data::ParamContainer::hasCVParam(), MS_frag__z_ion, pwiz::identdata::SearchDatabase::numDatabaseSequences, pwiz::identdata::SearchDatabase::numResidues, os_, pwiz::identdata::SearchDatabase::releaseDate, pwiz::data::ParamContainer::set(), unit_assert, unit_assert_equal, and pwiz::identdata::SearchDatabase::version.
Referenced by main(), and test().
void testSpectraData | ( | ) |
Definition at line 567 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::CVParam::cvid, diff(), pwiz::data::CVParam::empty(), pwiz::identdata::SpectraData::externalFormatDocumentation, pwiz::identdata::SpectraData::fileFormat, pwiz::identdata::SpectraData::location, MS_frag__b_ion, os_, and unit_assert.
Referenced by test().
void testSourceFile | ( | ) |
Definition at line 601 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::CVParam::cvid, pwiz::data::ParamContainer::cvParams, diff(), pwiz::data::CVParam::empty(), pwiz::identdata::SourceFile::externalFormatDocumentation, pwiz::identdata::SourceFile::fileFormat, pwiz::data::ParamContainer::hasCVParam(), pwiz::identdata::SourceFile::location, MS_sample_name, MS_sample_number, MS_wolf, os_, pwiz::data::ParamContainer::set(), and unit_assert.
Referenced by test().
void testInputs | ( | ) |
Definition at line 641 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, diff(), epsilon, os_, pwiz::identdata::Inputs::searchDatabase, pwiz::identdata::Inputs::sourceFile, pwiz::identdata::Inputs::spectraData, unit_assert, and unit_assert_equal.
Referenced by test().
void testEnzyme | ( | ) |
Definition at line 679 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::identdata::Enzyme::cTermGain, pwiz::data::ParamContainer::cvParams, diff(), pwiz::identdata::Enzyme::enzymeName, pwiz::data::ParamContainer::hasCVParam(), pwiz::identdata::Identifiable::id, pwiz::identdata::Enzyme::minDistance, pwiz::identdata::Enzyme::missedCleavages, MS_Trypsin, pwiz::identdata::Enzyme::nTermGain, os_, SemiSpecific, pwiz::data::ParamContainer::set(), pwiz::identdata::Enzyme::siteRegexp, pwiz::identdata::Enzyme::terminalSpecificity, and unit_assert.
Referenced by test().
void testEnzymes | ( | ) |
Definition at line 732 of file DiffTest.cpp.
References diff(), pwiz::identdata::Enzymes::enzymes, pwiz::identdata::Enzymes::independent, and os_.
Referenced by test().
void testMassTable | ( | ) |
Definition at line 745 of file DiffTest.cpp.
References pwiz::identdata::MassTable::ambiguousResidue, diff(), pwiz::identdata::MassTable::id, pwiz::identdata::MassTable::msLevel, os_, pwiz::identdata::MassTable::residues, and unit_assert.
Referenced by test().
void testResidue | ( | ) |
Definition at line 785 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::identdata::Residue::code, diff(), epsilon, pwiz::identdata::Residue::mass, os_, unit_assert, and unit_assert_equal.
Referenced by test().
void testAmbiguousResidue | ( | ) |
Definition at line 813 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::identdata::AmbiguousResidue::code, pwiz::data::ParamContainer::cvParam(), diff(), MS_alternate_single_letter_codes, os_, pwiz::data::ParamContainer::set(), unit_assert, and pwiz::data::CVParam::value.
Referenced by test().
void testFilter | ( | ) |
Definition at line 841 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::data::ParamContainer::clear(), diff(), pwiz::identdata::Filter::exclude, pwiz::identdata::Filter::filterType, pwiz::data::ParamContainer::hasCVParam(), pwiz::identdata::Filter::include, MS_database_filtering, MS_DB_filter_on_accession_numbers, MS_DB_filter_taxonomy, MS_DB_MW_filter, MS_DB_PI_filter, MS_translation_table, os_, pwiz::data::ParamContainer::set(), and unit_assert.
Referenced by test().
void testDatabaseTranslation | ( | ) |
Definition at line 876 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, diff(), pwiz::identdata::DatabaseTranslation::frames, MS_translation_table, MS_translation_table_description, os_, pwiz::identdata::DatabaseTranslation::translationTable, unit_assert, and unit_assert_operator_equal.
Referenced by test().
void testSpectrumIdentificationProtocol | ( | ) |
Definition at line 921 of file DiffTest.cpp.
References pwiz::identdata::SpectrumIdentificationProtocol::additionalSearchParams, pwiz::identdata::SpectrumIdentificationProtocol::analysisSoftwarePtr, pwiz::data::CVParam::cvid, pwiz::identdata::SpectrumIdentificationProtocol::databaseFilters, diff(), pwiz::identdata::Enzymes::enzymes, pwiz::identdata::SpectrumIdentificationProtocol::enzymes, pwiz::identdata::SpectrumIdentificationProtocol::fragmentTolerance, pwiz::identdata::Identifiable::id, pwiz::identdata::SpectrumIdentificationProtocol::massTable, pwiz::identdata::SpectrumIdentificationProtocol::modificationParams, MS_FileFilter, MS_ms_ms_search, MS_pmf_search, MS_search_tolerance_minus_value, MS_search_tolerance_plus_value, MS_Sequest_CleavesAt, pwiz::identdata::Identifiable::name, os_, pwiz::identdata::SpectrumIdentificationProtocol::parentTolerance, pwiz::identdata::SpectrumIdentificationProtocol::searchType, pwiz::data::ParamContainer::set(), pwiz::identdata::SpectrumIdentificationProtocol::threshold, and unit_assert.
Referenced by test().
void testProteinDetectionProtocol | ( | ) |
Definition at line 976 of file DiffTest.cpp.
References pwiz::identdata::ProteinDetectionProtocol::analysisSoftwarePtr, diff(), pwiz::identdata::Identifiable::id, MS_low_intensity_threshold, pwiz::identdata::Identifiable::name, os_, and unit_assert.
Referenced by test().
void testAnalysisProtocolCollection | ( | ) |
void testContact | ( | ) |
Definition at line 1008 of file DiffTest.cpp.
References diff(), pwiz::identdata::IdentifiableParamContainer::id, MS_contact_address, MS_contact_email, MS_contact_fax_number, MS_contact_phone_number, MS_contact_toll_free_phone_number, pwiz::identdata::IdentifiableParamContainer::name, os_, pwiz::data::ParamContainer::set(), and unit_assert.
Referenced by test().
void testPerson | ( | ) |
Definition at line 1047 of file DiffTest.cpp.
References pwiz::identdata::Person::affiliations, diff(), pwiz::identdata::Person::firstName, pwiz::identdata::Person::lastName, pwiz::identdata::Person::midInitials, os_, and unit_assert.
Referenced by test().
void testOrganization | ( | ) |
void testBibliographicReference | ( | ) |
void testProteinDetection | ( | ) |
void testSpectrumIdentification | ( | ) |
void testAnalysisCollection | ( | ) |
void testDBSequence | ( | ) |
void testModification | ( | ) |
void testSubstitutionModification | ( | ) |
void testPeptide | ( | ) |
void testSequenceCollection | ( | ) |
void testSampleComponent | ( | ) |
void testSample | ( | ) |
Definition at line 1151 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::identdata::Sample::contactRole, pwiz::data::ParamContainer::cvParams, diff(), pwiz::data::ParamContainer::hasCVParam(), MS_role_type, MS_sample_name, os_, pwiz::data::ParamContainer::set(), and unit_assert.
Referenced by test().
void testSpectrumIdentificationItem | ( | ) |
void testSpectrumIdentificationResult | ( | ) |
void testAnalysisSampleCollection | ( | ) |
void testProvider | ( | ) |
void testContactRole | ( | ) |
Definition at line 1212 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::identdata::ContactRole::contactPtr, pwiz::data::CVParam::cvid, diff(), MS_software_vendor, os_, and unit_assert.
Referenced by test().
void testAnalysisSoftware | ( | ) |
Definition at line 1243 of file DiffTest.cpp.
References pwiz::identdata::AnalysisSoftware::customizations, diff(), os_, unit_assert, pwiz::identdata::AnalysisSoftware::URI, and pwiz::identdata::AnalysisSoftware::version.
Referenced by test().
void testDataCollection | ( | ) |
Definition at line 1265 of file DiffTest.cpp.
References pwiz::identdata::DataCollection::analysisData, diff(), pwiz::identdata::DataCollection::inputs, os_, pwiz::identdata::Inputs::searchDatabase, pwiz::identdata::Inputs::sourceFile, pwiz::identdata::Inputs::spectraData, pwiz::identdata::AnalysisData::spectrumIdentificationList, and unit_assert.
Referenced by test().
void testIdentData | ( | ) |
Definition at line 1287 of file DiffTest.cpp.
References pwiz::data::Diff< object_type, config_type, object_result_type >::a_b, pwiz::identdata::IdentData::analysisSoftwareList, pwiz::identdata::IdentData::auditCollection, pwiz::data::Diff< object_type, config_type, object_result_type >::b_a, pwiz::identdata::IdentData::bibliographicReference, pwiz::identdata::IdentData::cvs, diff(), pwiz::identdata::examples::initializeTiny(), os_, and unit_assert.
Referenced by test().
void test | ( | ) |
Definition at line 1319 of file DiffTest.cpp.
References testAmbiguousResidue(), testAnalysisCollection(), testAnalysisData(), testAnalysisProtocolCollection(), testAnalysisSampleCollection(), testAnalysisSoftware(), testBibliographicReference(), testContact(), testContactRole(), testDatabaseTranslation(), testDataCollection(), testDBSequence(), testEnzyme(), testEnzymes(), testFilter(), testFragmentArray(), testIdentData(), testIdentifiable(), testInputs(), testIonType(), testMassTable(), testMeasure(), testModification(), testOrganization(), testPeptide(), testPeptideEvidence(), testPerson(), testProteinAmbiguityGroup(), testProteinDetection(), testProteinDetectionHypothesis(), testProteinDetectionList(), testProteinDetectionProtocol(), testProvider(), testResidue(), testSample(), testSampleComponent(), testSearchDatabase(), testSearchModification(), testSequenceCollection(), testSourceFile(), testSpectraData(), testSpectrumIdentification(), testSpectrumIdentificationItem(), testSpectrumIdentificationList(), testSpectrumIdentificationProtocol(), testSpectrumIdentificationResult(), and testSubstitutionModification().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1371 of file DiffTest.cpp.
References e(), os_, test(), TEST_EPILOG, TEST_FAILED, and TEST_PROLOG_EX.
ostream* os_ = 0 |
Definition at line 40 of file DiffTest.cpp.
const double epsilon = numeric_limits<double>::epsilon() |
Definition at line 41 of file DiffTest.cpp.