BaseIOConfig

class pyprophet._base.BaseIOConfig(infile: str, outfile: str, subsample_ratio: float, level: str, context: str)[source]

Bases: object

Base configuration class for I/O-related metadata and common attributes used across algorithms.

infile

Path to the input file (e.g., .osw, .parquet).

Type:

str

outfile

Path to the output file to be written.

Type:

str

file_type

Type of the input file (e.g., ‘osw’, ‘parquet’, ‘parquet_split’, ‘tsv’).

Type:

str

subsample_ratio

Subsampling ratio for large data.

Type:

float

level

Scoring level (e.g., ‘ms1’, ‘ms2’, ‘transition’, ‘alignment’).

Type:

str

context

Context or mode in which the reader/writer operates (e.g., ‘score_learn’, ‘score_apply’, ‘ipf’, ‘level_context’).

Type:

str

prefix

Automatically derived from outfile (e.g., ‘results/output’ for ‘results/output.osw’).

Type:

str

__eq__(other)

Return self==value.

__hash__ = None
__init__(infile: str, outfile: str, subsample_ratio: float, level: str, context: str) None
__post_init__()[source]

Initialize the file_type and prefix attributes based on the input file.

__repr__()[source]

Return repr(self).

__str__()[source]

Return str(self).

__weakref__

list of weak references to the object (if defined)

copy()[source]

Return a deep copy of the config object.