45 class PeptideIdentification;
61 double average_ppm = 0;
62 double variance_ppm = 0;
113 ToleranceUnit tolerance_unit = ToleranceUnit::AUTO,
double tolerance = 20);
A container for features.
Definition: FeatureMap.h:106
Stores and handles combinations of enum values, e.g. a set of flags as bits flipped in an UInt64.
Definition: FlagSet.h:54
Definition: FragmentMassError.h:49
void compute(std::vector< PeptideIdentification > &pep_ids, const ProteinIdentification::SearchParameters &search_params, const MSExperiment &exp, const QCBase::SpectraMap &map_to_spectrum, ToleranceUnit tolerance_unit=ToleranceUnit::AUTO, double tolerance=20)
computes FragmentMassError (FME) in ppm and Dalton (only of the first PeptideHit of each PepID)
void compute(FeatureMap &fmap, const MSExperiment &exp, const QCBase::SpectraMap &map_to_spectrum, ToleranceUnit tolerance_unit=ToleranceUnit::AUTO, double tolerance=20)
computes FragmentMassError (FME) in ppm and Dalton (only of the first PeptideHit of each PepID)
const String & getName() const override
returns the name of the metric
static void calculateVariance_(FragmentMassError::Statistics &result, const PeptideIdentification &pep_id, const UInt num_ppm)
static void calculateFME_(PeptideIdentification &pep_id, const MSExperiment &exp, const QCBase::SpectraMap &map_to_spectrum, bool &print_warning, double tolerance, FragmentMassError::ToleranceUnit tolerance_unit, double &accumulator_ppm, UInt32 &counter_ppm, WindowMower &window_mower_filter)
QCBase::Status requirements() const override
Returns the input data requirements of the compute(...) function.
const std::vector< Statistics > & getResults() const
returns results
std::vector< Statistics > results_
container that stores results
Definition: FragmentMassError.h:130
FragmentMassError()=default
Default constructor.
virtual ~FragmentMassError()=default
Destructor.
Structure for storing results: average and variance of all FragmentMassErrors in ppm.
Definition: FragmentMassError.h:60
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:72
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:65
Map to find a spectrum via its NativeID.
Definition: QCBase.h:89
This class serves as an abstract base class for all QC classes.
Definition: QCBase.h:55
ToleranceUnit
Definition: QCBase.h:75
A more convenient string class.
Definition: String.h:60
WindowMower augments the highest peaks in a sliding or jumping window.
Definition: WindowMower.h:56
OPENMS_UINT32_TYPE UInt32
Unsigned integer type (32bit)
Definition: Types.h:63
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
Search parameters of the DB search.
Definition: ProteinIdentification.h:273