ProteoWizard
|
#include "RegionAnalyzer.hpp"
#include "pwiz/data/msdata/TextWriter.hpp"
#include "pwiz/utility/misc/unit.hpp"
#include "pwiz/utility/misc/Std.hpp"
#include <cstring>
#include <boost/algorithm/string/split.hpp>
Go to the source code of this file.
Functions | |
void | initialize (MSData &msd) |
ostream & | operator<< (ostream &os, const RegionAnalyzer::SpectrumStats &ss) |
ostream & | operator<< (ostream &os, const RegionAnalyzer::Stats &stats) |
void | testConfig (const RegionAnalyzer::Config &config) |
void | test () |
int | main (int argc, char *argv[]) |
Variables | |
ostream * | os_ = 0 |
double | data_ [5][14] |
const double | epsilon_ = 1e-14 |
void initialize | ( | MSData & | msd | ) |
Definition at line 57 of file RegionAnalyzerTest.cpp.
References data_, boost::lexical_cast(), MS_number_of_counts, MS_scan_start_time, pwiz::msdata::MSData::run, pwiz::msdata::Run::spectrumListPtr, and UO_second.
Referenced by testConfig().
ostream& operator<< | ( | ostream & | os, |
const RegionAnalyzer::SpectrumStats & | ss | ||
) |
Definition at line 78 of file RegionAnalyzerTest.cpp.
References pwiz::msdata::MZIntensityPair::intensity, pwiz::analysis::RegionAnalyzer::SpectrumStats::max, pwiz::msdata::MZIntensityPair::mz, pwiz::analysis::RegionAnalyzer::SpectrumStats::peak, and pwiz::analysis::RegionAnalyzer::SpectrumStats::sumIntensity.
ostream& operator<< | ( | ostream & | os, |
const RegionAnalyzer::Stats & | stats | ||
) |
Definition at line 87 of file RegionAnalyzerTest.cpp.
References pwiz::analysis::RegionAnalyzer::Stats::indexApex, pwiz::analysis::RegionAnalyzer::Stats::mean_peak_mz, pwiz::analysis::RegionAnalyzer::Stats::nonzeroCount, pwiz::analysis::RegionAnalyzer::Stats::sd_peak_mz, pwiz::analysis::RegionAnalyzer::Stats::sum_peak_intensity, pwiz::analysis::RegionAnalyzer::Stats::sum_sumIntensity, and pwiz::analysis::RegionAnalyzer::Stats::variance_peak_mz.
void testConfig | ( | const RegionAnalyzer::Config & | config | ) |
Definition at line 100 of file RegionAnalyzerTest.cpp.
References pwiz::analysis::MSDataAnalyzerDriver::analyze(), epsilon_, pwiz::analysis::RegionAnalyzer::Stats::indexApex, initialize(), pwiz::analysis::RegionAnalyzer::Stats::mean_peak_mz, pwiz::analysis::RegionAnalyzer::Stats::nonzeroCount, os_, pwiz::analysis::RegionAnalyzer::Stats::sd_peak_mz, pwiz::analysis::RegionAnalyzer::Stats::sum_peak_intensity, pwiz::analysis::RegionAnalyzer::Stats::sum_sumIntensity, unit_assert, unit_assert_equal, and pwiz::analysis::RegionAnalyzer::Stats::variance_peak_mz.
Referenced by test().
void test | ( | ) |
Definition at line 174 of file RegionAnalyzerTest.cpp.
References pwiz::analysis::TabularConfig::checkDelimiter(), pwiz::analysis::RegionAnalyzer::Config::dumpRegionData, pwiz::analysis::RegionAnalyzer::Config::indexRange, pwiz::analysis::RegionAnalyzer::Config::mzRange, os_, pwiz::analysis::RegionAnalyzer::Config::osDump, pwiz::analysis::RegionAnalyzer::Config::rtRange, pwiz::analysis::RegionAnalyzer::Config::scanNumberRange, TABULARCONFIG_DELIMITER_OPTIONS_STR, testConfig(), and unit_assert.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 254 of file RegionAnalyzerTest.cpp.
References e(), os_, test(), TEST_EPILOG, TEST_FAILED, and TEST_PROLOG.
ostream* os_ = 0 |
Definition at line 37 of file RegionAnalyzerTest.cpp.
double data_[5][14] |
Definition at line 47 of file RegionAnalyzerTest.cpp.
const double epsilon_ = 1e-14 |
Definition at line 75 of file RegionAnalyzerTest.cpp.