public class AplExporter extends Object
Constructor and Description |
---|
AplExporter() |
Modifier and Type | Method and Description |
---|---|
static void |
mgfToApl(File mgfFile,
File destinationFile,
FragmentationMethod fragmentationMethod,
int minCharge,
int maxCharge)
Writes the content of the given file name into the destination file in
the APL format.
|
static void |
writeSpectrum(BufferedWriter bw,
MSnSpectrum spectrum,
FragmentationMethod fragmentationMethod,
int charge)
Writes the given spectrum in ms2 format.
|
public static void mgfToApl(File mgfFile, File destinationFile, FragmentationMethod fragmentationMethod, int minCharge, int maxCharge) throws IOException, uk.ac.ebi.jmzml.xml.io.MzMLUnmarshallerException
mgfFile
- the original mgf filedestinationFile
- the destination file where to write the spectrafragmentationMethod
- the fragmentation method used //@TODO: this
should be spectrum dependentminCharge
- the minimal charge to look for in case no charge is
present in the filemaxCharge
- the maximal charge to look for in case no charge is
present in the fileIOException
- exception thrown whenever an error occurred while
reading or writing a fileuk.ac.ebi.jmzml.xml.io.MzMLUnmarshallerException
- exception thrown
whenever an error occurred while reading an mzML filepublic static void writeSpectrum(BufferedWriter bw, MSnSpectrum spectrum, FragmentationMethod fragmentationMethod, int charge) throws IOException
bw
- a buffered writer where to write the spectrumspectrum
- the spectrum of interestfragmentationMethod
- the fragmentation method usedcharge
- the charge to consider for this spectrumIOException
- exception thrown whenever an error occurred while
reading or writing a fileCopyright © 2016. All rights reserved.