22 class PeptideIdentification;
36 Size num_peptide_identification = 0;
38 double identification_rate = 0.;
43 const String name_ =
"Ms2IdentificationRate";
107 void compute(
const std::vector<PeptideIdentification>& pep_ids,
const MSExperiment& exp,
bool assume_all_target =
false);
113 const std::vector<IdentificationRateData>&
getResults()
const;
A container for features.
Definition: FeatureMap.h:80
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
This class is a metric for the QualityControl-ToppTool.
Definition: Ms2IdentificationRate.h:32
Ms2IdentificationRate()=default
Default constructor.
std::vector< IdentificationRateData > rate_result_
container that stores results
Definition: Ms2IdentificationRate.h:46
void compute(const FeatureMap &feature_map, const MSExperiment &exp, bool assume_all_target=false)
computes Ms2 Identification Rate with FeatureMap
void compute(const std::vector< PeptideIdentification > &pep_ids, const MSExperiment &exp, bool assume_all_target=false)
computes Ms2 Identification Rate with PeptideIdentifications
void addMetaDataMetricsToMzTab(MzTabMetaData &meta) const
const String & getName() const override
returns the name of the metric
QCBase::Status requirements() const override
Returns the input data requirements of the compute(...) function.
void writeResults_(Size pep_ids_count, Size ms2_spectra_count)
const std::vector< IdentificationRateData > & getResults() const
returns results
virtual ~Ms2IdentificationRate()=default
Destructor.
static bool isTargetPeptide_(const PeptideIdentification &id, bool all_targets)
Size getMS2Count_(const MSExperiment &exp)
returns number of all ms2 spectra in an MSExperiment
Structure for storing results.
Definition: Ms2IdentificationRate.h:35
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:39
This class serves as an abstract base class for all QC classes.
Definition: QCBase.h:29
A more convenient string class.
Definition: String.h:34
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