27 #include "boost/filesystem/path.hpp" 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();
bool preprocessWithLogarithm
MZRTField is a std::set of boost::shared_ptrs, stored as a binary tree ordered by LessThan_MZRT...
NoiseCalculator_2Pass::Config noiseCalculator_2Pass
predicate returns true iff the object's retention time range contains the specified retention time ...
void verifyBombesinFeatures(const FeatureField &featureField)
std::vector< TPtr > find(double mz, MZTolerance mzTolerance, RTMatches matches) const
find all objects with a given m/z, within a given m/z tolerance, satisfying the 'matches' predicate ...
#define unit_assert_equal(x, y, epsilon)
PeakFitter_Parabola::Config peakFitter_Parabola
void testBombesin(const string &filename)
PeakelGrower_Proximity::Config peakelGrower_Proximity
PeakelPicker_Basic::Config peakelPicker_Basic
Run run
a run in mzML should correspond to a single, consecutive and coherent set of scans on an instrument...
void test(const bfs::path &datadir)
shared_ptr< FeatureDetectorPeakel > createFeatureDetectorPeakel()
size_t minMonoisotopicPeakelSize
MSData object plus file I/O.
SpectrumListPtr spectrumListPtr
all mass spectra and the acquisitions underlying them are described and attached here. Subsidiary data arrays are also both described and attached here.
PeakFinder_SNR::Config peakFinder_SNR
struct for expressing m/z tolerance in either amu or ppm
#define TEST_PROLOG(argc, argv)
int main(int argc, char *argv[])