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