OpenMS
Loading...
Searching...
No Matches
MascotXMLHandler.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Nico Pfeifer, Chris Bielow $
7// --------------------------------------------------------------------------
8
9#pragma once
10
19
20#include <vector>
21
22namespace OpenMS
23{
24 namespace Internal
25 {
29 class OPENMS_DLLAPI MascotXMLHandler :
30 public XMLHandler
31 {
32public:
34 MascotXMLHandler(ProteinIdentification& protein_identification,
35 PeptideIdentificationList& identifications,
36 const String& filename,
37 std::map<String, std::vector<AASequence> >& peptides,
38 const SpectrumMetaDataLookup& lookup);
39
42
43 // Docu in base class
44 void endElement(const XMLCh* const /*uri*/, const XMLCh* const /*local_name*/, const XMLCh* const qname) override;
45
46 // Docu in base class
47 void startElement(const XMLCh* const /*uri*/, const XMLCh* const /*local_name*/, const XMLCh* const qname, const xercesc::Attributes& attributes) override;
48
49 // Docu in base class
50 void characters(const XMLCh* const chars, const XMLSize_t /*length*/) override;
51
53 static std::vector<String> splitModificationBySpecifiedAA(const String& mod);
54
55private:
56
70 std::map<String, std::vector<AASequence> >& modified_peptides_;
71
76
77 // list of modifications, which cannot be set as fixed and needs
78 // to be removed, because added from mascot as variable modification
79 std::vector<String> remove_fixed_mods_;
80
83
86 };
87
88 } // namespace Internal
89} // namespace OpenMS
90
char16_t XMLCh
Definition ClassTest.h:28
DateTime Class.
Definition DateTime.h:35
Handler that is used for parsing MascotXML data.
Definition MascotXMLHandler.h:31
String minor_version_
Definition MascotXMLHandler.h:75
UInt actual_query_
Definition MascotXMLHandler.h:66
PeptideEvidence actual_peptide_evidence_
Definition MascotXMLHandler.h:61
String major_version_
Definition MascotXMLHandler.h:74
MascotXMLHandler(ProteinIdentification &protein_identification, PeptideIdentificationList &identifications, const String &filename, std::map< String, std::vector< AASequence > > &peptides, const SpectrumMetaDataLookup &lookup)
Constructor.
std::map< String, std::vector< AASequence > > & modified_peptides_
Definition MascotXMLHandler.h:70
PeptideHit actual_peptide_hit_
Definition MascotXMLHandler.h:60
ProteinIdentification::SearchParameters search_parameters_
Definition MascotXMLHandler.h:67
bool no_rt_error_
Error for missing RT information already reported?
Definition MascotXMLHandler.h:85
String tag_
Definition MascotXMLHandler.h:63
String date_time_string_
Definition MascotXMLHandler.h:65
String actual_title_
Definition MascotXMLHandler.h:69
StringList tags_open_
tracking the current XML tree
Definition MascotXMLHandler.h:72
static std::vector< String > splitModificationBySpecifiedAA(const String &mod)
Split modification search parameter if for more than one amino acid specified e.g....
ProteinHit actual_protein_hit_
Definition MascotXMLHandler.h:59
PeptideIdentificationList & id_data_
the identifications (storing the peptide hits)
Definition MascotXMLHandler.h:58
void startElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname, const xercesc::Attributes &attributes) override
DateTime date_
Definition MascotXMLHandler.h:64
UInt peptide_identification_index_
Definition MascotXMLHandler.h:62
const SpectrumMetaDataLookup & lookup_
Helper object for looking up RT information.
Definition MascotXMLHandler.h:82
void characters(const XMLCh *const chars, const XMLSize_t) override
String character_buffer_
filled by MascotXMLHandler::characters
Definition MascotXMLHandler.h:73
~MascotXMLHandler() override
Destructor.
void endElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname) override
ProteinIdentification & protein_identification_
the protein identifications
Definition MascotXMLHandler.h:57
std::vector< String > remove_fixed_mods_
Definition MascotXMLHandler.h:79
String identifier_
Definition MascotXMLHandler.h:68
Base class for XML handlers.
Definition XMLHandler.h:328
Representation of a peptide evidence.
Definition PeptideEvidence.h:28
Represents a single spectrum match (candidate) for a specific tandem mass spectrum (MS/MS).
Definition PeptideHit.h:52
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Representation of a protein hit.
Definition ProteinHit.h:35
Representation of a protein identification run.
Definition ProteinIdentification.h:54
Helper class for looking up spectrum meta data.
Definition SpectrumMetaDataLookup.h:118
A more convenient string class.
Definition String.h:34
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
std::vector< String > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Search parameters of the DB search.
Definition ProteinIdentification.h:254