OpenMS
Loading...
Searching...
No Matches
SearchEngineBase.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: Chris Bielow $
6// $Authors: Chris Bielow $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/APPLICATIONS/OpenMS_CLIConfig.h>
12
16
17
18namespace OpenMS
19{
20
36 class OPENMS_CLI_DLLAPI SearchEngineBase : public TOPPExternalToolBase
37 {
38 public:
40 SearchEngineBase() = delete;
41
44
56 SearchEngineBase(const std::string& name, const std::string& description, const std::vector<Citation>& citations = {}, bool toolhandler_test = true);
57
60
88 std::string getRawfileName(int ms_level = 2) const;
89
90
109 std::string getDBFilename(const std::string& db = "") const;
110
111
133 virtual void registerPeptideIndexingParameter_(Param peptide_indexing_parameter);
134
153 std::vector<ProteinIdentification>& protein_identifications,
154 PeptideIdentificationList& peptide_identifications) const;
155 }; // end SearchEngineBase
156
157} // end NS OpenMS
Management and storage of parameters / INI files.
Definition Param.h:46
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Base class for TOPP search-engine adapters.
Definition SearchEngineBase.h:37
virtual SearchEngineBase::ExitCodes reindex_(std::vector< ProteinIdentification > &protein_identifications, PeptideIdentificationList &peptide_identifications) const
Optionally re-run PeptideIndexing against the parsed identifications.
std::string getDBFilename(const std::string &db="") const
Resolve the search-database path.
SearchEngineBase(const SearchEngineBase &)=delete
Copy construction is disabled.
std::string getRawfileName(int ms_level=2) const
Resolve the -in argument and verify the spectra match a search engine's expectations.
SearchEngineBase(const std::string &name, const std::string &description, const std::vector< Citation > &citations={}, bool toolhandler_test=true)
Construct the adapter (signature mirrors TOPPBase to forward arguments verbatim).
~SearchEngineBase() override
Destructor.
virtual void registerPeptideIndexingParameter_(Param peptide_indexing_parameter)
Register the -reindex switch and a hidden PeptideIndexing parameter sub-tree.
SearchEngineBase()=delete
Default construction is disabled; a tool name and description are required.
ExitCodes
Exit codes.
Definition TOPPBase.h:69
Base class for TOPP tools that invoke an external executable.
Definition TOPPExternalToolBase.h:35
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19