Skip to content

Commit

Permalink
Merge pull request #153 from wilhelm-lab/feature/sage
Browse files Browse the repository at this point in the history
added sage to supported search engines
  • Loading branch information
picciama authored Nov 11, 2023
2 parents 9aa8e31 + 3736e9c commit 4436cef
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 223 deletions.
2 changes: 1 addition & 1 deletion docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Required for CE calibration and rescoring
+----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| search_results | Path to directory or file containing the search results |
+----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| search_results_type | Format description for search results; can be "Maxquant", "Msfragger", "Mascot" or "`Internal <./internal_format.html>`_"; default = "Maxquant" |
| search_results_type | Format description for search results; can be "Maxquant", "Msfragger", "Mascot", "Sage" or "`Internal <./internal_format.html>`_"; default = "Maxquant" |
+----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| spectra | Path to directory or file containing mass spectrometry results |
+----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Expand Down
4 changes: 3 additions & 1 deletion oktoberfest/preprocessing/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from spectrum_fundamentals.mod_string import internal_without_mods, maxquant_to_internal
from spectrum_io.file import csv
from spectrum_io.raw import ThermoRaw
from spectrum_io.search_result import Mascot, MaxQuant, MSFragger
from spectrum_io.search_result import Mascot, MaxQuant, MSFragger, Sage
from spectrum_io.spectral_library import digest as digest_io

from ..data.spectra import FragmentType, Spectra
Expand Down Expand Up @@ -227,6 +227,8 @@ def convert_search(
search_result = MSFragger
elif search_engine == "mascot":
search_result = Mascot
elif search_engine == "sage":
search_result = Sage
else:
raise ValueError(f"Unknown search engine provided: {search_engine}")

Expand Down
Loading

0 comments on commit 4436cef

Please sign in to comment.