46 static const std::string names_of_requires[];
56 static const std::string names_of_toleranceUnit[];
116 template<
typename MAP>
119 if (!fmap.getUnassignedPeptideIdentifications().empty())
122 return std::any_of(fmap.cbegin(), fmap.cend(), [](
const auto& f) { return !f.getPeptideIdentifications().empty(); });
A container for consensus elements.
Definition: ConsensusMap.h:66
Stores and handles combinations of enum values, e.g. a set of flags as bits flipped in an UInt64.
Definition: FlagSet.h:28
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:46
Map to find a spectrum via its NativeID.
Definition: QCBase.h:63
std::map< String, UInt64 > nativeid_to_index_
Definition: QCBase.h:91
bool empty() const
check if empty
SpectraMap(const MSExperiment &exp)
CTor which allows immediate indexing of an MSExperiment.
UInt64 at(const String &identifier) const
void calculateMap(const MSExperiment &exp)
calculate a new map, delete the old one
SpectraMap()=default
Constructor.
void clear()
clear the map
Size size() const
get size of map
~SpectraMap()=default
Destructor.
This class serves as an abstract base class for all QC classes.
Definition: QCBase.h:29
static bool hasPepID(const MAP &fmap)
does the container have a PeptideIdentification in its members or as unassignedPepID ?
Definition: QCBase.h:117
virtual Status requirements() const =0
Returns the input data requirements of the compute(...) function.
static bool isLabeledExperiment(const ConsensusMap &cm)
check if the IsobaricAnalyzer TOPP tool was used to create this ConsensusMap
bool isRunnable(const Status &s) const
Requires
Enum to encode a file type as a bit.
Definition: QCBase.h:35
virtual const String & getName() const =0
Returns the name of the metric.
ToleranceUnit
Definition: QCBase.h:49
A more convenient string class.
Definition: String.h:34
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:51
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22