MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / getCounts

Method getCounts

src/openms/source/FORMAT/HANDLERS/MzMLHandler.cpp:92–104  ·  view source on GitHub ↗

Get the spectra and chromatogram counts of a file

Source from the content-addressed store, hash-verified

90
91 /// Get the spectra and chromatogram counts of a file
92 void MzMLHandler::getCounts(Size& spectra_counts, Size& chromatogram_counts)
93 {
94 if (load_detail_ == XMLHandler::LD_RAWCOUNTS)
95 {
96 spectra_counts = std::max(scan_count_total_, 0); // default is -1; if no specs were found, report 0
97 chromatogram_counts = std::max(chrom_count_total_, 0);
98 }
99 else
100 {
101 spectra_counts = scan_count_;
102 chromatogram_counts = chromatogram_count_;
103 }
104 }
105
106 /// Set the IMSDataConsumer consumer which will consume the read data
107 void MzMLHandler::setMSDataConsumer(Interfaces::IMSDataConsumer* consumer)

Callers 2

loadSizeMethod · 0.80
transformFirstPass_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected