From 51643214dd4dbf1badafc47b7307eae80bdbc88b Mon Sep 17 00:00:00 2001 From: Micha Birklbauer Date: Wed, 19 Jun 2024 13:05:03 +0200 Subject: [PATCH] cast to str --- msannika_fdr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msannika_fdr.py b/msannika_fdr.py index 8e6c43d..474c609 100644 --- a/msannika_fdr.py +++ b/msannika_fdr.py @@ -6,7 +6,7 @@ # micha.birklbauer@gmail.com # version tracking -__version = "1.1.2" +__version = "1.1.3" __date = "2024-06-19" # REQUIREMENTS @@ -66,7 +66,7 @@ def get_xl_position_in_protein(row: pd.Series, alpha: bool) -> int: positions = [int(pos) + int(row["Crosslinker Position A"]) for pos in str(row["A in protein"]).split(";")] else: positions = [int(pos) + int(row["Crosslinker Position B"]) for pos in str(row["B in protein"]).split(";")] - return ";".join(positions) + return ";".join([str(pos) for pos in positions]) @staticmethod def get_best_csm_score(csms: List[pd.Series]) -> float: