|
OpenMS
2.6.0
|
Go to the documentation of this file.
86 String toXMLString(
UInt indentation_level)
const;
115 String toXMLString(
UInt indentation_level)
const;
124 String map2csv(
const std::map<
String, std::map<String, String> >& cvs_table,
const String& separator)
const;
130 void registerSet(
const String id,
const String name,
const std::set<String>& names);
140 void removeAttachment(
String r, std::vector<String>& ids,
String at =
"");
144 void removeAllAttachments(
String at);
146 void removeQualityParameter(
String r, std::vector<String>& ids);
150 void collectSetParameter(
const String setname,
const String qp, std::vector<String>& ret);
158 void getRunIDs (std::vector<String>& ids)
const;
160 void getRunNames (std::vector<String>& ids)
const;
162 bool existsRun(
const String filename,
bool checkname =
false)
const;
164 bool existsSet(
const String filename,
bool checkname =
false)
const;
166 void existsRunQualityParameter(
const String filename,
const String qpname, std::vector<String>& ids)
const;
168 void existsSetQualityParameter(
const String filename,
const String qpname, std::vector<String>& ids)
const;
170 void store(
const String & filename)
const;
172 void load(
const String & filename);
178 void endElement(
const XMLCh *
const ,
const XMLCh *
const ,
const XMLCh *
const qname)
override;
181 void startElement(
const XMLCh *
const ,
const XMLCh *
const ,
const XMLCh *
const qname,
const xercesc::Attributes & attributes)
override;
184 void characters(
const XMLCh *
const chars,
const XMLSize_t length)
override;
203 std::vector<QualityParameter>
qps_;
std::map< String, std::vector< QualityParameter > > setQualityQPs_
Definition: QcMLFile.h:188
void getRunNames(std::vector< String > &ids) const
Gives the names of the registered runs in the vector ids.
Int getCharge() const
returns the charge of the peptide
Base class for TOPP applications.
Definition: TOPPBase.h:144
const String & getModificationName() const
returns the name (ID) of the modification, or an empty string if none is set
std::vector< String > colTypes
type of the cols if QP has a table of values
Definition: QcMLFile.h:101
String tag_
Definition: QcMLFile.h:194
ConstIterator for AASequence.
Definition: AASequence.h:121
String cvRef
cv reference
Definition: QcMLFile.h:95
static double sum(IteratorType begin, IteratorType end)
Calculates the sum of a range of values.
Definition: StatisticFunctions.h:120
String unitRef
cv reference of the unit
Definition: QcMLFile.h:97
String binary
binary content of the attachment
Definition: QcMLFile.h:99
String unitAcc
cv accession of the unit
Definition: QcMLFile.h:98
static double median(IteratorType begin, IteratorType end, bool sorted=false)
Calculates the median of a range of values.
Definition: StatisticFunctions.h:151
void registerSet(const String id, const String name, const std::set< String > &names)
Registers a set in the qcml file with the respective mappings.
const Instrument & getInstrument() const
returns a const reference to the MS instrument description
void getRunIDs(std::vector< String > &ids) const
Gives the ids of the registered runs in the vector ids.
const AASequence & getSequence() const
returns the peptide sequence without trailing or following spaces
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.
Base class for XML handlers.
Definition: XMLHandler.h:151
void sortSpectra(bool sort_mz=true)
Sorts the data points by retention time.
Iterator end()
Definition: AASequence.h:585
const DateTime & getDateTime() const
returns the date the experiment was performed
String qualityRef
reference to qp to which attachment, if empty attached to run/set
Definition: QcMLFile.h:100
const String & getName() const
returns the name of the instrument
String cvRef
cv reference
Definition: QcMLFile.h:70
File adapter for MzML files.
Definition: MzMLFile.h:55
A more convenient string class.
Definition: String.h:59
const String & getOneLetterCode() const
returns the name as one letter code (String of size 1)
std::map< String, String > run_Name_ID_map_
Definition: QcMLFile.h:191
String & removeWhitespaces()
removes whitespaces (space, tab, line feed, carriage return)
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
double norm(T beg, T end)
compute the norm of the vector
Definition: StatsHelpers.h:57
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
double getMonoWeight(Residue::ResidueType type=Residue::Full, Int charge=0) const
std::vector< Attachment > ats_
Definition: QcMLFile.h:204
IntensityType getIntensity() const
Definition: Peak2D.h:166
std::vector< std::vector< String > > tableRows
cell values if QP has a table, type see colType
Definition: QcMLFile.h:102
String toString() const
returns the peptide as string with modifications embedded in brackets
bool operator<(const QTCluster &q1, const QTCluster &q2)
void sortByMZ()
Sort features by m/z position.
const double PROTON_MASS_U
std::set< String > names_
Definition: QcMLFile.h:202
void load(const String &filename)
Load a QCFile.
Size size() const
Definition: MSExperiment.h:127
QualityParameter qp_
Definition: QcMLFile.h:196
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.
Representation of an attachment.
Definition: QcMLFile.h:90
String value
Value.
Definition: QcMLFile.h:69
static String find(const String &filename, StringList directories=StringList())
Looks up the location of the file filename.
const_iterator end() const
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:193
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:187
String name
if it is a score type, lookup has_order
Definition: ControlledVocabulary.h:82
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
void updateRanges() override
Updates minimum and maximum position/intensity.
String unitRef
cv reference of the unit
Definition: QcMLFile.h:72
std::vector< QualityParameter > qps_
Definition: QcMLFile.h:203
String cvAcc
cv accession
Definition: QcMLFile.h:71
Attachment at_
Definition: QcMLFile.h:197
std::vector< String > variable_modifications
Allowed variable modifications.
Definition: ProteinIdentification.h:267
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
String id
Identifier.
Definition: QcMLFile.h:68
Representation of a residue.
Definition: Residue.h:62
void addSetQualityParameter(String r, QualityParameter qp)
Just adds a qualityparameter to set by the name r.
String run_id_
Definition: QcMLFile.h:201
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...
void sortByIntensity(bool reverse=false)
Lexicographically sorts the peaks by their intensity.
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().
void addRunAttachment(String r, Attachment at)
Just adds a attachment to run by the name r.
String value
Value.
Definition: QcMLFile.h:94
String name
Name.
Definition: QcMLFile.h:92
A consensus feature spanning multiple LC-MS/MS experiments.
Definition: ConsensusFeature.h:69
Definition: ChromatogramSettings.h:70
String cvAcc
cv accession
Definition: QcMLFile.h:96
String name_
Definition: QcMLFile.h:200
UInt progress_
Definition: QcMLFile.h:195
std::map< String, std::set< String > > setQualityQPs_members_
Definition: QcMLFile.h:190
std::map< String, std::vector< Attachment > > setQualityAts_
Definition: QcMLFile.h:189
const CVTerm & getTerm(const String &id) const
Returns a term specified by ID.
HandleSetType::const_iterator const_iterator
Definition: ConsensusFeature.h:76
static UInt64 getUniqueId()
Returns a new unique id.
A container for consensus elements.
Definition: ConsensusMap.h:80
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
CoordinateType getRT() const
Returns the RT coordinate (index 0)
Definition: Peak2D.h:208
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 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...
This class handles csv files. Currently only loading is implemented.
Definition: CsvFile.h:49
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
String toString(const T &i)
fallback template for general purpose using Boost::Karma; more specializations below
Definition: StringUtils.h:127
std::map< String, String > set_Name_ID_map_
Definition: QcMLFile.h:192
String unitAcc
cv accession of the unit
Definition: QcMLFile.h:73
A container for features.
Definition: FeatureMap.h:97
File adapter for QcML files used to load and store QcML files.
Definition: QcMLFile.h:57
const_iterator begin() const
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 a Peak2D, RichPeak2D or Feature .
Definition: FeatureHandle.h:57
static double mean(IteratorType begin, IteratorType end)
Calculates the mean of a range of values.
Definition: StatisticFunctions.h:133
double getScore() const
returns the PSM score
Representation of a quality parameter.
Definition: QcMLFile.h:65
void sortByRT()
Sort features by RT position.
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:68
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.
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...
Iterator begin()
Definition: AASequence.h:581
CoordinateType getMZ() const
Returns the m/z coordinate (index 1)
Definition: Peak2D.h:196
void merge(const QcMLFile &addendum, String setname="")
merges the given QCFile into this one
std::map< String, std::vector< QualityParameter > > runQualityQPs_
Definition: QcMLFile.h:186
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 flag
cv accession of the unit
Definition: QcMLFile.h:74
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
Search parameters of the DB search.
Definition: ProteinIdentification.h:258
std::vector< String > header_
Definition: QcMLFile.h:199
String id
Name.
Definition: QcMLFile.h:93
ChargeType getCharge() const
Returns the charge.
bool isModified() const
true if the residue is a modified one
std::vector< String > row_
Definition: QcMLFile.h:198
const CVTerm & getTermByName(const String &name, const String &desc="") const
Returns a term specified by name.
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:62
Used to load and store idXML files.
Definition: IdXMLFile.h:63
String name
Name.
Definition: QcMLFile.h:67
bool exists(const String &id) const
Returns true if the term is in the CV. Returns false otherwise.
void getDate(UInt &month, UInt &day, UInt &year) const
Fills the arguments with the date.
Representation of a peptide hit.
Definition: PeptideHit.h:55