Class RecalibrationUtils
java.lang.Object
com.compomics.util.experiment.mass_spectrometry.spectra.RecalibrationUtils
Utility functions for spectrum recalibration.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[]getRecalibratedMz(TreeMap<Double, Double> mzCorrections, double[] originalMz) Returns a recalibrated peak list.static PrecursorgetRecalibratedPrecursor(Precursor precursor, double mzCorrection, double rtCorrection) Returns a recalibrated precursor.
-
Constructor Details
-
RecalibrationUtils
public RecalibrationUtils()
-
-
Method Details
-
getRecalibratedPrecursor
public static Precursor getRecalibratedPrecursor(Precursor precursor, double mzCorrection, double rtCorrection) Returns a recalibrated precursor.- Parameters:
precursor- The precursor to recalibrate.mzCorrection- The m/z correction to apply.rtCorrection- The retention time correction to apply.- Returns:
- A new precursor with recalibrated mz and rt.
-
getRecalibratedMz
Returns a recalibrated peak list.- Parameters:
mzCorrections- The corrections to apply.originalMz- The original m/z array.- Returns:
- A new array of recalibrated m/z.
-