KroenikFile#

class pyopenms.KroenikFile#

Bases: object

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

__init__() → None#

Methods

__init__()

load(filename)

Loads a Kroenik file

store(filename, fmap)

Stores a FeatureMap to a Kroenik file

load(filename: str) → pyopenms.FeatureMap#

Loads a Kroenik file

Parameters:

filename – The name of the file to read from

Returns:

FeatureMap with the features of the file

Raises:

Exception: FileNotFound is thrown if the file could not be opened

Raises:

Exception: ParseError is thrown if an error occurs during parsing

store(filename: str, fmap: pyopenms.FeatureMap) → None#

Stores a FeatureMap to a Kroenik file