OpenMS  2.6.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
QCBase Class Referenceabstract

This class serves as an abstract base class for all QC classes. More...

#include <OpenMS/QC/QCBase.h>

Inheritance diagram for QCBase:
[legend]
Collaboration diagram for QCBase:
[legend]

Classes

class  SpectraMap
 Map to find a spectrum via its NativeID. More...
 
class  Status
 Storing a status of available/needed inputs (i.e. a set of Requires) as UInt64. More...
 

Public Types

enum  Requires : UInt64 {
  NOTHING, RAWMZML, POSTFDRFEAT, PREFDRFEAT,
  CONTAMINANTS, TRAFOALIGN, SIZE_OF_REQUIRES
}
 Enum to encode a file type as a bit. More...
 

Public Member Functions

virtual const StringgetName () const =0
 Returns the name of the metric. More...
 
virtual Status requires () const =0
 Returns the input data requirements of the compute(...) function. More...
 
bool isRunnable (const Status &s) const
 

Static Public Member Functions

static bool isLabeledExperiment (const ConsensusMap &cm)
 check if the IsobaricAnalyzer TOPP tool was used to create this ConsensusMap More...
 
template<typename MAP >
static bool hasPepID (const MAP &fmap)
 does the container have a PeptideIdentification in its members or as unassignedPepID ? More...
 

Static Public Attributes

static const std::string names_of_requires []
 strings corresponding to enum Requires More...
 

Detailed Description

This class serves as an abstract base class for all QC classes.

It contains the important feature of encoding the input requirements for a certain QC.

Member Enumeration Documentation

◆ Requires

enum Requires : UInt64
strong

Enum to encode a file type as a bit.

Enumerator
NOTHING 
RAWMZML 
POSTFDRFEAT 
PREFDRFEAT 
CONTAMINANTS 
TRAFOALIGN 
SIZE_OF_REQUIRES 

Member Function Documentation

◆ getName()

virtual const String& getName ( ) const
pure virtual

◆ hasPepID()

static bool hasPepID ( const MAP &  fmap)
inlinestatic

does the container have a PeptideIdentification in its members or as unassignedPepID ?

◆ isLabeledExperiment()

static bool isLabeledExperiment ( const ConsensusMap cm)
static

check if the IsobaricAnalyzer TOPP tool was used to create this ConsensusMap

◆ isRunnable()

bool isRunnable ( const Status s) const

tests if a metric has the required input files gives a warning with the name of the metric that can not be performed

◆ requires()

virtual Status requires ( ) const
pure virtual

Returns the input data requirements of the compute(...) function.

Implemented in Ms2IdentificationRate, Contaminants, FragmentMassError, Ms2SpectrumStats, MissedCleavages, RTAlignment, MzCalibration, TIC, FWHM, and PeptideMass.

Member Data Documentation

◆ names_of_requires

const std::string names_of_requires[]
static

strings corresponding to enum Requires