Package eu.isas.peptideshaker.followup
Class RecalibrationExporter
java.lang.Object
eu.isas.peptideshaker.followup.RecalibrationExporter
This class exports recalibrated spectra.
- Author:
- Marc Vaudel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetRecalibratedFileName(String fileName) Returns the name of the recalibrated file.writeRecalibratedSpectra(boolean recalibratePrecursors, boolean recalibrateFragmentIons, File folder, 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) Writes the recalibrated spectra in files named according to getRecalibratedFileName in the given folder.
-
Field Details
-
SUFFIX
Suffix for the mgf file containing all recalibrated spectra.- See Also:
-
-
Constructor Details
-
RecalibrationExporter
public RecalibrationExporter()
-
-
Method Details
-
writeRecalibratedSpectra
public static ArrayList<File> writeRecalibratedSpectra(boolean recalibratePrecursors, boolean recalibrateFragmentIons, File folder, 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) throws IOException Writes the recalibrated spectra in files named according to getRecalibratedFileName in the given folder.- Parameters:
recalibratePrecursors- boolean indicating whether precursor ions shall be recalibratedrecalibrateFragmentIons- boolean indicating whether fragment ions shall be recalibratedfolder- folder where recalibrated files shall be writtenidentification- identification of the projectsequenceProvider- the sequence providerspectrumProvider- the spectrum provideridentificationParameters- the identification parameterswaitingHandler- waiting handler displaying progress and used to cancel the process. Can be null. The method does not call RunFinished.- Returns:
- ArrayList files containing recalibrated spectra
- Throws:
IOException- exception thrown whenever an error occurred while writing the file
-
getRecalibratedFileName
Returns the name of the recalibrated file.- Parameters:
fileName- the original file name- Returns:
- the name of the recalibrated file
-