matchms.Pipeline module
- class matchms.Pipeline.Pipeline(workflow: OrderedDict, progress_bar: bool = True, logging_level: str = 'WARNING', logging_file: str | None = None)[source]
Bases:
objectCentral pipeline class.
The pipeline applies filters to one or two collections of spectra and then executes a sequence of similarity computations and mask steps.
Notes
If only
spectra_1is provided duringrun(), the pipeline assumes a symmetric all-vs-all computation and setsis_symmetric=True.If
spectra_2is also provided, the pipeline computesspectra_1vsspectra_2and setsis_symmetric=False.
- __init__(workflow: OrderedDict, progress_bar: bool = True, logging_level: str = 'WARNING', logging_file: str | None = None)[source]
- matchms.Pipeline.check_score_computation(score_computations: Sequence[str | list[dict]]) None[source]
Check if score computations are valid.
- matchms.Pipeline.create_workflow(yaml_file_name: str | None = None, spectra_1_filters: Iterable[str | Callable | tuple[Callable | str, dict[str, any]]] = (), spectra_2_filters: Iterable[str | Callable | tuple[Callable | str, dict[str, any]]] = (), score_computations: Iterable[str | list[str | dict]] = ()) OrderedDict[source]
Create a workflow specification for Pipeline.