47 class PeptideIdentification;
62 Size num_peptide_identification = 0;
64 double identification_rate = 0.;
69 const String name_ =
"Ms2IdentificationRate";
133 void compute(
const std::vector<PeptideIdentification>& pep_ids,
const MSExperiment& exp,
bool assume_all_target =
false);
139 const std::vector<IdentificationRateData>&
getResults()
const;
A container for features.
Definition: FeatureMap.h:105
Stores and handles combinations of enum values, e.g. a set of flags as bits flipped in an UInt64.
Definition: FlagSet.h:54
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:80
This class is a metric for the QualityControl-ToppTool.
Definition: Ms2IdentificationRate.h:57
Ms2IdentificationRate()=default
Default constructor.
std::vector< IdentificationRateData > rate_result_
container that stores results
Definition: Ms2IdentificationRate.h:72
void compute(const FeatureMap &feature_map, const MSExperiment &exp, bool assume_all_target=false)
computes Ms2 Identification Rate with FeatureMap
void addMetaDataMetricsToMzTab(MzTabMetaData &meta)
void compute(const std::vector< PeptideIdentification > &pep_ids, const MSExperiment &exp, bool assume_all_target=false)
computes Ms2 Identification Rate with PeptideIdentifications
const String & getName() const override
returns the name of the metric
QCBase::Status requires() 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:61
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:65
This class serves as an abstract base class for all QC classes.
Definition: QCBase.h:55
A more convenient string class.
Definition: String.h:61
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47