| 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_) |
nothing calls this directly
no test coverage detected