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

Method transformFirstPass_

src/openms/source/FORMAT/MzMLFile.cpp:202–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 }
201
202 void MzMLFile::transformFirstPass_(const String& filename_in, Interfaces::IMSDataConsumer* consumer, bool skip_full_count)
203 {
204 // Create temporary objects and counters
205 PeakFileOptions tmp_options(options_);
206 Size scount = 0, ccount = 0;
207 PeakMap experimental_settings;
208 Internal::MzMLHandler handler(experimental_settings, filename_in, getVersion(), *this);
209
210 // set temporary options for handler
211 tmp_options.setMetadataOnly( skip_full_count );
212 handler.setOptions(tmp_options);
213 handler.setLoadDetail(Internal::XMLHandler::LD_RAWCOUNTS);
214
215 safeParse_(filename_in, &handler);
216
217 // After parsing, collect information
218 handler.getCounts(scount, ccount);
219 consumer->setExpectedSize(scount, ccount);
220 consumer->setExperimentalSettings(experimental_settings);
221 }
222
223 std::map<UInt, MzMLFile::SpecInfo> MzMLFile::getCentroidInfo(const String& filename, const Size first_n_spectra_only)
224 {

Callers

nothing calls this directly

Calls 6

getCountsMethod · 0.80
setMetadataOnlyMethod · 0.45
setOptionsMethod · 0.45
setLoadDetailMethod · 0.45
setExpectedSizeMethod · 0.45

Tested by

no test coverage detected