From 0c61918e90c0fc77b00e9525e0857c1fb3ef9802 Mon Sep 17 00:00:00 2001 From: Micha Birklbauer Date: Mon, 8 Jan 2024 13:37:03 +0100 Subject: [PATCH 1/2] fix string insert function --- create_spectral_library.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/create_spectral_library.py b/create_spectral_library.py index 3f7de19..f84163a 100644 --- a/create_spectral_library.py +++ b/create_spectral_library.py @@ -6,8 +6,8 @@ # micha.birklbauer@gmail.com # version tracking -__version = "1.1.1" -__date = "2023-12-06" +__version = "1.1.2" +__date = "2024-01-08" # REQUIREMENTS # pip install pandas @@ -401,7 +401,7 @@ def parse_mod_str(peptide, mod_str, crosslinker): # helper function to insert string into string def str_insert(string, index, character): - return string[:index] + character + string[:index] + return string[:index] + character + string[index:] # end function mods_A = parse_mod_str(str(row["Sequence A"]), str(row["Modifications A"]), crosslinker) From d27fc460df49e81090b261c17f234a30a83b3839 Mon Sep 17 00:00:00 2001 From: Micha Birklbauer Date: Mon, 8 Jan 2024 14:34:55 +0100 Subject: [PATCH 2/2] bump version number --- create_spectral_library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_spectral_library.py b/create_spectral_library.py index f84163a..22f6a03 100644 --- a/create_spectral_library.py +++ b/create_spectral_library.py @@ -6,7 +6,7 @@ # micha.birklbauer@gmail.com # version tracking -__version = "1.1.2" +__version = "1.1.3" __date = "2024-01-08" # REQUIREMENTS