Class RunMzDeviation
java.lang.Object
eu.isas.peptideshaker.recalibration.RunMzDeviation
This class computes the mz deviations for a a given run (i.e. file).
- Author:
- Marc Vaudel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRunMzDeviation(String spectrumFileNameWithoutExtension, com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.waiting.WaitingHandler waitingHandler) Creates a map of m/z deviations for a given run. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetFragmentMzError(double precursorRT, double fragmentMZ) Returns the fragment error at the given retention time and fragment m/z.getFragmentMZList(double precursorRT) Returns the list for fragment ion m/z bins at a given retention time point.doublegetOffset(double rtBin) Returns the precursor m/z deviation offset at a given retention time point.doublegetPrecursorMzCorrection(double precursorMz, double precursorRT) Returns an interpolation of the median error in the bins surrounding the given precursor m/z when recalibrating with m/z only.Returns the list of precursor retention time bins.doublegetSlope(double rtBin) Returns the precursor m/z deviation slope at a given retention time point.double[]recalibrateFragmentMz(double precursorRT, double[] originalMz) Recalibrate an m/z array.
-
Field Details
-
rtBinSize
public static final int rtBinSizeThe bin size in retention time in number of MS/MS spectra.- See Also:
-
mzBinSize
public static final int mzBinSizeThe bin size in m/z in number of MS/MS spectra.- See Also:
-
-
Constructor Details
-
RunMzDeviation
public RunMzDeviation(String spectrumFileNameWithoutExtension, com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.waiting.WaitingHandler waitingHandler) Creates a map of m/z deviations for a given run.- Parameters:
spectrumFileNameWithoutExtension- the name of the file of the runidentification- the corresponding identificationsequenceProvider- the protein sequence providerspectrumProvider- the spectrum provideridentificationParameters- the identification parameterswaitingHandler- a waiting handler displaying the progress and allowing the user to cancel the process. Can be null
-
-
Method Details
-
getPrecursorRTList
Returns the list of precursor retention time bins.- Returns:
- the list of precursor retention time bins
-
getFragmentMZList
Returns the list for fragment ion m/z bins at a given retention time point.- Parameters:
precursorRT- the precursor retention time- Returns:
- the list for fragment ion m/z bins
-
getSlope
public double getSlope(double rtBin) Returns the precursor m/z deviation slope at a given retention time point.- Parameters:
rtBin- the retention time bin- Returns:
- the precursor m/z deviation slope
-
getOffset
public double getOffset(double rtBin) Returns the precursor m/z deviation offset at a given retention time point.- Parameters:
rtBin- the retention time bin- Returns:
- the precursor m/z deviation offset
-
getPrecursorMzCorrection
public double getPrecursorMzCorrection(double precursorMz, double precursorRT) Returns an interpolation of the median error in the bins surrounding the given precursor m/z when recalibrating with m/z only.- Parameters:
precursorMz- the precursor m/zprecursorRT- the precursor retention time- Returns:
- the median error
-
getFragmentMzError
public double getFragmentMzError(double precursorRT, double fragmentMZ) Returns the fragment error at the given retention time and fragment m/z.- Parameters:
precursorRT- the precursor retention timefragmentMZ- the fragment m/z- Returns:
- the error found
-
recalibrateFragmentMz
public double[] recalibrateFragmentMz(double precursorRT, double[] originalMz) Recalibrate an m/z array.- Parameters:
precursorRT- the precursor retention timeoriginalMz- the original m/z- Returns:
- the recalibrated m/z
-