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

Method generateMzTabMetaDataSection_

src/openms/source/FORMAT/MzTabFile.cpp:1542–1992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1540 }
1541
1542 void MzTabFile::generateMzTabMetaDataSection_(const MzTabMetaData& md, StringList& sl) const
1543 {
1544 sl.push_back(String("MTD\tmzTab-version\t") + md.mz_tab_version.toCellString());
1545 sl.push_back(String("MTD\tmzTab-mode\t") + md.mz_tab_mode.toCellString());
1546 sl.push_back(String("MTD\tmzTab-type\t") + md.mz_tab_type.toCellString());
1547
1548 if (!md.title.isNull())
1549 {
1550 String s = String("MTD\ttitle\t") + md.title.toCellString();
1551 sl.push_back(s);
1552 }
1553
1554 if (!md.mz_tab_id.isNull())
1555 {
1556 String s = String("MTD\tmzTab-ID\t") + md.mz_tab_id.toCellString();
1557 sl.push_back(s);
1558 }
1559
1560 sl.push_back(String("MTD\tdescription\t") + md.description.toCellString());
1561
1562 for (map<Size, MzTabParameterList>::const_iterator it = md.sample_processing.begin(); it != md.sample_processing.end(); ++it)
1563 {
1564 String s = "MTD\tsample_processing[" + String(it->first) + "]\t" + it->second.toCellString();
1565 sl.push_back(s);
1566 }
1567
1568 for (map<Size, MzTabParameter>::const_iterator it = md.protein_search_engine_score.begin(); it != md.protein_search_engine_score.end(); ++it)
1569 {
1570 String s = "MTD\tprotein_search_engine_score[" + String(it->first) + "]\t" + it->second.toCellString();
1571 sl.push_back(s);
1572 }
1573
1574 for (map<Size, MzTabParameter>::const_iterator it = md.peptide_search_engine_score.begin(); it != md.peptide_search_engine_score.end(); ++it)
1575 {
1576 String s = "MTD\tpeptide_search_engine_score[" + String(it->first) + "]\t" + it->second.toCellString();
1577 sl.push_back(s);
1578 }
1579
1580 for (map<Size, MzTabParameter>::const_iterator it = md.psm_search_engine_score.begin(); it != md.psm_search_engine_score.end(); ++it)
1581 {
1582 String s = "MTD\tpsm_search_engine_score[" + String(it->first) + "]\t" + it->second.toCellString();
1583 sl.push_back(s);
1584 }
1585
1586 for (map<Size, MzTabParameter>::const_iterator it = md.smallmolecule_search_engine_score.begin(); it != md.smallmolecule_search_engine_score.end(); ++it)
1587 {
1588 String s = "MTD\tsmallmolecule_search_engine_score[" + String(it->first) + "]\t" + it->second.toCellString();
1589 sl.push_back(s);
1590 }
1591
1592 for (map<Size, MzTabParameter>::const_iterator it = md.nucleic_acid_search_engine_score.begin(); it != md.nucleic_acid_search_engine_score.end(); ++it)
1593 {
1594 String s = "MTD\tnucleic_acid_search_engine_score[" + String(it->first) + "]\t" + it->second.toCellString();
1595 sl.push_back(s);
1596 }
1597
1598 for (map<Size, MzTabParameter>::const_iterator it = md.oligonucleotide_search_engine_score.begin(); it != md.oligonucleotide_search_engine_score.end(); ++it)
1599 {

Callers

nothing calls this directly

Calls 8

StringClass · 0.50
push_backMethod · 0.45
toCellStringMethod · 0.45
isNullMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected