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

Method generateMzTabSectionRow_

src/openms/source/FORMAT/MzTabFile.cpp:2082–2196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2080 }
2081
2082 String MzTabFile::generateMzTabSectionRow_(
2083 const MzTabProteinSectionRow& row,
2084 const vector<String>& optional_columns,
2085 const MzTabMetaData& meta,
2086 size_t& n_columns) const
2087 {
2088 StringList s;
2089 s.push_back("PRT");
2090 s.push_back(row.accession.toCellString());
2091 s.push_back(row.description.toCellString());
2092 s.push_back(row.taxid.toCellString());
2093 s.push_back(row.species.toCellString());
2094 s.push_back(row.database.toCellString());
2095 s.push_back(row.database_version.toCellString());
2096 s.push_back(row.search_engine.toCellString());
2097
2098 for (map<Size, MzTabDouble>::const_iterator it = row.best_search_engine_score.begin(); it != row.best_search_engine_score.end(); ++it)
2099 {
2100 s.push_back(it->second.toCellString());
2101 }
2102
2103 for (std::map<Size, std::map<Size, MzTabDouble> >::const_iterator it = row.search_engine_score_ms_run.begin(); it != row.search_engine_score_ms_run.end(); ++it)
2104 {
2105 for (std::map<Size, MzTabDouble>::const_iterator sit = it->second.begin(); sit != it->second.end(); ++sit)
2106 {
2107 s.push_back(sit->second.toCellString());
2108 }
2109 }
2110
2111 if (store_protein_reliability_)
2112 {
2113 s.push_back(row.reliability.toCellString());
2114 }
2115
2116 for (std::map<Size, MzTabInteger>::const_iterator it = row.num_psms_ms_run.begin(); it != row.num_psms_ms_run.end(); ++it)
2117 {
2118 s.push_back(it->second.toCellString());
2119 }
2120
2121 for (std::map<Size, MzTabInteger>::const_iterator it = row.num_peptides_distinct_ms_run.begin(); it != row.num_peptides_distinct_ms_run.end(); ++it)
2122 {
2123 s.push_back(it->second.toCellString());
2124 }
2125
2126 for (std::map<Size, MzTabInteger>::const_iterator it = row.num_peptides_unique_ms_run.begin(); it != row.num_peptides_unique_ms_run.end(); ++it)
2127 {
2128 s.push_back(it->second.toCellString());
2129 }
2130
2131 s.push_back(row.ambiguity_members.toCellString());
2132 s.push_back(row.modifications.toCellString());
2133
2134 if (store_protein_uri_)
2135 {
2136 s.push_back(row.uri.toCellString());
2137 }
2138
2139 if (store_protein_goterms_)

Callers

nothing calls this directly

Calls 9

concatenateFunction · 0.85
emplace_backMethod · 0.80
push_backMethod · 0.45
toCellStringMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected