OpenMS
Loading...
Searching...
No Matches
QPXFile.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: Timo Sachsenberg $
6// $Authors: Timo Sachsenberg $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/config.h>
12
13#ifdef WITH_PARQUET
14
20
21#include <memory>
22#include <vector>
23
24// Forward declarations
25namespace arrow
26{
27 class Table;
28}
29
30namespace OpenMS
31{
32
44class OPENMS_DLLAPI QPXFile
45{
46public:
58 static std::shared_ptr<arrow::Table> exportToArrow(
59 const std::vector<ProteinIdentification>& protein_identifications,
60 const PeptideIdentificationList& peptide_identifications,
61 bool export_all_psms = false);
62
73 static bool exportToParquet(
74 const std::vector<ProteinIdentification>& protein_identifications,
75 const PeptideIdentificationList& peptide_identifications,
76 const String& filename,
77 bool export_all_psms = false,
78 const ParquetWriteConfig& config = ParquetWriteConfig{});
79};
80
81} // namespace OpenMS
82
83#endif // WITH_PARQUET
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19