SplitParquetWriter

class pyprophet.io.scoring.split_parquet.SplitParquetWriter(config: RunnerIOConfig)[source]

Bases: BaseSplitParquetWriter

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.

__init__(config: RunnerIOConfig)[source]

Initialize the writer with a given configuration.

Parameters:

config (BaseIOConfig) – Configuration object containing output details.

save_results(result, pi0)[source]

Save the results of scoring to parquet files based on the specified level.

Parameters: - result: The result object containing scored tables. - pi0: The pi0 value used in scoring.