OpenMS
Loading...
Searching...
No Matches
ConsensusMapArrowExport Class Reference

Export ConsensusMap feature data to Apache Arrow format following QPX feature schema. More...

#include <OpenMS/FORMAT/ConsensusMapArrowExport.h>

Static Public Member Functions

static std::shared_ptr< arrow::Table > exportToArrow (const ConsensusMap &cmap)
 Export ConsensusMap to Apache Arrow Table.
 
static bool exportToParquet (const ConsensusMap &cmap, const String &filename, const ParquetWriteConfig &config=ParquetWriteConfig{})
 Export ConsensusMap to Parquet file.
 

Detailed Description

Export ConsensusMap feature data to Apache Arrow format following QPX feature schema.

This class provides static methods to export ConsensusMap data to Apache Arrow Tables and Parquet files. The schema follows the QPX (Quantitative Proteomics Exchange) feature format.

Experimental classes:
This API is experimental and may change in future versions.

Member Function Documentation

◆ exportToArrow()

static std::shared_ptr< arrow::Table > exportToArrow ( const ConsensusMap cmap)
static

Export ConsensusMap to Apache Arrow Table.

Exports consensus features following the QPX feature schema. Each ConsensusFeature becomes one row with identification, quantification, and protein group information.

Parameters
[in]cmapThe ConsensusMap to export
Returns
Shared pointer to Arrow Table, or nullptr on error

◆ exportToParquet()

static bool exportToParquet ( const ConsensusMap cmap,
const String filename,
const ParquetWriteConfig config = ParquetWriteConfig{} 
)
static

Export ConsensusMap to Parquet file.

Parameters
[in]cmapThe ConsensusMap to export
[in]filenameOutput file path
[in]configParquet writing options
Returns
true on success, false on error