proteobench.io.params.metamorpheus module#
Extract parameters from a MetaMorpheus TOML file and convert them to a pandas Series.
- proteobench.io.params.metamorpheus.extract_params(file_path_1, file_path_2, json_file='/home/docs/checkouts/readthedocs.org/user_builds/proteobench/envs/v0.16.4/lib/python3.11/site-packages/proteobench/io/params/json/Quant/quant_lfq_DDA_ion.json') ProteoBenchParameters[source]#
- proteobench.io.params.metamorpheus.format_tolerances(tolerance: str) str[source]#
Format mass tolerance values from a string to a standardized format.
- proteobench.io.params.metamorpheus.get_incomplete_upload_warning(files: list) str[source]#
Return a user-facing warning string when fewer than two MetaMorpheus files are uploaded.
- proteobench.io.params.metamorpheus.identify_file_type(file: str | IO) str[source]#
Identify whether a single MetaMorpheus file is the TOML settings file or the version text file.
- proteobench.io.params.metamorpheus.load_files(file1: str | IO, file2: str | IO) Tuple[str | None, dict | None][source]#
Load two files (IO objects or file paths), returning: - The first line from a plain text file as the version string - A dictionary parsed from a TOML file