37 #include <OpenMS/config.h>
157 const std::vector<FileTypes::Type>&
getTypes()
const
holds a vector of known file types, e.g. as a way to specify supported input formats
Definition: FileTypes.h:150
std::vector< FileTypes::Type > types
Definition: FileTypes.h:189
String toFileDialogFilter(const FilterLayout style, bool add_all_filter) const
std::vector< String > items
Definition: FileTypes.h:188
bool contains(const FileTypes::Type &type) const
check if type is contained in this array
FileTypes::Type fromFileDialogFilter(const String &filter, const FileTypes::Type fallback=FileTypes::Type::UNKNOWN) const
Convert a Qt filter back to a Type if possible.
std::vector< FileTypes::Type > type_list_
Definition: FileTypes.h:196
const std::vector< FileTypes::Type > & getTypes() const
Definition: FileTypes.h:157
FilterElements_ asFilterElements_(const FilterLayout style, bool add_all_filter) const
FileTypeList(const std::vector< FileTypes::Type > &types)
hold filter items (for Qt dialogs) along with their OpenMS type
Definition: FileTypes.h:187
A more convenient string class.
Definition: String.h:60
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
FilterLayout
Definition: FileTypes.h:139
@ BOTH
combine COMPACT and ONE_BY_ONE
@ ONE_BY_ONE
list all types individually, e.g. 'mzML files (*.mzML);;mzXML files (*.mzXML);;'
@ COMPACT
make a single item, e.g. 'all readable files (*.mzML *.mzXML);;'
Centralizes the file types recognized by FileHandler.
Definition: FileTypes.h:53
static String typeToDescription(Type type)
Type
Actual file types enum.
Definition: FileTypes.h:57
@ PSMS
Percolator tab-delimited output (PSM level)
Definition: FileTypes.h:105
@ PIN
Percolator tab-delimited input (PSM level)
Definition: FileTypes.h:106
@ FASTA
FASTA file (.fasta)
Definition: FileTypes.h:91
@ TRAML
TraML (HUPO PSI format) for transitions (.traML)
Definition: FileTypes.h:80
@ MZIDENTML
mzIdentML (HUPO PSI AnalysisXML followup format) (.mzid)
Definition: FileTypes.h:75
@ SPLIB
SpectraST binary spectral library file (sptxt is the equivalent text-based format,...
Definition: FileTypes.h:108
@ MZQUANTML
mzQuantML (HUPO PSI AnalysisXML followup format) (.mzq)
Definition: FileTypes.h:76
@ QCML
qcML (will undergo standardisation maybe) (.qcml)
Definition: FileTypes.h:77
@ GZ
any Gzipped file
Definition: FileTypes.h:118
@ MGF
Mascot Generic Format (.mgf)
Definition: FileTypes.h:66
@ CSV
general comma separated files format (might also be tab or space separated!!!), data should be regula...
Definition: FileTypes.h:93
@ PARAMXML
internal format for writing and reading parameters (also used as part of CTD)
Definition: FileTypes.h:107
@ INI
OpenMS parameters file (.ini)
Definition: FileTypes.h:67
@ GELML
GelML (HUPO PSI format) (.gelML)
Definition: FileTypes.h:79
@ HARDKLOER
hardkloer file (.hardkloer)
Definition: FileTypes.h:89
@ NOVOR
Novor custom parameter file.
Definition: FileTypes.h:109
@ PSQ
NCBI binary blast db.
Definition: FileTypes.h:99
@ TXT
any text format, which has only loose definition of what it actually contains – thus it is usually ha...
Definition: FileTypes.h:94
@ MSP
NIST spectra library file format (.msp)
Definition: FileTypes.h:81
@ KROENIK
kroenik file (.kroenik)
Definition: FileTypes.h:90
@ XML
any XML format
Definition: FileTypes.h:116
@ DTA2D
DTA2D file (.dta2d)
Definition: FileTypes.h:60
@ UNKNOWN
Unknown file extension.
Definition: FileTypes.h:58
@ CONSENSUSXML
OpenMS consensus map format (.consensusXML)
Definition: FileTypes.h:65
@ FEATUREXML
OpenMS feature file (.featureXML)
Definition: FileTypes.h:63
@ MZTAB
mzTab file (.mzTab)
Definition: FileTypes.h:87
@ PQP
OpenSWATH Peptide Query Parameter (PQP) SQLite DB, see TransitionPQPFile.
Definition: FileTypes.h:102
@ PROTXML
TPP protXML file (.protXML)
Definition: FileTypes.h:74
@ XSD
XSD schema format.
Definition: FileTypes.h:98
@ PNG
Portable Network Graphics (.png)
Definition: FileTypes.h:84
@ PEPLIST
specArray file (.peplist)
Definition: FileTypes.h:88
@ XMASS
XMass Analysis file (fid)
Definition: FileTypes.h:85
@ PEPXML
TPP pepXML file (.pepXML)
Definition: FileTypes.h:73
@ BZ2
any BZ2 compressed file
Definition: FileTypes.h:117
@ TSV
any TSV file, for example msInspect file or OpenSWATH transition file (see TransitionTSVFile)
Definition: FileTypes.h:86
@ MZQC
mzQC (HUPO PSI format) (.mzQC)
Definition: FileTypes.h:78
@ SPECXML
xQuest XML file format for matched spectra for spectra visualization in the xQuest results manager (....
Definition: FileTypes.h:111
@ MS
SIRIUS file format (.ms)
Definition: FileTypes.h:103
@ TRANSFORMATIONXML
Transformation description file (.trafoXML)
Definition: FileTypes.h:69
@ JSON
JavaScript Object Notation file (.json)
Definition: FileTypes.h:112
@ OMSSAXML
OMSSA XML file format for peptide identifications (.xml)
Definition: FileTypes.h:82
@ IDXML
OpenMS identification format (.idXML)
Definition: FileTypes.h:64
@ MZML
MzML file (.mzML)
Definition: FileTypes.h:70
@ RAW
Thermo Raw File (.raw)
Definition: FileTypes.h:113
@ EDTA
enhanced comma separated files (RT, m/z, Intensity, [meta])
Definition: FileTypes.h:92
@ TOPPAS
OpenMS parameters file with workflow information (.toppas)
Definition: FileTypes.h:68
@ XQUESTXML
xQuest XML file format for protein-protein cross-link identifications (.xquest.xml)
Definition: FileTypes.h:110
@ MS2
MS2 file (.ms2)
Definition: FileTypes.h:72
@ SQMASS
SqLite format for mass and chromatograms, see SqMassFile.
Definition: FileTypes.h:101
@ HTML
any HTML format
Definition: FileTypes.h:96
@ ANALYSISXML
analysisXML format
Definition: FileTypes.h:97
@ DTA
DTA file (.dta)
Definition: FileTypes.h:59
@ MASCOTXML
Mascot XML file format for peptide identifications (.xml)
Definition: FileTypes.h:83
@ CACHEDMZML
CachedMzML file (.cachedmzML)
Definition: FileTypes.h:71
@ EXE
Executable (.exe)
Definition: FileTypes.h:115
@ MZDATA
MzData file (.mzData)
Definition: FileTypes.h:61
@ OSW
OpenSWATH OpenSWATH report (OSW) SQLite DB.
Definition: FileTypes.h:104
@ MZXML
MzXML file (.mzXML)
Definition: FileTypes.h:62
@ OMS
OpenMS database file.
Definition: FileTypes.h:114
@ OBO
Controlled Vocabulary format.
Definition: FileTypes.h:95
@ MRM
SpectraST MRM List.
Definition: FileTypes.h:100
static Type nameToType(const String &name)
static String typeToMZML(Type type)
Returns the mzML name (TODO: switch to accession since they are more stable!)
static String typeToName(Type type)
Returns the name/extension of the type.