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

Method annotateWorker_

src/openms_gui/source/VISUAL/LayerDataBase.cpp:176–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 }
175
176 bool LayerAnnotatorPeptideID::annotateWorker_(LayerDataBase& layer, const String& filename, LogWindow& /*log*/) const
177 {
178 FileTypes::Type type = FileHandler::getType(filename);
179 vector<PeptideIdentification> identifications;
180 vector<ProteinIdentification> protein_identifications;
181 if (type == FileTypes::MZIDENTML)
182 {
183 MzIdentMLFile().load(filename, protein_identifications, identifications);
184 }
185 else
186 {
187 String document_id;
188 IdXMLFile().load(filename, protein_identifications, identifications, document_id);
189 }
190
191 layer.annotate(identifications, protein_identifications);
192 return true;
193 }
194
195 bool LayerAnnotatorAMS::annotateWorker_(LayerDataBase& layer, const String& filename, LogWindow& log) const
196 {

Callers

nothing calls this directly

Calls 15

getTypeFunction · 0.85
backMethod · 0.80
setParametersMethod · 0.80
appendNewHeaderMethod · 0.80
readMinimalMethod · 0.80
buildNativeIDResolverMethod · 0.80
appendTextMethod · 0.80
StringClass · 0.50
loadMethod · 0.45
annotateMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected