110 const std::vector<InternalCalibration::LockMass>& ref_masses,
112 bool lock_require_mono,
113 bool lock_require_iso,
155 Size fillCalibrants(
const std::vector<PeptideIdentification>& pep_ids,
double tol_ppm);
196 double post_ppm_median,
198 const String& file_models =
"",
199 const String& file_models_plot =
"",
200 const String& file_residuals =
"",
201 const String& file_residuals_plot =
"",
202 const String& rscript_executable =
"Rscript");
212 static void applyTransformation(std::vector<Precursor>& pcs,
const MZTrafoModel& trafo);
260 if (cnt_empty > 0)
OPENMS_LOG_WARN <<
"Warning: " << cnt_empty <<
"/" << cnt_total <<
" calibrations points were skipped, since they have no peptide sequence!" << std::endl;
261 if (cnt_nomz > 0)
OPENMS_LOG_WARN <<
"Warning: " << cnt_nomz <<
"/" << cnt_total <<
" calibrations points were skipped, since they have no m/z value!" << std::endl;
262 if (cnt_nort > 0)
OPENMS_LOG_WARN <<
"Warning: " << cnt_nort <<
"/" << cnt_total <<
" calibrations points were skipped, since they have no RT value!" << std::endl;
263 if (cnt_decal > 0)
OPENMS_LOG_WARN <<
"Warning: " << cnt_decal <<
"/" << cnt_total <<
" calibrations points were skipped, since their theoretical weight is more than " << tol_ppm_ <<
" ppm away from their measured mass!" << std::endl;
289 void fillIDs_(
const std::vector<PeptideIdentification>& pep_ids,
const double tol_ppm,
CalibrantStats_& stats);
A more convenient string class.
Definition: String.h:58
MODELTYPE
Definition: MZTrafoModel.h:97
A container for features.
Definition: FeatureMap.h:98
A mass recalibration method using linear/quadratic interpolation (robust/weighted) of given reference...
Definition: InternalCalibration.h:62
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
CalibrantStats_(const double tol_ppm)
Definition: InternalCalibration.h:249
Create and apply models of a mass recalibration function.
Definition: MZTrafoModel.h:64
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
int charge
charge of the ion (to find isotopes)
Definition: InternalCalibration.h:78
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
void print() const
Definition: InternalCalibration.h:258
const double tol_ppm_
tolerance used for counting cnt_decal
Definition: InternalCalibration.h:267
helper class, describing a lock mass
Definition: InternalCalibration.h:74
A helper class, holding all calibration points.
Definition: CalibrationData.h:64
statistics when adding peptide calibrants
Definition: InternalCalibration.h:247
unsigned int ms_level
MS level where it occurs.
Definition: InternalCalibration.h:77
double mz
m/z of the lock mass (incl. adducts)
Definition: InternalCalibration.h:76
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:70
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:52
CalibrationData cal_data_
Definition: InternalCalibration.h:302
LockMass(double mz_, int lvl_, int charge_)
Definition: InternalCalibration.h:80
~InternalCalibration() override
Destructor.
Definition: InternalCalibration.h:71
int verbose
Verbosity level ( "-v" is 1 and "-V" is 2 )
#define OPENMS_LOG_WARN
Macro if a warning, a piece of information which should be read by the user, should be logged...
Definition: LogStream.h:465
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:63