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

Function writePeptideHeader

src/topp/TextExporter.cpp:379–409  ·  view source on GitHub ↗

write the header for peptide data

Source from the content-addressed store, hash-verified

377
378 // write the header for peptide data
379 void writePeptideHeader(SVOutStream& out, const String& what = "PEPTIDE",
380 bool incl_pred_rt = false,
381 bool incl_pred_pt = false,
382 bool incl_first_dim = false)
383 {
384 bool old = out.modifyStrings(false);
385 if (what.empty())
386 {
387 out << "#rt";
388 }
389 else
390 {
391 out << "#" + what << "rt";
392 }
393 out << "mz" << "score" << "rank" << "sequence" << "charge" << "aa_before"
394 << "aa_after" << "score_type" << "search_identifier" << "accessions"
395 << "start" << "end";
396 if (incl_pred_rt)
397 {
398 out << "predicted_rt";
399 }
400 if (incl_first_dim)
401 {
402 out << "rt_first_dim" << "predicted_rt_first_dim";
403 }
404 if (incl_pred_pt)
405 {
406 out << "predicted_pt";
407 }
408 out.modifyStrings(old);
409 }
410
411 // stream output operator for a PeptideHit
412 // TODO: output of multiple peptide evidences

Callers 1

main_Method · 0.85

Calls 2

modifyStringsMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected