58 static std::map<String, UInt>
months;
62 std::vector< PeptideIdentification > & pep_ids,
63 std::vector< ProteinIdentification > & prot_ids
68 const std::vector<PeptideIdentification>& pep_id,
76 void endElement(
const XMLCh *
const uri,
const XMLCh *
const local_name,
const XMLCh *
const qname)
override;
79 void startElement(
const XMLCh *
const uri,
const XMLCh *
const local_name,
const XMLCh *
const qname,
const xercesc::Attributes & attributes)
override;
100 virtual void writeTo(std::ostream& os)
override;
141 const std::vector<ProteinIdentification>*
cpro_id_;
142 const std::vector<PeptideIdentification>*
cpep_id_;
202 void getLinkPosition_(
const xercesc::Attributes & attributes, std::pair<SignedSize, SignedSize> & pair);
DateTime Class.
Definition: DateTime.h:55
Base class for XML handlers.
Definition: XMLHandler.h:327
XMLHandler for the result files of XQuest.
Definition: XQuestResultXMLHandler.h:51
double getMinScore() const
Returns the minimum score encountered in the file.
XQuestResultXMLHandler(const std::vector< ProteinIdentification > &pro_id, const std::vector< PeptideIdentification > &pep_id, const String &filename, const String &version)
Constructor for a write-only handler for internal identification structures.
void endElement(const XMLCh *const uri, const XMLCh *const local_name, const XMLCh *const qname) override
double max_score_
Definition: XQuestResultXMLHandler.h:148
static std::map< Size, String > enzymes
Maps enzyme_num in xQuest result file to the enzyme name used by OpenMS.
Definition: XQuestResultXMLHandler.h:55
UInt getNumberOfHits() const
Returns the total number of hits in the file.
const std::vector< ProteinIdentification > * cpro_id_
Definition: XQuestResultXMLHandler.h:141
ProteaseDB * enzymes_db_
The enzyme database for enzyme lookup.
Definition: XQuestResultXMLHandler.h:157
void addMetaValues_(MetaInfoInterface &meta_info_interface)
Assigns all meta values stored in the peptide_id_attributes member to an meta info interface.
UInt n_hits_
Total no. of hits found in the result XML file.
Definition: XQuestResultXMLHandler.h:144
std::set< String > accessions_
Set of all protein accessions that are within the ProteinHits.
Definition: XQuestResultXMLHandler.h:154
std::map< String, DataValue > peptide_id_meta_values_
Stores the attributes of a record (peptide identification)
Definition: XQuestResultXMLHandler.h:180
std::set< UInt > charges_
Keeps track of the charges of the hits.
Definition: XQuestResultXMLHandler.h:160
void getLinkPosition_(const xercesc::Attributes &attributes, std::pair< SignedSize, SignedSize > &pair)
Gets the link location of a xQuest xlinkPositionString.
virtual void writeTo(std::ostream &os) override
Writes the contents to a stream.
void setPeptideEvidence_(const String &prot_string, PeptideHit &pep_hit)
Sets the peptide evidence for Alpha and Beta.
double min_score_
Definition: XQuestResultXMLHandler.h:147
static StringList splitByMiddle(const String &input, const char separator)
counts occurrences of the @separator and splits the @input string into two at the middle
std::vector< ProteinIdentification > * prot_ids_
Definition: XQuestResultXMLHandler.h:138
String cross_linker_name_
Definition: XQuestResultXMLHandler.h:134
double mz_heavy_
Definition: XQuestResultXMLHandler.h:170
double rt_heavy_
Definition: XQuestResultXMLHandler.h:166
~XQuestResultXMLHandler() override
String spectrum_input_file_
Definition: XQuestResultXMLHandler.h:174
StringList ms_run_path_
Definition: XQuestResultXMLHandler.h:173
static StringList splitByNth(const String &input, const char separator, const Size n)
splits the @input string at the nth occurrence of the @separator
const std::vector< PeptideIdentification > * cpep_id_
Definition: XQuestResultXMLHandler.h:142
double mz_light_
Definition: XQuestResultXMLHandler.h:169
std::vector< PeptideIdentification > current_spectrum_search_
The current spectrum search.
Definition: XQuestResultXMLHandler.h:177
UInt min_precursor_charge_
Definition: XQuestResultXMLHandler.h:161
UInt max_precursor_charge_
Definition: XQuestResultXMLHandler.h:162
void extractDateTime_(const String &xquest_datetime_string, DateTime &date_time)
Extracts the DateTime from datetime string from xQuest.
int spectrum_index_light_
Definition: XQuestResultXMLHandler.h:132
XQuestResultXMLHandler(const String &filename, std::vector< PeptideIdentification > &pep_ids, std::vector< ProteinIdentification > &prot_ids)
Constructor for a read-only handler for internal identification structures.
static std::map< String, UInt > months
Maps String encoding month to the numeric value.
Definition: XQuestResultXMLHandler.h:58
bool is_openpepxl_
Whether or not current xquest result tag comes from OpenPepXL (xQuest otherwise)
Definition: XQuestResultXMLHandler.h:151
void startElement(const XMLCh *const uri, const XMLCh *const local_name, const XMLCh *const qname, const xercesc::Attributes &attributes) override
std::vector< PeptideIdentification > * pep_ids_
Definition: XQuestResultXMLHandler.h:137
double rt_light_
Definition: XQuestResultXMLHandler.h:165
int spectrum_index_heavy_
Definition: XQuestResultXMLHandler.h:133
double getMaxScore() const
Returns the maximum score encountered in the file.
Representation of a peptide hit.
Definition: PeptideHit.h:57
Database for enzymes that digest proteins (proteases)
Definition: ProteaseDB.h:53
A more convenient string class.
Definition: String.h:61
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
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47