Class RecalibrationUtils
java.lang.Object
com.compomics.util.experiment.mass_spectrometry.spectra.RecalibrationUtils
public class RecalibrationUtils extends Object
Utility functions for spectrum recalibration.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors Constructor Description RecalibrationUtils()
-
Method Summary
Modifier and Type Method Description static double[]
getRecalibratedMz(TreeMap<Double,Double> mzCorrections, double[] originalMz)
Returns a recalibrated peak list.static Precursor
getRecalibratedPrecursor(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
public static double[] getRecalibratedMz(TreeMap<Double,Double> mzCorrections, double[] originalMz)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.
-