37 #include "boost/range/adaptor/transformed.hpp"
38 #include "boost/range/algorithm/max_element.hpp"
39 #include "boost/range/algorithm/min_element.hpp"
43 using namespace pwiz::identdata;
44 using namespace pwiz::identdata::examples;
45 using namespace pwiz::util;
46 namespace proteome = pwiz::proteome;
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";