OpenMS
Loading...
Searching...
No Matches
OpenSwathOSWParquetWriter.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
15
16namespace OpenSwath
17{
18 struct LightTargetedExperiment;
19}
20
21namespace OpenMS
22{
23
52 class OPENMS_DLLAPI OpenSwathOSWParquetWriter
53 {
54 public:
71 void write(const std::string& output_path,
72 const OpenSwath::LightTargetedExperiment& assay_library,
73 const FeatureMap& feature_map,
74 UInt64 run_id,
75 const std::string& input_filename,
76 bool enable_uis_scoring) const;
77
92 void write(const std::string& output_path,
93 const OpenSwath::LightTargetedExperiment& assay_library,
94 const FeatureMap& feature_map,
95 UInt64 run_id,
96 const std::string& input_filename,
97 bool enable_uis_scoring,
98 const OpenSwathLibraryIDNormalizer::SourceIDMapping* source_ids) const;
99
105 void setPreserveExisting(bool preserve);
106 private:
107 // Mutable so the const write() method may consult this flag.
108 mutable bool preserve_existing_ = false;
109 };
110
111} // namespace OpenMS
A container for features.
Definition FeatureMap.h:78
Source-to-canonical precursor provenance captured during library loading.
Definition OpenSwathLibraryIDNormalizer.h:50
Definition OpenSwathOSWParquetWriter.h:53
void setPreserveExisting(bool preserve)
Set whether the writer should preserve (append) existing archives.
void write(const std::string &output_path, const OpenSwath::LightTargetedExperiment &assay_library, const FeatureMap &feature_map, UInt64 run_id, const std::string &input_filename, bool enable_uis_scoring, const OpenSwathLibraryIDNormalizer::SourceIDMapping *source_ids) const
Write an OSW parquet directory or zip archive while preserving source-ID provenance.
void write(const std::string &output_path, const OpenSwath::LightTargetedExperiment &assay_library, const FeatureMap &feature_map, UInt64 run_id, const std::string &input_filename, bool enable_uis_scoring) const
Write an OSW parquet directory or zip archive. Writes the assay library (precursors + transitions) an...
uint64_t UInt64
Unsigned integer type (64bit)
Definition Types.h:47
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition Scoring.h:18
Definition TransitionExperiment.h:369