public class RunMzDeviation extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
mzBinSize
The bin size in m/z in number of MS/MS spectra.
|
static int |
rtBinSize
The bin size in retention time in number of MS/MS spectra.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getFragmentMzError(double precursorRT,
double fragmentMZ)
Returns the fragment error at the given retention time and fragment m/z.
|
ArrayList<Double> |
getFragmentMZList(double precursorRT)
Returns the list for fragment ion m/z bins at a given retention time
point.
|
double |
getOffset(double rtBin)
Returns the precursor m/z deviation offset at a given retention time
point.
|
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.
|
ArrayList<Double> |
getPrecursorRTList()
Returns the list of precursor retention time bins.
|
double |
getSlope(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.
|
public static final int rtBinSize
public static final int mzBinSize
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)
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 nullpublic ArrayList<Double> getPrecursorRTList()
public ArrayList<Double> getFragmentMZList(double precursorRT)
precursorRT - the precursor retention timepublic double getSlope(double rtBin)
rtBin - the retention time binpublic double getOffset(double rtBin)
rtBin - the retention time binpublic double getPrecursorMzCorrection(double precursorMz,
double precursorRT)
precursorMz - the precursor m/zprecursorRT - the precursor retention timepublic double getFragmentMzError(double precursorRT,
double fragmentMZ)
precursorRT - the precursor retention timefragmentMZ - the fragment m/zpublic double[] recalibrateFragmentMz(double precursorRT,
double[] originalMz)
precursorRT - the precursor retention timeoriginalMz - the original m/zCopyright © 2021. All rights reserved.