Skip to content

Commit

Permalink
mokapot: Fix writing of FlashLFQ output when PSMList run field is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Apr 7, 2024
1 parent c5677a3 commit ed6423b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ms2rescore/rescoring_engines/mokapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ def convert_psm_list(
feature_df.columns = [f"feature:{f}" for f in feature_df.columns]
combined_df = pd.concat([psm_df[required_columns], feature_df], axis=1)

# Ensure filename for FlashLFQ txt output
if not combined_df["run"].notnull().all():
combined_df["run"] = "ms_run"

feature_names = [f"feature:{f}" for f in feature_names] if feature_names else None

lin_psm_data = LinearPsmDataset(
Expand Down

0 comments on commit ed6423b

Please sign in to comment.