OpenMS
Loading...
Searching...
No Matches
PSMArrowIO.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
18
19#include <vector>
20
21namespace OpenMS
22{
23
37class OPENMS_DLLAPI PSMArrowIO
38{
39public:
55 static bool exportToParquet(
56 const std::vector<ProteinIdentification>& protein_identifications,
57 const PeptideIdentificationList& peptide_identifications,
58 const std::string& dir,
59 bool export_all_psms = true,
60 const ParquetWriteConfig& config = ParquetWriteConfig{});
61
74 static bool importFromParquet(
75 const std::string& dir,
76 std::vector<ProteinIdentification>& protein_identifications,
77 PeptideIdentificationList& peptide_identifications);
78};
79
80} // namespace OpenMS
Read and write OpenMS identification data as a parquet bundle (.idparquet).
Definition PSMArrowIO.h:38
static bool exportToParquet(const std::vector< ProteinIdentification > &protein_identifications, const PeptideIdentificationList &peptide_identifications, const std::string &dir, bool export_all_psms=true, const ParquetWriteConfig &config=ParquetWriteConfig{})
Export protein and peptide identifications to an idparquet directory bundle.
static bool importFromParquet(const std::string &dir, std::vector< ProteinIdentification > &protein_identifications, PeptideIdentificationList &peptide_identifications)
Import protein and peptide identifications from an idparquet directory bundle.
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Configuration for Parquet file writing.
Definition MSExperimentArrowExport.h:136