37 #include "boost/range/adaptor/transformed.hpp" 38 #include "boost/range/algorithm/max_element.hpp" 39 #include "boost/range/algorithm/min_element.hpp" 61 readers.
read(example_data_dir+
"/example.pep.xml", mzid0, readerConfig);
62 readers.
read(example_data_dir+
"/example.prot.xml", mzid1, readerConfig);
72 readers.
read(example_data_dir+
"/example.pep.xml", mzid0, readerConfig);
73 readers.
read(example_data_dir+
"/example.prot.xml", mzid0, readerConfig);
74 readers.
read(example_data_dir+
"/example.prot.xml", mzid1, readerConfig);
77 if (
os_ && diff1) *
os_ << diff1 << endl;
84 readers.
read(example_data_dir+
"/example.prot.xml", mzid0, readerConfig);
85 readers.
read(example_data_dir+
"/example.prot.mzid", mzid1, readerConfig);
88 if (
os_ && diff2) *
os_ << diff2 << endl;
89 else if (diff2) cout << diff2 << endl;
95 int main(
int argc,
char** argv)
101 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
102 std::string srcparent(argv[0]);
103 size_t pos = srcparent.find(
"build");
105 if (pos == std::string::npos) {
106 srcparent = __FILE__;
108 pos = srcparent.rfind(
"pwiz");
110 srcparent.resize(pos);
111 string example_data_dir = srcparent +
"example_data";
HACK: provide an option to read only file-level metadata; once we have an enumerable ResultList imple...
Calculate diffs of objects in a ProteoWizard data model hierarchy.
int main(int argc, char **argv)
Implementation of the MzIdentMLType from the mzIdentML schema.
void testSerialize(const string &example_data_dir)
#define TEST_PROLOG(argc, argv)
virtual void read(const std::string &filename, IdentData &result, const Config &config=Config()) const
delegates to first child that identifies