| 168 | } |
| 169 | |
| 170 | unordered_map<unsigned, unsigned> convertMap_( |
| 171 | const map<pair<String, unsigned>, unsigned>& fileLabToPrefractionationGroup, |
| 172 | const ConsensusMap::ColumnHeaders& idxToFileLabMappings, |
| 173 | const String& experiment_type) |
| 174 | { |
| 175 | unordered_map<unsigned, unsigned> indexToRun; |
| 176 | for (const auto& mapping : idxToFileLabMappings) |
| 177 | { |
| 178 | indexToRun[mapping.first] = |
| 179 | fileLabToPrefractionationGroup.at(make_pair(mapping.second.filename, mapping.second.getLabelAsUInt(experiment_type))); |
| 180 | } // TODO what if file is not in the experimental design? Check in the very beginning!? |
| 181 | return indexToRun; |
| 182 | } |
| 183 | |
| 184 | |
| 185 | void IDBoostGraph::addPeptideIDWithAssociatedProteins_( |
no test coverage detected