Skip to content

Commit

Permalink
fix wrong tolerance window reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocardpaulet committed Jan 22, 2025
1 parent 993a817 commit c7d633d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proteobench/io/params/msangel.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def extract_params_mascot_specific(search_params: list, input_params: ProteoBenc
tol = float(tol)
print(tol)
input_params.precursor_mass_tolerance = (
"[-" + str(tol / 2) + " " + unit + ", +" + str(tol / 2) + " " + unit + "]"
"[-" + str(tol) + " " + unit + ", +" + str(tol) + " " + unit + "]"
)

if "validationConfig" in each_search_params:
Expand Down Expand Up @@ -99,7 +99,7 @@ def extract_params_xtandem_specific(search_params: list, input_params: ProteoBen
unit = each_search_params["searchEnginesWithForms"][0][1]["paramMap"]["precursorAccuracyType"]
tol = float(tol)
input_params.precursor_mass_tolerance = (
"[-" + str(tol / 2) + " " + unit + ", +" + str(tol / 2) + " " + unit + "]"
"[-" + str(tol) + " " + unit + ", +" + str(tol) + " " + unit + "]"
)

# Add "hidden" modifications when using X!Tandem:
Expand Down

0 comments on commit c7d633d

Please sign in to comment.