public class MsFileExporter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MsFileExporter.Format
Enum of the supported export formats.
|
Constructor and Description |
---|
MsFileExporter() |
Modifier and Type | Method and Description |
---|---|
static void |
writeAplFile(SpectrumProvider spectrumProvider,
String fileNameWithoutExtension,
File destinationFile,
SearchParameters searchParameters,
WaitingHandler waitingHandler)
Writes the spectra of a file in the Andromeda peak list (apl) format.
|
static void |
writeMgfFile(SpectrumProvider spectrumProvider,
String fileNameWithoutExtension,
File destinationFile,
WaitingHandler waitingHandler)
Writes the spectra of a file in the Mascot Generic File (mgf) format.
|
static void |
writeMs2File(SpectrumProvider spectrumProvider,
String fileNameWithoutExtension,
File destinationFile,
WaitingHandler waitingHandler)
Writes the spectra of a file in the ms2 format.
|
static void |
writeMsFile(SpectrumProvider spectrumProvider,
String fileNameWithoutExtension,
File destinationFile,
MsFileExporter.Format format,
SearchParameters searchParameters,
WaitingHandler waitingHandler)
Writes the spectra of a file in the given format.
|
public static void writeMsFile(SpectrumProvider spectrumProvider, String fileNameWithoutExtension, File destinationFile, MsFileExporter.Format format, SearchParameters searchParameters, WaitingHandler waitingHandler)
spectrumProvider
- The spectrum provider to use to get the spectra.fileNameWithoutExtension
- The name of the file to export.destinationFile
- The file where to write.format
- The format to write in.searchParameters
- The search parameters.waitingHandler
- The waiting handler to use to inform on progress
and allow cancelling.public static void writeAplFile(SpectrumProvider spectrumProvider, String fileNameWithoutExtension, File destinationFile, SearchParameters searchParameters, WaitingHandler waitingHandler)
spectrumProvider
- The spectrum provider to use to get the spectra.fileNameWithoutExtension
- The name of the file to export.destinationFile
- The file where to write.searchParameters
- The search parameters.waitingHandler
- The waiting handler to use to inform on progress
and allow cancelling.public static void writeMgfFile(SpectrumProvider spectrumProvider, String fileNameWithoutExtension, File destinationFile, WaitingHandler waitingHandler)
spectrumProvider
- The spectrum provider to use to get the spectra.fileNameWithoutExtension
- The name of the file to export.destinationFile
- The file where to write.waitingHandler
- The waiting handler to use to inform on progress
and allow cancelling.public static void writeMs2File(SpectrumProvider spectrumProvider, String fileNameWithoutExtension, File destinationFile, WaitingHandler waitingHandler)
spectrumProvider
- The spectrum provider to use to get the spectra.fileNameWithoutExtension
- The name of the file to export.destinationFile
- The file where to write.waitingHandler
- The waiting handler to use to inform on progress
and allow cancelling.Copyright © 2021. All rights reserved.