Skip to content

Commit

Permalink
NTAW-608: Fix bug with quotient scores of 1 being empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Chao authored and alexchao32 committed Nov 5, 2024
1 parent e5e08b6 commit 94ae2ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/merge/merge_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ def process_MS2_data(ms1_data, ms2_data_list, mass_accuracy=10, rt_accuracy=0.2)
[np.nan, np.nan, np.nan, np.nan, np.nan],
)

# NTAW-608: Quotient scores of 1 are showing up as empty cell. As a quick fix, fill in empty quotient cells with 1 (where the percentile cell has a value)
matched_df.loc[matched_df[percentile_col].notna(), q_score_col] = 1

# # NTAW-607: Round MS2 retention time, cfmid score columns to two decimal places
# matched_df[f"RT_{filename}"] = matched_df[f"RT_{filename}"].round(2)
# matched_df[score_col] = matched_df[score_col].round(2)
Expand Down

0 comments on commit 94ae2ca

Please sign in to comment.