75 void setId(const
std::
string&
id) noexcept;
78 const
std::
string& getId() const noexcept;
81 void setCharge(
int charge) noexcept;
84 int getCharge() const noexcept;
87 void setCalculatedMassToCharge(
double mz) noexcept;
90 double getCalculatedMassToCharge() const noexcept;
93 void setExperimentalMassToCharge(
double mz) noexcept;
96 double getExperimentalMassToCharge() const noexcept;
99 void setName(const
std::
string& name) noexcept;
102 const
std::
string& getName() const noexcept;
105 void setPassThreshold(
bool pass) noexcept;
108 bool getPassThreshold() const noexcept;
111 void setRank(
int rank) noexcept;
114 int getRank() const noexcept;
120 double calculated_mass_to_charge_ = 0.0;
121 double experimental_mass_to_charge_ = 0.0;
123 bool pass_threshold_ = true;
162 void setHits(
const std::vector<IdentificationHit> & hits);
168 const std::vector<IdentificationHit> &
getHits()
const;
174 std::vector<IdentificationHit>
hits_;
295 const std::vector<ProteinIdentification>*
cpro_id_;
305 void handleCVParam_(
const std::string& parent_parent_tag,
const std::string& parent_tag,
const std::string& accession,
const xercesc::Attributes& attributes,
const std::string& cv_ref );
308 void handleUserParam_(
const std::string& parent_parent_tag,
const std::string& parent_tag,
const std::string& name,
const std::string& type,
const std::string& value);
323 void writeModParam_(std::string& s,
const std::vector<std::string>& mod_names,
bool fixed,
UInt indent)
const;
334 std::map<std::string, std::string>& pep_ids,
335 const std::string& cv_ns, std::set<std::string>& sen_set,
336 std::map<std::string, std::string>& sen_ids,
337 std::map<std::string, std::vector<std::string> >& pep_evis,
338 std::map<std::string, double>& pp_identifier_2_thresh,
339 std::string& sidres);
344 const std::string& ppxl_linkid, std::map<std::string, std::string>& pep_ids,
345 const std::string& cv_ns, std::set<std::string>& sen_set,
346 std::map<std::string, std::string>& sen_ids,
347 std::map<std::string, std::vector<std::string> >& pep_evis,
348 std::map<std::string, double>& pp_identifier_2_thresh,
349 double ppxl_crosslink_mass,
350 std::map<std::string, std::string>& ppxl_specref_2_element,
351 std::string& sid,
bool alpha_peptide);
char16_t XMLCh
Definition ClassTest.h:30
Representation of a peptide/protein sequence.
Definition AASequence.h:88
Definition ControlledVocabulary.h:29
DateTime Class.
Definition DateTime.h:31
Representation of a digestion enzyme for proteins (protease)
Definition DigestionEnzymeProtein.h:24
typename VecMember::const_iterator const_iterator
Definition ExposedVector.h:69
Represents a object which can store the information of an analysisXML instance.
Definition MzIdentMLHandler.h:40
virtual ~IdentificationHit()=default
Virtual destructor.
IdentificationHit(const IdentificationHit &)=default
Copy constructor.
IdentificationHit(IdentificationHit &&) noexcept=default
Move constructor.
IdentificationHit()=default
Default constructor.
Definition MzIdentMLHandler.h:186
void addSpectrumIdentification(const SpectrumIdentification &id)
adds a spectrum identification
DateTime creation_date_
Date and time the search was performed.
Definition MzIdentMLHandler.h:231
const DateTime & getCreationDate() const
returns the date and time the file was created
Identification(const Identification &source)=default
Copy constructor.
bool operator==(const Identification &rhs) const
Equality operator.
Identification(Identification &&)=default
Move constructor.
const std::vector< SpectrumIdentification > & getSpectrumIdentifications() const
returns the spectrum identifications stored
virtual ~Identification()
Destructor.
void setSpectrumIdentifications(const std::vector< SpectrumIdentification > &ids)
sets the spectrum identifications
Identification()=default
Default constructor.
Identification & operator=(const Identification &source)=default
Assignment operator.
Identification & operator=(Identification &&) &=default
Move assignment operator.
std::vector< SpectrumIdentification > spectrum_identifications_
Definition MzIdentMLHandler.h:232
void setCreationDate(const DateTime &date)
sets the date and time the file was written
std::string id_
Identifier.
Definition MzIdentMLHandler.h:230
bool operator!=(const Identification &rhs) const
Inequality operator.
XML STREAM handler for MzIdentMLFile.
Definition MzIdentMLHandler.h:246
ControlledVocabulary::CVTerm getChildWithName_(const std::string &parent_accession, const std::string &name) const
Looks up a child CV term of parent_accession with the name name. If no such term is found,...
const Identification * cid_
Definition MzIdentMLHandler.h:294
PeptideIdentificationList * pep_id_
Identification Item for peptides.
Definition MzIdentMLHandler.h:292
void handleCVParam_(const std::string &parent_parent_tag, const std::string &parent_tag, const std::string &accession, const xercesc::Attributes &attributes, const std::string &cv_ref)
Handles CV terms.
std::set< std::string > peptide_result_details_
cached CV child terms for "MS:1001143"
Definition MzIdentMLHandler.h:371
ProteinHit actual_protein_
Definition MzIdentMLHandler.h:368
void writeTo(std::ostream &os) override
Writes the contents to a stream.
std::map< std::string, std::string > sil_2_sdb_
mapping spectrumidentificationlist to the search data bases
Definition MzIdentMLHandler.h:362
MzIdentMLHandler(const MzIdentMLHandler &rhs)
IdentificationHit current_id_hit_
IdentificationHit Item.
Definition MzIdentMLHandler.h:302
const std::vector< ProteinIdentification > * cpro_id_
Definition MzIdentMLHandler.h:295
const ProgressLogger & logger_
Progress logger.
Definition MzIdentMLHandler.h:275
ControlledVocabulary cv_
Controlled vocabulary (psi-ms from OpenMS/share/OpenMS/CV/psi-ms.obo)
Definition MzIdentMLHandler.h:278
std::map< std::string, std::string > sil_2_sip_
mapping spectrumidentificationlist to the search protocol (where the params are at)
Definition MzIdentMLHandler.h:365
std::map< std::string, AASequence > pep_sequences_
Definition MzIdentMLHandler.h:360
SpectrumIdentification current_spectrum_id_
SpectrumIdentification Item.
Definition MzIdentMLHandler.h:299
std::string trimOpenMSfileURI(const std::string &file) const
Convenience method to remove the [] from OpenMS internal file uri representation.
std::vector< ProteinIdentification > * pro_id_
internal Identification Item for proteins
Definition MzIdentMLHandler.h:290
Identification * id_
Identification Item.
Definition MzIdentMLHandler.h:288
void writePeptideHit(const PeptideHit &hit, PeptideIdentificationList::const_iterator &it, std::map< std::string, std::string > &pep_ids, const std::string &cv_ns, std::set< std::string > &sen_set, std::map< std::string, std::string > &sen_ids, std::map< std::string, std::vector< std::string > > &pep_evis, std::map< std::string, double > &pp_identifier_2_thresh, std::string &sidres)
Abstraction of PeptideHit loop for most PeptideHits.
ControlledVocabulary unimod_
Controlled vocabulary for modifications (unimod from OpenMS/share/OpenMS/CV/unimod....
Definition MzIdentMLHandler.h:280
std::string tag_
XML tag parse element.
Definition MzIdentMLHandler.h:285
MzIdentMLHandler & operator=(const MzIdentMLHandler &rhs)
void startElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname, const xercesc::Attributes &attributes) override
AASequence actual_peptide_
Definition MzIdentMLHandler.h:366
std::map< std::string, std::string > ph_2_sdat_
mapping identification runs (mapping PeptideIdentifications and ProteinIdentifications via ....
Definition MzIdentMLHandler.h:364
void writeEnzyme_(std::string &s, const DigestionEnzymeProtein &enzy, UInt miss, UInt indent) const
Helper method that writes a source file.
void writeXLMSPeptideHit(const PeptideHit &hit, PeptideIdentificationList::const_iterator &it, const std::string &ppxl_linkid, std::map< std::string, std::string > &pep_ids, const std::string &cv_ns, std::set< std::string > &sen_set, std::map< std::string, std::string > &sen_ids, std::map< std::string, std::vector< std::string > > &pep_evis, std::map< std::string, double > &pp_identifier_2_thresh, double ppxl_crosslink_mass, std::map< std::string, std::string > &ppxl_specref_2_element, std::string &sid, bool alpha_peptide)
Abstraction of PeptideHit loop for XL-MS data from OpenPepXL.
~MzIdentMLHandler() override
Destructor.
void initCvCaches_()
Load CVs and precompute the cached CV child-term set; shared by both constructors.
void writeModParam_(std::string &s, const std::vector< std::string > &mod_names, bool fixed, UInt indent) const
Helper method that writes the modification search params (fixed or variable)
void handleUserParam_(const std::string &parent_parent_tag, const std::string &parent_tag, const std::string &name, const std::string &type, const std::string &value)
Handles user terms.
void writeMetaInfos_(std::string &s, const MetaInfoInterface &meta, UInt indent) const
Writes user terms.
MzIdentMLHandler(const std::vector< ProteinIdentification > &pro_id, const PeptideIdentificationList &pep_id, const std::string &filename, const std::string &version, const ProgressLogger &logger)
Constructor for a write-only handler for internal identification structures.
std::map< std::string, std::string > pp_identifier_2_sil_
mapping peptide/proteinidentification identifier_ to spectrumidentificationlist
Definition MzIdentMLHandler.h:361
Int current_mod_location_
Definition MzIdentMLHandler.h:367
void characters(const XMLCh *const chars, const XMLSize_t length) override
void endElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname) override
MzIdentMLHandler(std::vector< ProteinIdentification > &pro_id, PeptideIdentificationList &pep_id, const std::string &filename, const std::string &version, const ProgressLogger &logger)
Constructor for a read-only handler for internal identification structures.
std::map< std::string, std::string > sil_2_sdat_
mapping spectrumidentificationlist to the search input
Definition MzIdentMLHandler.h:363
void writeFragmentAnnotations_(std::string &s, const std::vector< PeptideHit::PeakAnnotation > &annotations, UInt indent, bool is_ppxl) const
Helper method that writes the FragmentAnnotations section of a spectrum identification.
const PeptideIdentificationList * cpep_id_
Definition MzIdentMLHandler.h:296
Definition MzIdentMLHandler.h:136
bool operator==(const SpectrumIdentification &rhs) const
Equality operator.
bool operator!=(const SpectrumIdentification &rhs) const
Inequality operator.
virtual ~SpectrumIdentification()
Destructor.
const std::vector< IdentificationHit > & getHits() const
returns the identification hits of this spectrum identification
SpectrumIdentification & operator=(const SpectrumIdentification &)=default
Assignment operator.
SpectrumIdentification & operator=(SpectrumIdentification &&) &=default
Move assignment operator.
std::vector< IdentificationHit > hits_
Single peptide hits.
Definition MzIdentMLHandler.h:174
void setHits(const std::vector< IdentificationHit > &hits)
sets the identification hits of this spectrum identification (corresponds to single peptide hit in th...
SpectrumIdentification()=default
Default constructor.
void addHit(const IdentificationHit &hit)
adds a single identification hit to the hits
SpectrumIdentification(SpectrumIdentification &&)=default
Move constructor.
std::string id_
Identifier.
Definition MzIdentMLHandler.h:173
SpectrumIdentification(const SpectrumIdentification &)=default
Copy constructor.
Base class for XML handlers.
Definition XMLHandler.h:316
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
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
Representation of a protein hit.
Definition ProteinHit.h:35
int Int
Signed integer type.
Definition Types.h:72
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Representation of a CV term.
Definition ControlledVocabulary.h:50