21 #include <xercesc/dom/DOM.hpp>
22 #include <xercesc/dom/DOMDocument.hpp>
23 #include <xercesc/dom/DOMDocumentType.hpp>
24 #include <xercesc/dom/DOMElement.hpp>
25 #include <xercesc/dom/DOMImplementation.hpp>
26 #include <xercesc/dom/DOMImplementationLS.hpp>
27 #include <xercesc/dom/DOMNodeIterator.hpp>
28 #include <xercesc/dom/DOMNodeList.hpp>
29 #include <xercesc/dom/DOMText.hpp>
30 #include <xercesc/util/OutOfMemoryException.hpp>
31 #include <xercesc/util/XMLString.hpp>
32 #include <xercesc/util/PlatformUtils.hpp>
33 #include <xercesc/framework/LocalFileFormatTarget.hpp>
35 #include <xercesc/parsers/XercesDOMParser.hpp>
36 #include <xercesc/util/XMLUni.hpp>
37 #include <xercesc/framework/psvi/XSValue.hpp>
105 const std::vector<ProteinIdentification>*
cpro_id_;
107 const std::vector<PeptideIdentification>*
cpep_id_;
117 std::pair<CVTermList, std::map<String, DataValue> >
parseParamGroup_(xercesc::DOMNodeList* paramGroup);
236 std::map<String, SpectrumIdentification>
si_map_;
240 std::map<String, SpectrumIdentificationProtocol>
sp_map_;
Representation of a peptide/protein sequence.
Definition: AASequence.h:86
Representation of controlled vocabulary term list.
Definition: CVTermList.h:28
Representation of controlled vocabulary term.
Definition: CVTerm.h:27
Representation of a controlled vocabulary.
Definition: ControlledVocabulary.h:29
DateTime Class.
Definition: DateTime.h:33
XML DOM handler for MzIdentMLFile.
Definition: MzIdentMLDOMHandler.h:71
ControlledVocabulary::CVTerm getChildWithName_(const String &parent_accession, const String &name) const
Looks up a child CV term of parent_accession with the name name. If no such term is found,...
void readMzIdentMLFile(const std::string &mzid_file)
Provides the functionality of reading a mzid with a handler object.
std::map< String, SpectrumIdentification > si_map_
mapping SpectrumIdentification id -> SpectrumIdentification (id refs)
Definition: MzIdentMLDOMHandler.h:236
void buildAnalysisSoftwareList_(xercesc::DOMElement *analysisSoftwareElements)
std::map< String, DatabaseInput > db_map_
mapping database id -> DatabaseInput
Definition: MzIdentMLDOMHandler.h:233
CVTermList parameter_cvs
Definition: MzIdentMLDOMHandler.h:200
String search_database_ref
Definition: MzIdentMLDOMHandler.h:182
bool xl_ms_search_
is true when reading a file containing Cross-Linking MS search results
Definition: MzIdentMLDOMHandler.h:251
void parseSpectrumIdentificationItemElement_(xercesc::DOMElement *spectrumIdentificationItemElement, PeptideIdentification &spectrum_identification, String &spectrumIdentificationList_ref)
DateTime date
Definition: MzIdentMLDOMHandler.h:215
std::map< String, double > xl_mass_map_
mapping Peptide id -> cross-link mass
Definition: MzIdentMLDOMHandler.h:257
std::map< String, String > sd_map_
mapping spectradata id -> spectradata location
Definition: MzIdentMLDOMHandler.h:232
CVTerm parseCvParam_(xercesc::DOMElement *param)
std::map< String, DBSequence > db_sq_map_
mapping DBSequence id -> Sequence
Definition: MzIdentMLDOMHandler.h:247
XMLCh * xml_root_tag_ptr_
Definition: MzIdentMLDOMHandler.h:218
int start
Definition: MzIdentMLDOMHandler.h:164
String sequence
Definition: MzIdentMLDOMHandler.h:173
std::map< String, String > sr_map_
mapping sourcefile id -> sourcefile location
Definition: MzIdentMLDOMHandler.h:231
void parseProteinDetectionListElements_(xercesc::DOMNodeList *proteinDetectionListElements)
long double precursor_tolerance
Definition: MzIdentMLDOMHandler.h:204
void parseInputElements_(xercesc::DOMNodeList *inputElements)
std::pair< String, DataValue > parseUserParam_(xercesc::DOMElement *param)
String location
Definition: MzIdentMLDOMHandler.h:213
const std::vector< ProteinIdentification > * cpro_id_
Internal -w Identification Item for proteins.
Definition: MzIdentMLDOMHandler.h:105
void parseProteinDetectionHypothesisElement_(xercesc::DOMElement *proteinDetectionHypothesisElement, ProteinIdentification &protein_identification)
std::map< String, SignedSize > xl_acceptor_pos_map_
mapping acceptor value -> cross-link modification location
Definition: MzIdentMLDOMHandler.h:256
const ProgressLogger & logger_
Progress logger.
Definition: MzIdentMLDOMHandler.h:92
ControlledVocabulary cv_
Controlled vocabulary (psi-ms from OpenMS/share/OpenMS/CV/psi-ms.obo)
Definition: MzIdentMLDOMHandler.h:95
String search_engine_
Definition: MzIdentMLDOMHandler.h:225
void buildAnalysisCollection_(xercesc::DOMElement *analysisCollectionElements)
std::map< String, PeptideEvidence > pe_ev_map_
mapping PeptideEvidence id -> PeptideEvidence
Definition: MzIdentMLDOMHandler.h:244
void parseSpectrumIdentificationItemSetXLMS(std::set< String >::const_iterator set_it, std::multimap< String, int > xl_val_map, xercesc::DOMElement *element_res, const String &spectrumID)
long double mass_delta
Definition: MzIdentMLDOMHandler.h:190
CVTermList modification_param_cvs
Definition: MzIdentMLDOMHandler.h:192
String version
Definition: MzIdentMLDOMHandler.h:159
static ProteinIdentification::SearchParameters findSearchParameters_(std::pair< CVTermList, std::map< String, DataValue > > as_params)
XMLCh * xml_cvparam_tag_ptr_
Definition: MzIdentMLDOMHandler.h:219
long double fragment_tolerance
Definition: MzIdentMLDOMHandler.h:205
String spectrum_identification_list_ref
Definition: MzIdentMLDOMHandler.h:184
int stop
Definition: MzIdentMLDOMHandler.h:165
std::map< String, size_t > si_pro_map_
mapping SpectrumIdentificationList id -> index to ProteinIdentification in pro_id_
Definition: MzIdentMLDOMHandler.h:237
MzIdentMLDOMHandler & operator=(const MzIdentMLDOMHandler &rhs)
String database_ref
Definition: MzIdentMLDOMHandler.h:174
std::vector< ProteinIdentification > * pro_id_
Internal +w Identification Item for proteins.
Definition: MzIdentMLDOMHandler.h:100
void parseProteinAmbiguityGroupElement_(xercesc::DOMElement *proteinAmbiguityGroupElement, ProteinIdentification &protein_identification)
void parseSpectrumIdentificationElements_(xercesc::DOMNodeList *spectrumIdentificationElements)
void parsePeptideEvidenceElements_(xercesc::DOMNodeList *peptideEvidenceElements)
CVTerm searchtype
Definition: MzIdentMLDOMHandler.h:198
std::map< String, String > pv_db_map_
mapping PeptideEvidence id -> DBSequence id
Definition: MzIdentMLDOMHandler.h:245
void buildAnalysisDataCollection_(xercesc::DOMElement *analysisElements)
String search_engine_version_
Definition: MzIdentMLDOMHandler.h:226
std::map< String, AnalysisSoftware > as_map_
mapping AnalysisSoftware id -> AnalysisSoftware
Definition: MzIdentMLDOMHandler.h:228
std::vector< PeptideIdentification > * pep_id_
Internal +w Identification Item for peptides.
Definition: MzIdentMLDOMHandler.h:102
void buildEnclosedCV_(xercesc::DOMElement *parentElement, const String &encel, const String &acc, const String &name, const String &cvref)
bool idec
Definition: MzIdentMLDOMHandler.h:168
ControlledVocabulary unimod_
Controlled vocabulary for modifications (unimod from OpenMS/share/OpenMS/CV/unimod....
Definition: MzIdentMLDOMHandler.h:97
std::map< String, String > xl_mod_map_
mapping peptide id -> cross-linking reagent name
Definition: MzIdentMLDOMHandler.h:258
std::map< String, String > xl_id_donor_map_
mapping Peptide id -> cross-link donor value
Definition: MzIdentMLDOMHandler.h:252
void parseSpectrumIdentificationProtocolElements_(xercesc::DOMNodeList *spectrumIdentificationProtocolElements)
String enzyme
Definition: MzIdentMLDOMHandler.h:199
AASequence parsePeptideSiblings_(xercesc::DOMElement *peptide)
String name
Definition: MzIdentMLDOMHandler.h:158
std::multimap< String, String > p_pv_map_
mapping Peptide id -> PeptideEvidence id, multiple PeptideEvidences can have equivalent Peptides.
Definition: MzIdentMLDOMHandler.h:246
void buildInputDataCollection_(xercesc::DOMElement *inputElements)
void writeMzIdentMLFile(const std::string &mzid_file)
Provides the functionality to write a mzid with a handler object.
xercesc::XercesDOMParser mzid_parser_
Definition: MzIdentMLDOMHandler.h:222
CVTermList threshold_cvs
Definition: MzIdentMLDOMHandler.h:206
String fixed_mod
Definition: MzIdentMLDOMHandler.h:189
String accession
Definition: MzIdentMLDOMHandler.h:175
CVTermList specificities
Definition: MzIdentMLDOMHandler.h:193
char pre
Definition: MzIdentMLDOMHandler.h:166
String residues
Definition: MzIdentMLDOMHandler.h:191
std::map< String, DataValue > threshold_ups
Definition: MzIdentMLDOMHandler.h:207
std::pair< CVTermList, std::map< String, DataValue > > parseParamGroup_(xercesc::DOMNodeList *paramGroup)
CVTermList cvs
Definition: MzIdentMLDOMHandler.h:176
std::map< String, AASequence > pep_map_
mapping Peptide id -> Sequence
Definition: MzIdentMLDOMHandler.h:243
void parseAnalysisSoftwareList_(xercesc::DOMNodeList *analysisSoftwareElements)
MzIdentMLDOMHandler(const std::vector< ProteinIdentification > &pro_id, const std::vector< PeptideIdentification > &pep_id, const String &version, const ProgressLogger &logger)
Constructor for a write-only handler for internal identification structures.
MzIdentMLDOMHandler(std::vector< ProteinIdentification > &pro_id, std::vector< PeptideIdentification > &pep_id, const String &version, const ProgressLogger &logger)
Constructor for a read-only handler for internal identification structures.
std::list< std::list< String > > hit_pev_
writing help only
Definition: MzIdentMLDOMHandler.h:249
const std::vector< PeptideIdentification > * cpep_id_
Internal -w Identification Item for peptides.
Definition: MzIdentMLDOMHandler.h:107
MzIdentMLDOMHandler(const MzIdentMLDOMHandler &rhs)
std::map< String, SignedSize > xl_donor_pos_map_
mapping donor value -> cross-link modification location
Definition: MzIdentMLDOMHandler.h:255
std::map< String, SpectrumIdentificationProtocol > sp_map_
mapping SpectrumIdentificationProtocol id -> SpectrumIdentificationProtocol
Definition: MzIdentMLDOMHandler.h:240
CVTermList modification_parameter
Definition: MzIdentMLDOMHandler.h:203
void buildCvList_(xercesc::DOMElement *cvElements)
std::map< String, DataValue > parameter_ups
Definition: MzIdentMLDOMHandler.h:201
void buildSequenceCollection_(xercesc::DOMElement *sequenceCollectionElements)
void parseSpectrumIdentificationListElements_(xercesc::DOMNodeList *spectrumIdentificationListElements)
void parseDBSequenceElements_(xercesc::DOMNodeList *dbSequenceElements)
char post
Definition: MzIdentMLDOMHandler.h:167
void buildAnalysisProtocolCollection_(xercesc::DOMElement *protocolElements)
std::map< String, String > xl_id_acceptor_map_
mapping peptide id of acceptor peptide -> cross-link acceptor value
Definition: MzIdentMLDOMHandler.h:254
String spectrum_identification_protocol_ref
Definition: MzIdentMLDOMHandler.h:183
XMLCh * xml_name_attr_ptr_
Definition: MzIdentMLDOMHandler.h:220
virtual ~MzIdentMLDOMHandler()
Destructor.
String spectra_data_ref
Definition: MzIdentMLDOMHandler.h:181
const String schema_version_
Internal version keeping.
Definition: MzIdentMLDOMHandler.h:110
void parsePeptideElements_(xercesc::DOMNodeList *peptideElements)
Struct to hold the used analysis software for that file.
Definition: MzIdentMLDOMHandler.h:157
Struct to hold the information from the DBSequence xml tag.
Definition: MzIdentMLDOMHandler.h:172
Struct to hold the information from the ModificationParam xml tag.
Definition: MzIdentMLDOMHandler.h:188
Struct to hold the PeptideEvidence information.
Definition: MzIdentMLDOMHandler.h:163
Struct to hold the information from the SpectrumIdentification xml tag.
Definition: MzIdentMLDOMHandler.h:180
Struct to hold the information from the SpectrumIdentificationProtocol xml tag.
Definition: MzIdentMLDOMHandler.h:197
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:39
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:27
Representation of a protein identification run.
Definition: ProteinIdentification.h:50
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Representation of a CV term.
Definition: ControlledVocabulary.h:35
Search parameters of the DB search.
Definition: ProteinIdentification.h:247