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

Method populateMetaData_

src/openms/source/FORMAT/SwathFile.cpp:298–306  ·  view source on GitHub ↗

Only read the meta data from a file and use it to populate exp_meta

Source from the content-addressed store, hash-verified

296
297 /// Only read the meta data from a file and use it to populate exp_meta
298 boost::shared_ptr< PeakMap > SwathFile::populateMetaData_(const String& file)
299 {
300 boost::shared_ptr<PeakMap > experiment_metadata(new PeakMap);
301 MzMLFile f;
302 f.getOptions().setAlwaysAppendData(true);
303 f.getOptions().setFillData(false);
304 f.load(file, *experiment_metadata);
305 return experiment_metadata;
306 }
307 /// Counts the number of scans in a full Swath file (e.g. concatenated non-split file)
308 void SwathFile::countScansInSwath_(const std::vector<MSSpectrum>& exp,
309 std::vector<int>& swath_counter, int& nr_ms1_spectra,

Callers

nothing calls this directly

Calls 3

setAlwaysAppendDataMethod · 0.80
setFillDataMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected