Skip to content

Commit

Permalink
update: example
Browse files Browse the repository at this point in the history
  • Loading branch information
zprobot committed Nov 11, 2024
1 parent fd6842d commit c11734d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Binary file modified docs/include/example.psm.parquet
Binary file not shown.
3 changes: 3 additions & 0 deletions docs/score_map_msg.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type field desc map accession
maxquant Score Andromeda:score andromeda_score MS:1002338
maxquant Delta score Andromeda: delta score andromeda_delta_score MS:1003433
4 changes: 2 additions & 2 deletions quantmsio/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"Modified sequence": "peptidoform",
"Raw file": "reference_file_name",
"Score": "andromeda_score",
"Delta score": "delta_score",
"Delta score": "andromeda_delta_score",
"PIF": "parent_ion_score"
}

Expand All @@ -91,7 +91,7 @@
"Modified sequence": "peptidoform",
"Raw file": "reference_file_name",
"Score": "andromeda_score",
"Delta score": "delta_score",
"Delta score": "andromeda_delta_score",
"PIF": "parent_ion_score",
"Reverse": "is_decoy",
"m/z": "observed_mz",
Expand Down
4 changes: 2 additions & 2 deletions quantmsio/core/maxquant.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@ def main_operate(self, df: pd.DataFrame):
self.generate_modification_details(df)
df = df[df["posterior_error_probability"] < 0.05].copy()
df["is_decoy"] = df["is_decoy"].map({None: "0", np.nan: "0", "+": "1"})
df["additional_scores"] = df[["andromeda_score", "delta_score"]].apply(
df["additional_scores"] = df[["andromeda_score", "andromeda_delta_score"]].apply(
lambda row: [
{"score_name": "andromeda_score", "score_value": row["andromeda_score"]},
{"score_name": "delta_score", "score_value": row["delta_score"]},
{"score_name": "andromeda_delta_score", "score_value": row["andromeda_delta_score"]},
],
axis=1
)
Expand Down

0 comments on commit c11734d

Please sign in to comment.