public final class Constants extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Constants.SpecFileFormat
An enum of the supported spectra file types
|
static class |
Constants.SpecIdFormat
Supported id format used in the spectrum file.
|
Modifier and Type | Field and Description |
---|---|
static String |
APL_EXT |
static String |
DTA_EXT |
static String |
INTEGER
integer expression
|
static String |
MGF_EXT |
static String |
MS2_EXT |
static String |
MZML_EXT |
static String |
MZTAB_EXT |
static String |
MZXML_EXT |
static String |
NOT_AVAILABLE |
static String |
PKL_EXT |
static String |
WIFF_EXT |
static String |
XML_EXT |
Modifier and Type | Method and Description |
---|---|
static Constants.SpecFileFormat |
getDataFormatFromFileExtension(SpectraData spectradata)
Return the Spectrum File format beased onf the SpectraData object name
|
static Class |
getFileType(File file)
Check the file type
|
static List<Constants.SpecFileFormat> |
getFileTypeSupported(SpectraData spectraData)
Return the set of file format supported for an ambiguous SpectraData Object
|
static Constants.SpecFileFormat |
getSpecFileFormat(String fileFormat)
Retrieve the Spectrum File format for an specific fileformat.
|
static Constants.SpecFileFormat |
getSpecFileFormatFromLocation(String path)
Return the SpectrumFile format for an specific path such as: /myppath/spectrum_file.mgf
|
static Constants.SpecFileFormat |
getSpectraDataFormat(SpectraData spectraData)
This function returns the Spectrum File format for an specific SpectraData ob object
|
static Constants.SpecIdFormat |
getSpectraDataIdFormat(String accession)
Spectrum Id format for an specific CVterm accession
|
public static final String INTEGER
public static final String NOT_AVAILABLE
public static final String MGF_EXT
public static final String DTA_EXT
public static final String MS2_EXT
public static final String PKL_EXT
public static final String MZXML_EXT
public static final String APL_EXT
public static final String XML_EXT
public static final String MZML_EXT
public static final String MZTAB_EXT
public static final String WIFF_EXT
public static Constants.SpecFileFormat getSpecFileFormat(String fileFormat)
fileFormat
- file format such mgf ms2, mzid or other file formatspublic static Constants.SpecFileFormat getSpecFileFormatFromLocation(String path)
path
- the specific pathpublic static Constants.SpecFileFormat getSpectraDataFormat(SpectraData spectraData)
spectraData
- The SpectraData objectpublic static Constants.SpecIdFormat getSpectraDataIdFormat(String accession)
accession
- CvTerm Accessionpublic static List<Constants.SpecFileFormat> getFileTypeSupported(SpectraData spectraData)
spectraData
- SpectraData Objectpublic static Constants.SpecFileFormat getDataFormatFromFileExtension(SpectraData spectradata)
spectradata
- SpectraData ObjectCopyright © 2015 European Bioinformatics Institute. All Rights Reserved.