write the header for feature data
| 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 = {}) |
no test coverage detected