28 #include "boost/foreach_field.hpp" 40 const double EPSILON = 1e-4;
42 if (bal::ends_with(filepath,
"ImsSynth_Chrom.d"))
45 ostringstream failedTests;
52 if (!failedTests.str().empty())
53 throw runtime_error(failedTests.str());
58 void parseArgs(
const vector<string>& args, vector<string>& rawpaths)
60 for (
size_t i = 1; i < args.size(); ++i)
62 if (args[i] ==
"-v")
os_ = &cout;
63 else if (bal::starts_with(args[i],
"--"))
continue;
64 else rawpaths.push_back(args[i]);
69 int main(
int argc,
char* argv[])
75 vector<string> args(argv, argv+argc);
76 vector<string> rawpaths;
81 BOOST_FOREACH(
const string& filepath, rawpaths)
83 test(filepath, readerList);
SpectrumList implementation that provides access to vendor-specific ion mobility functions.
virtual double driftTimeToCCS(double driftTime, double mz, int charge) const
returns collisional cross-section associated with the drift time (specified in milliseconds) ...
void test(const string &filepath, const ReaderList &readerList)
Reader container (composite pattern).
#define unit_assert_equal_to_stream(x, y, epsilon, os)
default ReaderList, extended to include vendor readers
Run run
a run in mzML should correspond to a single, consecutive and coherent set of scans on an instrument...
MSData object plus file I/O.
int main(int argc, char *argv[])
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.
#define TEST_PROLOG(argc, argv)
void parseArgs(const vector< string > &args, vector< string > &rawpaths)