88 std::vector<ProteinIdentification>& proteins,
89 std::vector<PeptideIdentification>& peptides,
90 const String& experiment_name,
100 std::vector<ProteinIdentification>& proteins,
101 std::vector<PeptideIdentification>& peptides,
102 const String& experiment_name =
"");
109 void store(
const String& filename, std::vector<ProteinIdentification>& protein_ids,
110 std::vector<PeptideIdentification>& peptide_ids,
const String& mz_file =
"",
111 const String& mz_name =
"",
bool peptideprophet_analyzed =
false,
double rt_tolerance = 0.01);
122 keep_native_name_ = keep;
134 void endElement(
const XMLCh*
const ,
const XMLCh*
const ,
const XMLCh*
const qname)
override;
137 void startElement(
const XMLCh*
const ,
const XMLCh*
const ,
const XMLCh*
const qname,
const xercesc::Attributes& attributes)
override;
165 const String& description,
179 const std::vector<const ResidueModification*>& preferred_fixed_mods,
180 const std::vector<const ResidueModification*>& preferred_var_mods,
230 bool use_precursor_data_{};
248 bool search_summary_{};
251 bool wrong_experiment_{};
254 bool seen_experiment_{};
257 bool checked_base_name_{};
306 double hydrogen_mass_{};
333 Size modification_position,
334 std::vector<AminoAcidModification>
const& header_mods);
DateTime Class.
Definition: DateTime.h:55
Representation of an element.
Definition: Element.h:56
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:49
Base class for XML handlers.
Definition: XMLHandler.h:327
Used to load and store PepXML files.
Definition: PepXMLFile.h:66
static const double xtandem_artificial_mod_tol_
Definition: PepXMLFile.h:328
bool search_score_summary_
Are we currently in an "search_score_summary" element (should be skipped)?
Definition: PepXMLFile.h:245
String exp_name_
Name of the associated experiment (filename of the data file, extension will be removed)
Definition: PepXMLFile.h:218
String current_base_name_
current base name
Definition: PepXMLFile.h:266
void store(const String &filename, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids, const String &mz_file="", const String &mz_name="", bool peptideprophet_analyzed=false, double rt_tolerance=0.01)
Stores idXML as PepXML file.
static const double mod_tol_
Definition: PepXMLFile.h:327
void load(const String &filename, std::vector< ProteinIdentification > &proteins, std::vector< PeptideIdentification > &peptides, const String &experiment_name="")
load function with empty defaults for some parameters (see above)
String current_sequence_
Sequence of the current peptide hit.
Definition: PepXMLFile.h:288
PeptideHit peptide_hit_
PeptideHit instance currently being processed.
Definition: PepXMLFile.h:285
std::vector< AminoAcidModification > variable_modifications_
Variable aminoacid modifications as parsed from the header.
Definition: PepXMLFile.h:315
void keepNativeSpectrumName(bool keep)
Whether we should keep the native spectrum name of the pepXML.
Definition: PepXMLFile.h:120
PeptideIdentification current_peptide_
PeptideIdentification instance currently being processed.
Definition: PepXMLFile.h:279
String search_engine_
Set name of search engine.
Definition: PepXMLFile.h:221
std::vector< std::pair< const ResidueModification *, Size > > current_modifications_
The modifications of the current peptide hit (position is 1-based)
Definition: PepXMLFile.h:309
String enzyme_
Enzyme name associated with the current identification run.
Definition: PepXMLFile.h:275
String enzyme_cuttingsite_
Definition: PepXMLFile.h:276
std::vector< std::vector< ProteinIdentification >::iterator > current_proteins_
References to currently active ProteinIdentifications.
Definition: PepXMLFile.h:269
std::vector< PeptideIdentification > * peptides_
Pointer to the list of identified peptides.
Definition: PepXMLFile.h:212
std::vector< const ResidueModification * > preferred_fixed_modifications_
Definition: PepXMLFile.h:319
~PepXMLFile() override
Destructor.
PeptideHit::PepXMLAnalysisResult current_analysis_result_
Analysis result instance currently being processed.
Definition: PepXMLFile.h:282
std::vector< const ResidueModification * > preferred_variable_modifications_
Definition: PepXMLFile.h:323
bool analysis_summary_
Are we currently in an "analysis_summary" element (should be skipped)?
Definition: PepXMLFile.h:239
const SpectrumMetaDataLookup * lookup_
Pointer to wrapper for looking up spectrum meta data.
Definition: PepXMLFile.h:215
String native_spectrum_name_
Several optional attributes of spectrum_query.
Definition: PepXMLFile.h:224
String prot_id_
Identifier linking PeptideIdentifications and ProteinIdentifications.
Definition: PepXMLFile.h:300
void startElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname, const xercesc::Attributes &attributes) override
Docu in base class.
bool keep_native_name_
Whether we should keep the native spectrum name of the pepXML.
Definition: PepXMLFile.h:242
std::vector< ProteinIdentification > * proteins_
Pointer to the list of identified proteins.
Definition: PepXMLFile.h:209
DateTime date_
Date the pepXML file was generated.
Definition: PepXMLFile.h:303
std::vector< AminoAcidModification > fixed_modifications_
Fixed aminoacid modifications as parsed from the header.
Definition: PepXMLFile.h:312
String decoy_prefix_
In case it has decoys, what is the prefix?
Definition: PepXMLFile.h:263
String swath_assay_
Definition: PepXMLFile.h:226
bool lookupAddFromHeader_(double modification_mass, Size modification_position, std::vector< AminoAcidModification > const &header_mods)
Element hydrogen_
Hydrogen data (for mass types)
Definition: PepXMLFile.h:236
String experiment_label_
Definition: PepXMLFile.h:225
void load(const String &filename, std::vector< ProteinIdentification > &proteins, std::vector< PeptideIdentification > &peptides, const String &experiment_name, const SpectrumMetaDataLookup &lookup)
Loads peptide sequences with modifications out of a PepXML file.
ProteinIdentification::SearchParameters params_
Search parameters of the current identification run.
Definition: PepXMLFile.h:272
String status_
Definition: PepXMLFile.h:227
void readRTMZCharge_(const xercesc::Attributes &attributes)
Read RT, m/z, charge information from attributes of "spectrum_query".
void setPreferredFixedModifications(const std::vector< const ResidueModification * > &mods)
sets the preferred fixed modifications
void endElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname) override
Docu in base class.
std::map< Size, Size > scan_map_
Mapping between scan number in the pepXML file and index in the corresponding MSExperiment.
Definition: PepXMLFile.h:233
void setPreferredVariableModifications(const std::vector< const ResidueModification * > &mods)
sets the preferred variable modifications
void makeScanMap_()
Fill scan_map_.
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:176
Representation of a peptide hit.
Definition: PeptideHit.h:57
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:65
Representation of a modification.
Definition: ResidueModification.h:77
TermSpecificity
Position where the modification is allowed to occur.
Definition: ResidueModification.h:96
A more convenient string class.
Definition: String.h:61
int Int
Signed integer type.
Definition: Types.h:102
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: PepXMLFile.h:148
std::vector< String > errors_
Definition: PepXMLFile.h:159
double massdiff_
Definition: PepXMLFile.h:152
String toUnimodLikeString() const
double mass_
Definition: PepXMLFile.h:153
String aminoacid_
Definition: PepXMLFile.h:151
bool is_protein_terminus_
Definition: PepXMLFile.h:157
double getMassDiff() const
virtual ~AminoAcidModification()=default
String description_
Definition: PepXMLFile.h:155
const ResidueModification * registered_mod_
Definition: PepXMLFile.h:160
AminoAcidModification(const String &aminoacid, const String &massdiff, const String &mass, String variable, const String &description, String terminus, const String &protein_terminus, const std::vector< const ResidueModification * > &preferred_fixed_mods, const std::vector< const ResidueModification * > &preferred_var_mods, double tolerance)
AminoAcidModification(const AminoAcidModification &rhs)=default
ResidueModification::TermSpecificity term_spec_
Definition: PepXMLFile.h:158
const ResidueModification * lookupModInPreferredMods_(const std::vector< const ResidueModification * > &preferred_fixed_mods, const String &aminoacid, double massdiff, const String &description, const ResidueModification::TermSpecificity term_spec, double tolerance)
const std::vector< String > & getErrors() const
const String & getDescription() const
AminoAcidModification()=delete
const ResidueModification * getRegisteredMod() const
AminoAcidModification & operator=(const AminoAcidModification &rhs)=default
bool is_variable_
Definition: PepXMLFile.h:154
String terminus_
Definition: PepXMLFile.h:156
const String & getTerminus() const
const String & getAminoAcid() const
Search parameters of the DB search.
Definition: ProteinIdentification.h:260