proteobench.io.parsing.utils module#
Utilities for parsing modifications.
- proteobench.io.parsing.utils.add_fixed_mod(proforma: str, mod_name: str, aas: str) str[source]#
Add a single fixed modification to a peptide in ProForma format.
- proteobench.io.parsing.utils.add_maxquant_fixed_modifications(params: ProteoBenchParameters, result_perf: DataFrame) DataFrame[source]#
Format MaxQuant modifications.
- Parameters:
params (ProteoBenchParameters) – ProteoBenchParameters object from MaxQuant results. Contains modifications in fixed_mods attribute.
result_perf (pd.DataFrame) – The benchmarking results.
- Returns:
Results of benchmarking with parsed modifications.
- Return type:
pd.DataFrame
Notes
params.fixed_modsuses ProForma-like notation ("C[Carbamidomethyl]", comma-separated). Empty values (no fixed modifications), terminal modifications (e.g."Protein N-term[Acetyl]"), and unrecognised tokens are skipped rather than raised, so a submission is never blocked by modification formatting.