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

Function convertMap_

src/openms/source/ANALYSIS/ID/IDBoostGraph.cpp:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_(

Callers 1

Calls 2

atMethod · 0.80
getLabelAsUIntMethod · 0.80

Tested by

no test coverage detected