File adapter for Kroenik (HardKloer sibling) files. More...
#include <OpenMS/FORMAT/KroenikFile.h>
Public Member Functions | |
KroenikFile () | |
Default constructor. More... | |
virtual | ~KroenikFile () |
Destructor. More... | |
void | load (const String &filename, FeatureMap &feature_map) |
Loads a Kroenik file into a featureXML. More... | |
template<typename SpectrumType > | |
void | store (const String &filename, const SpectrumType &spectrum) const |
Stores a featureXML as a Kroenik file. More... | |
File adapter for Kroenik (HardKloer sibling) files.
The first line is the header and contains the column names:
File, First Scan, Last Scan, Num of Scans, Charge, Monoisotopic Mass, Base Isotope Peak, Best Intensity, Summed Intensity, First RTime, Last RTime, Best RTime, Best Correlation, Modifications
Every subsequent line is a feature.
All properties in the file are converted to Feature properties, whereas "First Scan", "Last Scan", "Num of Scans" and "Modifications" are stored as metavalues with the following names "FirstScan", "LastScan", "NumOfScans" and "AveragineModifications".
The width in m/z of the overall convex hull of each feature is set to 3 Th in lack of a value provided by the Kroenik file.
KroenikFile | ( | ) |
Default constructor.
|
virtual |
Destructor.
void load | ( | const String & | filename, |
FeatureMap & | feature_map | ||
) |
Loads a Kroenik file into a featureXML.
The content of the file is stored in features
.
Exception::FileNotFound | is thrown if the file could not be opened |
Exception::ParseError | is thrown if an error occurs during parsing |
|
inline |
Stores a featureXML as a Kroenik file.
NOT IMPLEMENTED
Exception::UnableToCreateFile | is thrown if the file could not be created |
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:09 using doxygen 1.8.13 |