 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
86 String toXMLString(
UInt indentation_level)
const;
116 String toXMLString(
UInt indentation_level)
const;
125 String map2csv(
const std::map<
String, std::map<String, String> >& cvs_table,
const String& separator)
const;
131 void registerSet(
const String id,
const String name,
const std::set<String>& names);
141 void removeAttachment(
String r, std::vector<String>& ids,
String at =
"");
145 void removeAllAttachments(
String at);
147 void removeQualityParameter(
String r, std::vector<String>& ids);
151 void collectSetParameter(
const String setname,
const String qp, std::vector<String>& ret);
159 void getRunIDs (std::vector<String>& ids)
const;
161 void getRunNames (std::vector<String>& ids)
const;
163 bool existsRun(
const String filename,
bool checkname =
false)
const;
165 bool existsSet(
const String filename,
bool checkname =
false)
const;
167 void existsRunQualityParameter(
const String filename,
const String qpname, std::vector<String>& ids)
const;
169 void existsSetQualityParameter(
const String filename,
const String qpname, std::vector<String>& ids)
const;
181 void collectQCData(std::vector<ProteinIdentification>& prot_ids,
182 std::vector<PeptideIdentification>& pep_ids,
185 const String& inputfile_raw,
186 const bool remove_duplicate_features,
193 void store(
const String& filename)
const;
196 void load(
const String & filename);
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_;
String id
Identifier.
Definition: QcMLFile.h:68
std::map< String, std::vector< QualityParameter > > setQualityQPs_
Definition: QcMLFile.h:212
void getRunNames(std::vector< String > &ids) const
Gives the names of the registered runs in the vector ids.
void store(const String &input_file, const String &output_file, const MSExperiment &exp, const String &contact_name, const String &contact_address, const String &description, const String &label, const FeatureMap &feature_map, std::vector< ProteinIdentification > &prot_ids, std::vector< PeptideIdentification > &pep_ids) const
Stores QC data in mzQC file with JSON format.
Base class for TOPP applications.
Definition: TOPPBase.h:147
Representation of a quality parameter.
Definition: QcMLFile.h:64
String tag_
Definition: QcMLFile.h:218
String flag
cv accession of the unit
Definition: QcMLFile.h:74
String cvAcc
cv accession
Definition: QcMLFile.h:71
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 getRunIDs(std::vector< String > &ids) const
Gives the ids of the registered runs in the vector ids.
Representation of a controlled vocabulary.
Definition: ControlledVocabulary.h:54
void addRunQualityParameter(String r, QualityParameter qp)
Just adds a qualityparameter to run by the name r.
String name
Name.
Definition: QcMLFile.h:93
Base class for XML handlers.
Definition: XMLHandler.h:323
String binary
binary content of the attachment
Definition: QcMLFile.h:100
void sortSpectra(bool sort_mz=true)
Sorts the data points by retention time.
String qualityRef
reference to qp to which attachment, if empty attached to run/set
Definition: QcMLFile.h:101
File adapter for MzML files.
Definition: MzMLFile.h:57
A more convenient string class.
Definition: String.h:58
String unitAcc
cv accession of the unit
Definition: QcMLFile.h:73
std::map< String, String > run_Name_ID_map_
Definition: QcMLFile.h:215
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:70
std::vector< Attachment > ats_
Definition: QcMLFile.h:228
String unitAcc
cv accession of the unit
Definition: QcMLFile.h:99
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
std::set< String > names_
Definition: QcMLFile.h:226
void load(const String &filename)
Load a QCFile.
QualityParameter qp_
Definition: QcMLFile.h:220
qcML (will undergo standardisation maybe) (.qcml)
Definition: FileTypes.h:77
void store(const String &filename) const
Store the QCFile.
void load(const String &filename, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids)
Loads the identifications of an idXML file without identifier.
static String find(const String &filename, StringList directories=StringList())
Looks up the location of the file filename.
static String concatenate(const std::vector< T > &container, const String &glue="")
Concatenates all elements of the container and puts the glue string between elements.
Definition: ListUtils.h:209
void loadFromOBO(const String &name, const String &filename)
Loads the CV from an OBO file.
String id
Identifier.
Definition: ControlledVocabulary.h:83
std::map< String, std::vector< Attachment > > runQualityAts_
Definition: QcMLFile.h:211
String name
if it is a score type, lookup has_order
Definition: ControlledVocabulary.h:82
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
void updateRanges() override
std::vector< QualityParameter > qps_
Definition: QcMLFile.h:227
Attachment at_
Definition: QcMLFile.h:221
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:52
String value
Value.
Definition: QcMLFile.h:69
void addSetQualityParameter(String r, QualityParameter qp)
Just adds a qualityparameter to set by the name r.
String run_id_
Definition: QcMLFile.h:225
void load(const String &filename, PeakMap &map)
Loads a map from a MzML file. Spectra and chromatograms are sorted by default (this can be disabled u...
String unitRef
cv reference of the unit
Definition: QcMLFile.h:98
String exportIDstats(const String &filename) const
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...
void load(const String &filename, FeatureMap &feature_map)
loads the file with name filename into map and calls updateRanges().
Type
Actual file types enum.
Definition: FileTypes.h:56
void addRunAttachment(String r, Attachment at)
Just adds a attachment to run by the name r.
mzQC (HUPO PSI format) (.mzQC)
Definition: FileTypes.h:78
std::vector< String > colTypes
type of the cols if QP has a table of values
Definition: QcMLFile.h:102
static FileTypes::Type getConsistentOutputfileType(const String &output_filename, const String &requested_type)
Useful function for TOPP tools which have an 'out_type' parameter and want to know what output format...
String name_
Definition: QcMLFile.h:224
UInt progress_
Definition: QcMLFile.h:219
std::map< String, std::set< String > > setQualityQPs_members_
Definition: QcMLFile.h:214
std::map< String, std::vector< Attachment > > setQualityAts_
Definition: QcMLFile.h:213
const CVTerm & getTerm(const String &id) const
Returns a term specified by ID.
static UInt64 getUniqueId()
Returns a new unique id.
A container for consensus elements.
Definition: ConsensusMap.h:82
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
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.
void load(const String &filename, ConsensusMap &map)
Loads a consensus map from file and calls updateRanges.
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
String value
Value.
Definition: QcMLFile.h:95
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...
String name
Name.
Definition: QcMLFile.h:67
This class handles csv files. Currently only loading is implemented.
Definition: CsvFile.h:49
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:71
std::map< String, String > set_Name_ID_map_
Definition: QcMLFile.h:216
String cvRef
cv reference
Definition: QcMLFile.h:96
File adapter for mzQC files used to load and store mzQC files.
Definition: MzQCFile.h:51
A container for features.
Definition: FeatureMap.h:98
File adapter for QcML files used to load and store QcML files.
Definition: QcMLFile.h:57
Representation of a CV term.
Definition: ControlledVocabulary.h:60
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
void addSetAttachment(String r, Attachment at)
Just adds a attachment to set by the name r.
Representation of an attachment.
Definition: QcMLFile.h:90
void sortByRT()
Sort features by RT position.
String unitRef
cv reference of the unit
Definition: QcMLFile.h:72
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:62
String cvRef
cv reference
Definition: QcMLFile.h:70
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:48
void registerRun(const String id, const String name)
Registers a run in the qcml file with the respective mappings.
void updateRanges() override
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...
String id
Name.
Definition: QcMLFile.h:94
void merge(const QcMLFile &addendum, String setname="")
merges the given QCFile into this one
std::map< String, std::vector< QualityParameter > > runQualityQPs_
Definition: QcMLFile.h:210
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.
std::vector< String > header_
Definition: QcMLFile.h:223
std::vector< String > row_
Definition: QcMLFile.h:222
const CVTerm & getTermByName(const String &name, const String &desc="") const
Returns a term specified by name.
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.
std::vector< std::vector< String > > tableRows
cell values if QP has a table, type see colType
Definition: QcMLFile.h:103
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...
This class provides Input functionality for ConsensusMaps and Output functionality for alignments and...
Definition: ConsensusXMLFile.h:58
Used to load and store idXML files.
Definition: IdXMLFile.h:68
bool exists(const String &id) const
Returns true if the term is in the CV. Returns false otherwise.
String cvAcc
cv accession
Definition: QcMLFile.h:97