Skip to content

Commit

Permalink
Final tweaks for flashlfq move: update msgfplus example; remove run "…
Browse files Browse the repository at this point in the history
…na" setting for mokapot flashlfq
  • Loading branch information
RalfG committed Sep 5, 2024
1 parent 205a9ee commit 2fc9552
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
3 changes: 0 additions & 3 deletions examples/msgfplus-ms2rescore.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
},
"log_level": "debug",
"processes": 16,
"feature_generators": {
"basic": {}
},
"rescoring_engine": {
"mokapot": {
"fasta_file": "examples/proteins/uniprot-proteome-human-contaminants.fasta",
Expand Down
18 changes: 0 additions & 18 deletions examples/msgfplus-ms2rescore.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,7 @@ psm_reader_kwargs = { "score_column" = "PSMScore" }
log_level = "debug"
processes = 16

# [ms2rescore.modification_mapping]

# [ms2rescore.fixed_modifications]

[ms2rescore.feature_generators.basic]
# No options, but setting heading enables feature generator

# [ms2rescore.feature_generators.ms2pip]
# model = "HCD"
# ms2_tolerance = 0.02

# [ms2rescore.feature_generators.deeplc]
# deeplc_retrain = false

# [ms2rescore.feature_generators.maxquant]
# No options, but setting heading enables feature generator

[ms2rescore.rescoring_engine.mokapot]
fasta_file = "examples/proteins/uniprot-proteome-human-contaminants.fasta"
write_weights = true
write_txt = true
# write_flashlfq = true
8 changes: 2 additions & 6 deletions ms2rescore/rescoring_engines/mokapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def rescore(
if "write_flashlfq" in kwargs:
_ = kwargs.pop("write_flashlfq")
logger.warning(
"The Mokapot `write_flashlfq` argument has been deprecated. To write FlashLFQ generic "
"TSV, use the MS²Rescore-level `write_flashlfq` option instead."
"The `write_flashlfq` argument has moved. To write FlashLFQ generic TSV, use the "
"MS²Rescore-level `write_flashlfq` option instead."
)

# Convert PSMList to Mokapot dataset
Expand Down Expand Up @@ -166,10 +166,6 @@ 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"] = "na"

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 2fc9552

Please sign in to comment.