182 std::vector<PeptideIdentification>& pep_ids,
185 const String& inputfile_raw,
186 const bool remove_duplicate_features,
202 void endElement(
const XMLCh *
const ,
const XMLCh *
const ,
const XMLCh *
const qname)
override;
205 void startElement(
const XMLCh *
const ,
const XMLCh *
const ,
const XMLCh *
const qname,
const xercesc::Attributes & attributes)
override;
208 void characters(
const XMLCh *
const chars,
const XMLSize_t length)
override;
227 std::vector<QualityParameter>
qps_;
A container for consensus elements.
Definition: ConsensusMap.h:88
A container for features.
Definition: FeatureMap.h:105
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
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:80
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:55
Representation of an attachment.
Definition: QcMLFile.h:91
Attachment(const Attachment &rhs)
String toXMLString(UInt indentation_level) const
String qualityRef
reference to qp to which attachment, if empty attached to run/set
Definition: QcMLFile.h:101
String value
Value.
Definition: QcMLFile.h:95
String unitRef
cv reference of the unit
Definition: QcMLFile.h:98
String cvRef
cv reference
Definition: QcMLFile.h:96
String unitAcc
cv accession of the unit
Definition: QcMLFile.h:99
String id
Name.
Definition: QcMLFile.h:94
Attachment & operator=(const Attachment &rhs)
bool operator==(const Attachment &rhs) const
bool operator<(const Attachment &rhs) const
String binary
binary content of the attachment
Definition: QcMLFile.h:100
std::vector< String > colTypes
type of the cols if QP has a table of values
Definition: QcMLFile.h:102
String name
Name.
Definition: QcMLFile.h:93
Attachment()
Default constructor.
String cvAcc
cv accession
Definition: QcMLFile.h:97
std::vector< std::vector< String > > tableRows
cell values if QP has a table, type see colType
Definition: QcMLFile.h:103
String toCSVString(String separator) const
bool operator>(const Attachment &rhs) const
Representation of a quality parameter.
Definition: QcMLFile.h:65
bool operator<(const QualityParameter &rhs) const
String toXMLString(UInt indentation_level) const
QualityParameter(const QualityParameter &rhs)
QualityParameter()
Default constructor.
bool operator>(const QualityParameter &rhs) const
String value
Value.
Definition: QcMLFile.h:69
String unitRef
cv reference of the unit
Definition: QcMLFile.h:72
bool operator==(const QualityParameter &rhs) const
String cvRef
cv reference
Definition: QcMLFile.h:70
String unitAcc
cv accession of the unit
Definition: QcMLFile.h:73
String id
Identifier.
Definition: QcMLFile.h:68
String name
Name.
Definition: QcMLFile.h:67
String cvAcc
cv accession
Definition: QcMLFile.h:71
QualityParameter & operator=(const QualityParameter &rhs)
String flag
cv accession of the unit
Definition: QcMLFile.h:74
File adapter for QcML files used to load and store QcML files.
Definition: QcMLFile.h:61
std::map< String, std::vector< QualityParameter > > runQualityQPs_
Definition: QcMLFile.h:210
void registerSet(const String id, const String name, const std::set< String > &names)
Registers a set in the qcml file with the respective mappings.
void removeAllAttachments(String at)
Removes attachment with cv accession at from all runs/sets.
String exportQPs(const String filename, const StringList qpnames) const
Returns a String of a tab separated qualityparameter by the name qpname in run/set by the name filena...
std::vector< Attachment > ats_
Definition: QcMLFile.h:228
String map2csv(const std::map< String, std::map< String, String > > &cvs_table, const String &separator) const
void merge(const QcMLFile &addendum, String setname="")
merges the given QCFile into this one
void addRunAttachment(String r, Attachment at)
Just adds a attachment to run by the name r.
bool existsRun(const String filename, bool checkname=false) const
Returns true if the given run id is present in this file, if checkname is true it also checks the nam...
~QcMLFile() override
Destructor.
bool existsSet(const String filename, bool checkname=false) const
Returns true if the given set id is present in this file, if checkname is true it also checks the nam...
String name_
Definition: QcMLFile.h:224
std::vector< String > row_
Definition: QcMLFile.h:222
void addSetQualityParameter(String r, QualityParameter qp)
Just adds a qualityparameter to set by the name r.
void existsSetQualityParameter(const String filename, const String qpname, std::vector< String > &ids) const
Returns the ids of the parameter name given if found in given set, empty else.
String tag_
Definition: QcMLFile.h:218
std::map< String, std::set< String > > setQualityQPs_members_
Definition: QcMLFile.h:214
String exportAttachment(const String filename, const String qpname) const
Returns a String of a tab separated rows if found empty string else from run/set by the name filename...
void load(const String &filename)
Load a QCFile.
Attachment at_
Definition: QcMLFile.h:221
QualityParameter qp_
Definition: QcMLFile.h:220
void registerRun(const String id, const String name)
Registers a run in the qcml file with the respective mappings.
void getRunIDs(std::vector< String > &ids) const
Gives the ids of the registered runs in the vector ids.
void store(const String &filename) const
Store the QCFile.
UInt progress_
Definition: QcMLFile.h:219
std::vector< QualityParameter > qps_
Definition: QcMLFile.h:227
std::map< String, std::vector< Attachment > > runQualityAts_
Definition: QcMLFile.h:211
void existsRunQualityParameter(const String filename, const String qpname, std::vector< String > &ids) const
Returns the ids of the parameter name given if found in given run empty else.
String exportQP(const String filename, const String qpname) const
Returns a String value in quotation of a qualityparameter by the name qpname in run/set by the name f...
void startElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname, const xercesc::Attributes &attributes) override
QcMLFile()
Default constructor.
std::map< String, std::vector< Attachment > > setQualityAts_
Definition: QcMLFile.h:213
std::set< String > names_
Definition: QcMLFile.h:226
std::map< String, String > run_Name_ID_map_
Definition: QcMLFile.h:215
void collectSetParameter(const String setname, const String qp, std::vector< String > &ret)
collects the values of given QPs (as CVid) of the given set
String exportIDstats(const String &filename) const
void characters(const XMLCh *const chars, const XMLSize_t length) override
void endElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname) override
std::vector< String > header_
Definition: QcMLFile.h:223
std::map< String, std::vector< QualityParameter > > setQualityQPs_
Definition: QcMLFile.h:212
void removeAttachment(String r, String at)
Removes attachment with cv accession at from run/set r.
std::map< String, String > set_Name_ID_map_
Definition: QcMLFile.h:216
void addRunQualityParameter(String r, QualityParameter qp)
Just adds a qualityparameter to run by the name r.
void addSetAttachment(String r, Attachment at)
Just adds a attachment to set by the name r.
void getRunNames(std::vector< String > &ids) const
Gives the names of the registered runs in the vector ids.
void collectQCData(std::vector< ProteinIdentification > &prot_ids, std::vector< PeptideIdentification > &pep_ids, const FeatureMap &feature_map, const ConsensusMap &consensus_map, const String &inputfile_raw, const bool remove_duplicate_features, const MSExperiment &exp)
Calculation and collection of QC data.
String run_id_
Definition: QcMLFile.h:225
void removeAttachment(String r, std::vector< String > &ids, String at="")
Removes attachments referencing a id given in ids, from run/set r. All attachments if no attachment n...
void removeQualityParameter(String r, std::vector< String > &ids)
Just removes qualityparameter going by one of the ID attributes given in ids.
A more convenient string class.
Definition: String.h:61
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47