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

Method transformFirstPass_

src/openms/source/FORMAT/MzXMLFile.cpp:91–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 void MzXMLFile::transformFirstPass_(const String& filename_in, Interfaces::IMSDataConsumer * consumer, bool skip_full_count)
92 {
93 // Create temporary objects and counters
94 PeakFileOptions tmp_options(options_);
95 Size scount = 0, ccount = 0;
96 MapType experimental_settings;
97 Internal::MzXMLHandler handler(experimental_settings, filename_in, getVersion(), *this);
98
99 // set temporary options for handler
100 tmp_options.setMetadataOnly( skip_full_count );
101 handler.setOptions(tmp_options);
102 handler.setLoadDetail(Internal::XMLHandler::LD_RAWCOUNTS);
103 parse_(filename_in, &handler);
104
105 // After parsing, collect information
106 scount = handler.getScanCount();
107 consumer->setExpectedSize(scount, ccount);
108 consumer->setExperimentalSettings(experimental_settings);
109 }
110
111} // namespace OpenMS
112

Callers

nothing calls this directly

Calls 5

setMetadataOnlyMethod · 0.45
setOptionsMethod · 0.45
setLoadDetailMethod · 0.45
setExpectedSizeMethod · 0.45

Tested by

no test coverage detected