27 #include "boost/filesystem/path.hpp"
31 using namespace pwiz::util;
32 using namespace pwiz::analysis;
33 using namespace pwiz::data;
34 using namespace pwiz::data::peakdata;
35 using namespace pwiz::msdata;
36 namespace bfs = boost::filesystem;
46 const double mz_bomb2 = 810.415;
47 vector<FeaturePtr> bombesin_2_found = featureField.
find(mz_bomb2, epsilon,
50 const Feature& bombesin_2 = *bombesin_2_found[0];
60 const double mz_bomb3 = 540.612;
61 vector<FeaturePtr> bombesin_3_found = featureField.
find(mz_bomb3, epsilon,
64 const Feature& bombesin_3 = *bombesin_3_found[0];
99 return FeatureDetectorPeakel::create(config);
105 if (
os_) *
os_ <<
"testBombesin()" << endl;
118 featureDetectorPeakel->detect(msd, featureField);
120 if (
os_) *
os_ <<
"featureField:\n" << featureField << endl;
125 void test(
const bfs::path& datadir)
127 testBombesin((datadir /
"FeatureDetectorTest_Bombesin.mzML").
string());
131 int main(
int argc,
char* argv[])
137 bfs::path datadir =
".";
139 for (
int i=1; i<argc; i++)
141 if (!strcmp(argv[i],
"-v"))
147 datadir = bfs::path(argv[i]).branch_path();