Class Ms2Exporter
java.lang.Object
com.compomics.util.experiment.io.mass_spectrometry.ms2.Ms2Exporter
public class Ms2Exporter extends Object
This class writes spectrum files in MS2 format.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
Constructors Constructor Description Ms2Exporter()
Empty default constructor.Ms2Exporter(File destinationFile)
Constructor. -
Method Summary
Modifier and Type Method Description void
writeHeader()
Writes the header of the file.void
writeSpectrum(Spectrum spectrum, int scanNumber)
Writes the given spectrum in ms2 format.
-
Constructor Details
-
Ms2Exporter
public Ms2Exporter()Empty default constructor. -
Ms2Exporter
Constructor.- Parameters:
destinationFile
- The file where to write.
-
-
Method Details
-
writeHeader
public void writeHeader()Writes the header of the file. -
writeSpectrum
Writes the given spectrum in ms2 format.- Parameters:
spectrum
- The spectrum to write.scanNumber
- the scan number
-