OpenMS
Loading...
Searching...
No Matches
OpenSwathPercolatorScoring.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Justin Sing $
6// $Authors: Justin Sing $
7// --------------------------------------------------------------------------
8
9#pragma once
10
13#include <OpenMS/config.h>
14
15#include <array>
16#include <memory>
17#include <string>
18
19namespace OpenMS
20{
50 class OPENMS_DLLAPI OpenSwathPercolatorScoring :
52 {
53 public:
55 enum class Level
56 {
57 MS1,
58 MS2,
59 MS1MS2,
60 TRANSITION,
61 SIZE_OF_LEVEL
62 };
63
65 static const std::array<std::string, static_cast<Size>(Level::SIZE_OF_LEVEL)> names_of_level;
66
68 struct OPENMS_DLLAPI ScoreSummary
69 {
70 Size total_rows = 0;
71 Size target_rows = 0;
72 Size decoy_rows = 0;
73 Size feature_count = 0;
74 };
75
78
94 ScoreSummary score(const std::string& input_path,
95 Level level,
96 const std::string& output_path = "");
97
98 protected:
99 void updateMembers_() override;
100
101 private:
102 struct Impl;
103 std::unique_ptr<Impl> impl_;
104 };
105} // namespace OpenMS
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
In-process Percolator scoring for OpenSWATH OSW and OSWPQ results.
Definition OpenSwathPercolatorScoring.h:52
Level
Supported OpenSWATH scoring levels.
Definition OpenSwathPercolatorScoring.h:56
std::unique_ptr< Impl > impl_
Definition OpenSwathPercolatorScoring.h:103
ScoreSummary score(const std::string &input_path, Level level, const std::string &output_path="")
Score an OpenSWATH OSW / OSWPQ file in place or into a copy.
static const std::array< std::string, static_cast< Size >(Level::SIZE_OF_LEVEL)> names_of_level
String names of the supported scoring levels.
Definition OpenSwathPercolatorScoring.h:65
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
Small execution summary returned by score()
Definition OpenSwathPercolatorScoring.h:69
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19