From 79fe780e640aad3f64221718e55ca8679d76498f Mon Sep 17 00:00:00 2001 From: rodvrees Date: Tue, 12 May 2026 17:24:12 +0200 Subject: [PATCH] generalize whitespace splitting modification column fragpipe --- psm_utils/io/fragpipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psm_utils/io/fragpipe.py b/psm_utils/io/fragpipe.py index a3c5e60..3626d97 100644 --- a/psm_utils/io/fragpipe.py +++ b/psm_utils/io/fragpipe.py @@ -119,7 +119,7 @@ def _parse_peptidoform(peptide: str, modifications: str, charge: str | None) -> if not modifications: return to_proforma(sequence, n_term=n_term, c_term=c_term, charge_state=charge) - for mod_entry in modifications.split(", "): + for mod_entry in (e.strip() for e in modifications.split(",")): if not mod_entry: continue