Skip to content

Commit

Permalink
Add proper protein ids to percolator
Browse files Browse the repository at this point in the history
  • Loading branch information
WassimG committed Oct 10, 2024
1 parent 878a94c commit d2af5b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spectrum_fundamentals/metrics/percolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,7 @@ def add_percolator_metadata_columns(self):
else:
spec_id_cols = ["RAW_FILE", "SCAN_NUMBER", "MODIFIED_SEQUENCE", "PRECURSOR_CHARGE"]
self.metrics_val["Peptide"] = self.metadata["MODIFIED_SEQUENCE"].apply(lambda x: "_." + x + "._")
self.metrics_val["Proteins"] = self.metadata[
"MODIFIED_SEQUENCE"
] # we don't need the protein ID to get PSM / peptide results, fill with peptide sequence
self.metrics_val["Proteins"] = self.metadata["PROTEINS"]

if "SCAN_EVENT_NUMBER" in self.metadata.columns:
spec_id_cols.append("SCAN_EVENT_NUMBER")
Expand Down

0 comments on commit d2af5b7

Please sign in to comment.