ProteinIdentificationArrowIO#

class pyopenms.ProteinIdentificationArrowIO#

Bases: object

Import and export ProteinIdentification data to/from Apache Arrow/Parquet format

__init__() → None#

Methods

__init__()

exportProteinGroupsToParquet(...)

Export protein groups to Parquet file.

exportProteinsToParquet(...)

Export protein hits to Parquet file.

exportSearchParamsToParquet(...)

Export search parameters to Parquet file; definitions_by_run maps a run identifier to its modification_definitions value.

importFromParquet(proteins_filename, ...)

Import all three Parquet files and return reconstructed ProteinIdentifications

importProteinGroupsFromParquet(filename, ...)

Import protein groups from Parquet file into existing ProteinIdentifications.

importProteinsFromParquet(filename, ...)

Import protein hits from Parquet file into existing ProteinIdentifications.

importSearchParamsFromParquet(filename)

Import search parameters from Parquet file.

static exportProteinGroupsToParquet(protein_identifications: collections.abc.Sequence[pyopenms.ProteinIdentification], filename: str, config: pyopenms.ParquetWriteConfig = <pyopenms.ParquetWriteConfig object at 0x7d859a1ad770>) → bool#

Export protein groups to Parquet file. Returns True on success

static exportProteinsToParquet(protein_identifications: collections.abc.Sequence[pyopenms.ProteinIdentification], filename: str, config: pyopenms.ParquetWriteConfig = <pyopenms.ParquetWriteConfig object at 0x7d859a1ad6b0>) → bool#

Export protein hits to Parquet file. Returns True on success

static exportSearchParamsToParquet(protein_identifications: collections.abc.Sequence[pyopenms.ProteinIdentification], filename: str, config: pyopenms.ParquetWriteConfig = <pyopenms.ParquetWriteConfig object at 0x7d859a1ad7d0>, definitions_by_run: dict[str, str] = {}) → bool#

Export search parameters to Parquet file; definitions_by_run maps a run identifier to its modification_definitions value. Returns True on success

static importFromParquet(proteins_filename: str, protein_groups_filename: str, search_params_filename: str) → list[pyopenms.ProteinIdentification]#

Import all three Parquet files and return reconstructed ProteinIdentifications

static importProteinGroupsFromParquet(filename: str, protein_identifications: collections.abc.Sequence[pyopenms.ProteinIdentification]) → list[pyopenms.ProteinIdentification]#

Import protein groups from Parquet file into existing ProteinIdentifications. Returns updated list

static importProteinsFromParquet(filename: str, protein_identifications: collections.abc.Sequence[pyopenms.ProteinIdentification]) → list[pyopenms.ProteinIdentification]#

Import protein hits from Parquet file into existing ProteinIdentifications. Returns updated list

static importSearchParamsFromParquet(filename: str) → list[pyopenms.ProteinIdentification]#

Import search parameters from Parquet file. Returns list of ProteinIdentifications