public class Ms2Exporter extends Object
Constructor and Description |
---|
Ms2Exporter() |
Modifier and Type | Method and Description |
---|---|
static void |
mgfToMs2(File mgfFile,
File destinationFile)
Writes the content of the given file name into the destination file in
the ms2 format.
|
static void |
writeHeader(BufferedWriter bw)
Writes the header of the file.
|
static void |
writeSpectrum(BufferedWriter bw,
MSnSpectrum spectrum)
Writes the given spectrum in ms2 format.
|
public static void mgfToMs2(File mgfFile, File destinationFile) throws IOException
mgfFile
- the original mgf filedestinationFile
- the destination file where to write the spectraIOException
public static void writeHeader(BufferedWriter bw) throws IOException
bw
- a buffered writer where to writeIOException
public static void writeSpectrum(BufferedWriter bw, MSnSpectrum spectrum) throws IOException
bw
- a buffered writer where to write the spectrumspectrum
- the spectrum of interestIOException
Copyright © 2014. All rights reserved.