BaseSplitParquetWriter

class pyprophet.io._base.BaseSplitParquetWriter(config: BaseIOConfig)[source]

Bases: BaseParquetWriter

Class for writing OpenSWATH results to a directory containing split Parquet files.

infile

Input file path.

Type:

str

outfile

Output file path.

Type:

str

classifier

Classifier used for semi-supervised learning.

Type:

str

level

Level used in semi-supervised learning (e.g., ‘ms1’, ‘ms2’, ‘ms1ms2’, ‘transition’, ‘alignment’), or context level used peptide/protein/gene inference (e.g., ‘global’, ‘experiment-wide’, ‘run-specific’).

Type:

str

glyco

Flag indicating whether analysis is glycoform-specific.

Type:

bool

save_results(result, pi0)[source]

Save the results to the output file based on the module using this class.

save_weights(weights)

Save the weights to the output file.

__eq__(other)

Return self==value.

__hash__ = None
__init__(config: BaseIOConfig)[source]

Initialize the writer with a given configuration.

Parameters:

config (BaseIOConfig) – Configuration object containing output details.

__repr__()

Return repr(self).

merge_files(merge_transitions: bool = False)[source]

Merges the precursors_features.parquet and transition_features.parquet files from all subdirectories into one single file each.

save_results(result, pi0=None)[source]

Abstract method to be implemented by subclasses to save scoring results and statistical outputs.