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

Function writeFeatureHeader

src/topp/TextExporter.cpp:175–193  ·  view source on GitHub ↗

write the header for feature data

Source from the content-addressed store, hash-verified

173
174 // write the header for feature data
175 void writeFeatureHeader(SVOutStream& out, const String& suffix = "",
176 bool incl_quality = true, bool comment = true)
177 {
178 StringList elements = ListUtils::create<String>("#rt,mz,intensity,charge,width");
179 if (!comment)
180 {
181 elements[0] = "rt";
182 }
183 if (incl_quality)
184 {
185 elements.push_back("quality");
186 }
187 bool old = out.modifyStrings(false);
188 for (const String& str : elements)
189 {
190 out << str + suffix;
191 }
192 out.modifyStrings(old);
193 }
194
195 // write meta value keys in header
196 void writeMetaValueKeysHeader(SVOutStream& out, const std::set<String>& meta_value_keys = {})

Callers 1

main_Method · 0.85

Calls 2

modifyStringsMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected