Class AplFileWriter
java.lang.Object
com.compomics.util.experiment.io.mass_spectrometry.apl.AplFileWriter
- All Implemented Interfaces:
AutoCloseable
This class writes spectrum files in Andromeda Peak List (APL) format.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidwriteSpectrum(String spectrumTitle, Spectrum spectrum, FragmentationMethod fragmentationMethod, int charge) Writes the given spectrum to the file.
-
Constructor Details
-
AplFileWriter
public AplFileWriter()Empty default constructor. -
AplFileWriter
Constructor.- Parameters:
destinationFile- The file where to write.
-
-
Method Details
-
writeSpectrum
public void writeSpectrum(String spectrumTitle, Spectrum spectrum, FragmentationMethod fragmentationMethod, int charge) Writes the given spectrum to the file.- Parameters:
spectrumTitle- The title of the spectrum to write.spectrum- The spectrum to write.fragmentationMethod- The fragmentation method.charge- The charge to consider for this spectrum.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-