OpenMS  2.4.0
Static Public Member Functions | List of all members
SwathWindowLoader Class Reference

Class to read a file describing the Swath Windows. More...

#include <OpenMS/ANALYSIS/OPENSWATH/SwathWindowLoader.h>

Static Public Member Functions

static void annotateSwathMapsFromFile (const std::string &filename, std::vector< OpenSwath::SwathMap > &swath_maps, bool doSort)
 Annotate a Swath map using a Swath window file specifying the individual windows. More...
 
static void readSwathWindows (const std::string &filename, std::vector< double > &swath_prec_lower_, std::vector< double > &swath_prec_upper_)
 Reading a tab delimited file specifying the SWATH windows. More...
 

Detailed Description

Class to read a file describing the Swath Windows.

The file must of 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.

Member Function Documentation

◆ annotateSwathMapsFromFile()

static void annotateSwathMapsFromFile ( const std::string &  filename,
std::vector< OpenSwath::SwathMap > &  swath_maps,
bool  doSort 
)
static

Annotate a Swath map using a Swath window file specifying the individual windows.

Note
It is assumed that the files in the swath_maps vector are in the same order as the windows in the provided file (usually from lowest to highest).
Parameters
filenameThe filename of the tab delimited file
swath_mapsThe list of SWATH maps (assumed to be in the same order as in the file)
doSortSort the windows after reading in ascending order
Exceptions
Exception::IllegalArgumentif the maps in the file and the provided input maps to not match

◆ readSwathWindows()

static void readSwathWindows ( const std::string &  filename,
std::vector< double > &  swath_prec_lower_,
std::vector< double > &  swath_prec_upper_ 
)
static

Reading a tab delimited file specifying the SWATH windows.

The file must of 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.

Parameters
filenameThe filename of the tab delimited file
swath_prec_lower_The output vector for the window start
swath_prec_upper_The output vector for the window end