public class SpectrumRecalibrator extends Object
| Constructor and Description |
|---|
SpectrumRecalibrator()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearErrors(String spectrumFileName)
Clears the loaded error statistics for the given file name in order to
save memory.
|
void |
estimateErrors(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)
Estimates the file m/z errors and displays the progress in a waiting
handler.
|
RunMzDeviation |
getRunMzDeviations(String spectrumFileName)
Returns the mz deviation statistics class for the spectrum file of
interest.
|
com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum |
recalibrateSpectrum(String fileName,
String spectrumTitle,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider,
boolean recalibratePrecursor,
boolean recalibrateFragmentIons)
Recalibrates a spectrum.
|
public void clearErrors(String spectrumFileName)
spectrumFileName - the spectrum file namepublic RunMzDeviation getRunMzDeviations(String spectrumFileName)
spectrumFileName - name of the spectrum filepublic void estimateErrors(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 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 com.compomics.util.experiment.mass_spectrometry.spectra.Spectrum recalibrateSpectrum(String fileName, String spectrumTitle, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, boolean recalibratePrecursor, boolean recalibrateFragmentIons)
fileName - the name of the file where to find the spectrumspectrumTitle - the title of the spectrumspectrumProvider - the spectrum providerrecalibratePrecursor - boolean indicating whether precursors shall
be recalibratedrecalibrateFragmentIons - boolean indicating whether fragment ions
shall be recalibratedCopyright © 2021. All rights reserved.