62 void load(
const std::string& filename,
63 std::vector<ProteinIdentification>& proteins,
65 const std::string& experiment_name,
74 void load(
const std::string& filename,
75 std::vector<ProteinIdentification>& proteins,
77 const std::string& experiment_name =
"");
84 void store(
const std::string& filename, std::vector<ProteinIdentification>& protein_ids,
86 const std::string& mz_name =
"",
bool peptideprophet_analyzed =
false,
double rt_tolerance = 0.01);
97 keep_native_name_ = keep;
141 const std::string& aminoacid,
143 const std::string& description,
155 const std::string& aminoacid,
const std::string& massdiff,
const std::string& mass,
156 std::string variable,
const std::string& description, std::string terminus,
const std::string& protein_terminus,
157 const std::vector<const ResidueModification*>& preferred_fixed_mods,
158 const std::vector<const ResidueModification*>& preferred_var_mods,
208 bool use_precursor_data_{};
226 bool search_summary_{};
229 bool wrong_experiment_{};
232 bool seen_experiment_{};
235 bool checked_base_name_{};
241 bool parse_unknown_scores_{};
290 double hydrogen_mass_{};
317 Size modification_position,
318 std::vector<AminoAcidModification>
const& header_mods);
char16_t XMLCh
Definition ClassTest.h:30
DateTime Class.
Definition DateTime.h:31
Representation of an element.
Definition Element.h:34
Base class for loading and storing XML files via Xerces, with optional schema validation and transpar...
Definition XMLFile.h:38
Base class for XML handlers.
Definition XMLHandler.h:316
Used to load and store PepXML files.
Definition PepXMLFile.h:41
std::string enzyme_
Enzyme name associated with the current identification run.
Definition PepXMLFile.h:256
static const double xtandem_artificial_mod_tol_
Definition PepXMLFile.h:312
bool search_score_summary_
Are we currently in an "search_score_summary" element (should be skipped)?
Definition PepXMLFile.h:223
std::string exp_name_
Name of the associated experiment (filename of the data file, extension will be removed)
Definition PepXMLFile.h:196
std::string swath_assay_
Definition PepXMLFile.h:204
std::string decoy_prefix_
In case it has decoys, what is the prefix?
Definition PepXMLFile.h:244
void setParseUnknownScores(bool parse_unknown_scores)
sets if during load, unknown scores should be parsed
static const double mod_tol_
Definition PepXMLFile.h:311
PeptideHit peptide_hit_
PeptideHit instance currently being processed.
Definition PepXMLFile.h:266
std::vector< AminoAcidModification > variable_modifications_
Variable aminoacid modifications as parsed from the header.
Definition PepXMLFile.h:299
void store(const std::string &filename, std::vector< ProteinIdentification > &protein_ids, PeptideIdentificationList &peptide_ids, const std::string &mz_file="", const std::string &mz_name="", bool peptideprophet_analyzed=false, double rt_tolerance=0.01)
Stores idXML as PepXML file.
void keepNativeSpectrumName(bool keep)
Whether we should keep the native spectrum name of the pepXML.
Definition PepXMLFile.h:95
PeptideIdentification current_peptide_
PeptideIdentification instance currently being processed.
Definition PepXMLFile.h:260
std::vector< std::pair< const ResidueModification *, Size > > current_modifications_
The modifications of the current peptide hit (position is 1-based)
Definition PepXMLFile.h:293
std::string search_engine_
Set name of search engine.
Definition PepXMLFile.h:199
std::string status_
Definition PepXMLFile.h:205
void load(const std::string &filename, std::vector< ProteinIdentification > &proteins, PeptideIdentificationList &peptides, const std::string &experiment_name="")
load function with empty defaults for some parameters (see above)
std::vector< std::vector< ProteinIdentification >::iterator > current_proteins_
References to currently active ProteinIdentifications.
Definition PepXMLFile.h:250
std::vector< const ResidueModification * > preferred_fixed_modifications_
Definition PepXMLFile.h:303
PeptideIdentificationList * peptides_
Pointer to the list of identified peptides.
Definition PepXMLFile.h:190
std::string current_sequence_
Sequence of the current peptide hit.
Definition PepXMLFile.h:269
~PepXMLFile() override
Destructor.
PeptideHit::PepXMLAnalysisResult current_analysis_result_
Analysis result instance currently being processed.
Definition PepXMLFile.h:263
std::vector< const ResidueModification * > preferred_variable_modifications_
Definition PepXMLFile.h:307
bool analysis_summary_
Are we currently in an "analysis_summary" element (should be skipped)?
Definition PepXMLFile.h:217
const SpectrumMetaDataLookup * lookup_
Pointer to wrapper for looking up spectrum meta data.
Definition PepXMLFile.h:193
std::string current_base_name_
current base name
Definition PepXMLFile.h:247
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:220
std::string prot_id_
Identifier linking PeptideIdentifications and ProteinIdentifications.
Definition PepXMLFile.h:284
std::vector< ProteinIdentification > * proteins_
Pointer to the list of identified proteins.
Definition PepXMLFile.h:187
DateTime date_
Date the pepXML file was generated.
Definition PepXMLFile.h:287
std::vector< AminoAcidModification > fixed_modifications_
Fixed aminoacid modifications as parsed from the header.
Definition PepXMLFile.h:296
bool lookupAddFromHeader_(double modification_mass, Size modification_position, std::vector< AminoAcidModification > const &header_mods)
Element hydrogen_
Hydrogen data (for mass types)
Definition PepXMLFile.h:214
ProteinIdentification::SearchParameters params_
Search parameters of the current identification run.
Definition PepXMLFile.h:253
void readRTMZCharge_(const xercesc::Attributes &attributes)
Read RT, m/z, charge information from attributes of "spectrum_query".
void load(const std::string &filename, std::vector< ProteinIdentification > &proteins, PeptideIdentificationList &peptides, const std::string &experiment_name, const SpectrumMetaDataLookup &lookup)
Loads peptide sequences with modifications out of a PepXML file.
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:211
std::string experiment_label_
Definition PepXMLFile.h:203
std::string enzyme_cuttingsite_
Definition PepXMLFile.h:257
std::string native_spectrum_name_
Several optional attributes of spectrum_query.
Definition PepXMLFile.h:202
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:201
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
Represents the set of candidates (SpectrumMatches) identified for a single precursor spectrum.
Definition PeptideIdentification.h:66
Representation of a modification on an amino acid residue.
Definition ResidueModification.h:55
TermSpecificity
Position where the modification is allowed to occur.
Definition ResidueModification.h:74
int Int
Signed integer type.
Definition Types.h:72
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition PepXMLFile.h:126
double massdiff_
Definition PepXMLFile.h:130
const std::string & getAminoAcid() const
double mass_
Definition PepXMLFile.h:131
std::string aminoacid_
Definition PepXMLFile.h:129
const std::string & getTerminus() const
bool is_protein_terminus_
Definition PepXMLFile.h:135
AminoAcidModification(const std::string &aminoacid, const std::string &massdiff, const std::string &mass, std::string variable, const std::string &description, std::string terminus, const std::string &protein_terminus, const std::vector< const ResidueModification * > &preferred_fixed_mods, const std::vector< const ResidueModification * > &preferred_var_mods, double tolerance)
const ResidueModification * getRegisteredMod() const
double getMassDiff() const
const std::string & getDescription() const
virtual ~AminoAcidModification()=default
const ResidueModification * registered_mod_
Definition PepXMLFile.h:138
AminoAcidModification & operator=(const AminoAcidModification &rhs)=default
std::string terminus_
Definition PepXMLFile.h:134
const ResidueModification * lookupModInPreferredMods_(const std::vector< const ResidueModification * > &preferred_fixed_mods, const std::string &aminoacid, double massdiff, const std::string &description, const ResidueModification::TermSpecificity term_spec, double tolerance)
AminoAcidModification(const AminoAcidModification &rhs)=default
std::vector< std::string > errors_
Definition PepXMLFile.h:137
ResidueModification::TermSpecificity term_spec_
Definition PepXMLFile.h:136
AminoAcidModification()=delete
std::string toUnimodLikeString() const
bool is_variable_
Definition PepXMLFile.h:132
const std::vector< std::string > & getErrors() const
std::string description_
Definition PepXMLFile.h:133
Search parameters of the DB search.
Definition ProteinIdentification.h:248