Skip to content

Commit

Permalink
Merge pull request #446 from Proteobench/444-replace-mass-shifts-in-p…
Browse files Browse the repository at this point in the history
…eptide-proforma-strings-during-fragpipe-and-sage-parsing-with-modification-names

homogenise peptidoform strings in DDA result files
  • Loading branch information
RobbinBouwmeester authored Nov 22, 2024
2 parents 498fa27 + f4ec6cb commit 1e1710e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"before_aa" = false
"isalpha" = true
"isupper" = true
"pattern"="\\[([^]]+)\\]"
"pattern"="(?<=\\[).+?(?=\\])"
"modification_dict" = {"57.0215" = "Carbamidomethyl", "57.0216" = "Carbamidomethyl", "15.9949" = "Oxidation", "-17.026548" = "Gln->pyro-Glu", "-18.010565" = "Glu->pyro-Glu", "42.0106" = "Acetyl"}

[general]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"before_aa" = false
"isalpha" = true
"isupper" = true
"pattern"="\\[([^]]+)\\]"
"pattern"="(?<=\\[).+?(?=\\])"
"modification_dict" = {"+57.0215" = "Carbamidomethyl", "+15.9949" = "Oxidation", "-17.026548" = "Gln->pyro-Glu", "-18.010565" = "Glu->pyro-Glu", "+42" = "Acetyl"}

[general]
Expand Down
2 changes: 1 addition & 1 deletion proteobench/io/parsing/parse_ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def load_input_file(input_csv: str, input_format: str) -> pd.DataFrame:
if input_format == "MaxQuant":
input_data_frame = pd.read_csv(input_csv, sep="\t", low_memory=False)
elif input_format == "AlphaPept":
input_data_frame = pd.read_csv(input_csv, low_memory=False)
input_data_frame = pd.read_csv(input_csv, low_memory=False, dtype={"charge": int})
elif input_format == "Sage":
input_data_frame = pd.read_csv(input_csv, sep="\t", low_memory=False)
elif input_format == "FragPipe":
Expand Down

0 comments on commit 1e1710e

Please sign in to comment.