From 2de3aa3ebaad20d546686e86b568d61d5ed9b37a Mon Sep 17 00:00:00 2001 From: RobbinBouwmeester Date: Tue, 19 Sep 2023 16:41:29 +0200 Subject: [PATCH] Update feat_extractor.py --- deeplc/feat_extractor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deeplc/feat_extractor.py b/deeplc/feat_extractor.py index 6c9eb4f..0178b29 100644 --- a/deeplc/feat_extractor.py +++ b/deeplc/feat_extractor.py @@ -492,7 +492,7 @@ def rolling_sum(a, n=2): matrix_hc[i, dict_aa[peptide_position[0]]] = 1. except KeyError: logger.warning( - "Skipping the following (not in library): ", peptide_position[1]) + f"Skipping the following (not in library): {i} {peptide_position}") except IndexError: # Likely to be a sequence > 60 AA logger.warning(f"Could not add the following atom: {i} {peptide_position}") @@ -502,7 +502,7 @@ def rolling_sum(a, n=2): modification_composition = peptide_position[1][0].composition except KeyError: logger.warning( - "Skipping the following (not in library): ", peptide_position[1]) + f"Skipping the following (not in library): {peptide_position[1]}") continue for atom_position_composition,atom_change in modification_composition.items():