![]() |
OpenMS
|
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 do_sort, bool force) |
| Annotate a Swath map using a Swath window file specifying the individual windows. | |
| static void | readSwathWindows (const std::string &filename, std::vector< double > &swath_prec_lower, std::vector< double > &swath_prec_upper) |
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.
|
static |
Annotate a Swath map using a Swath window file specifying the individual windows.
| [in] | filename | The filename of the tab delimited file |
| [in,out] | swath_maps | The list of SWATH maps (assumed to be in the same order as in the file) |
| [in] | do_sort | Sort the windows after reading in ascending order |
| [in] | force | Force overriding the window boundaries, even if the new boundaries are wider than the data boundaries |
| Exception::IllegalArgument | if the number of maps in the file and the provided input maps to not match, or if the new boundaries are outside of the data boundaries (unless force==true) |
|
static |
@brief 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. @param[in] filename The filename of the tab delimited file @param[out] swath_prec_lower The output vector for the window start @param[out] swath_prec_upper The output vector for the window end @throw Exception::InvalidValue if window's start >= end