SwathWindowLoader#

class pyopenms.SwathWindowLoader#

Bases: object

Class to read a file describing the Swath Windows

The file must be tab delimited and of the following format:

window_lower window_upper
400 425
425 450
...

Note that the first line is a header and will be skipped.

__init__() → None#
__init__(arg: pyopenms.SwathWindowLoader, /) → None

Methods

__init__()

annotateSwathMapsFromFile(filename, ...)

In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as swath_maps is also updated in place with the returned contents.

readSwathWindows(filename)

static annotateSwathMapsFromFile(filename: str, swath_maps: collections.abc.Sequence[pyopenms.SwathMap], do_sort: bool, force: bool) → list[pyopenms.SwathMap]#

In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as swath_maps is also updated in place with the returned contents.

static readSwathWindows(filename: str) → tuple[list[float], list[float]]#