Skip to content

Commit

Permalink
change name of library file to "predicted_library"
Browse files Browse the repository at this point in the history
  • Loading branch information
picciama committed Jul 18, 2024
1 parent 922be6c commit 3af36b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/outputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ Files in the results directory
+=======================================+==============================================================================================================================================================================================+
| <spectra_file>_ce.txt | Contains the best collision energy according to the collision energy calibration where <spectra_file> is replaced with the name of the spectra file for which the calibration was performed |
+---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| myPrositLib.<csv|msp> | Contains the spectral library in either csv or msp format depending on what format was chosen |
| predicted_library.<csv|msp|dlib> | Contains the spectral library in either spectronaut, msp, or dlib format depending on what format was chosen in the configuration file |
+---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| prosit_input.csv | Contains the peptide list including metadata needed for spectral library generation when providing a fasta file for in-silico digestion |
| peptides_internal.csv | Contains the peptide list including metadata needed for spectral library generation when providing a fasta file for in-silico digestion or a peptides list |
+---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+


Expand Down
7 changes: 4 additions & 3 deletions oktoberfest/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,13 @@ def _speclib_from_digestion(config: Config) -> Spectra:


def _get_writer_and_output(results_path: Path, output_format: str) -> Tuple[Type[SpectralLibrary], Path]:
libfile_prefix = "predicted_library"
if output_format == "msp":
return MSP, results_path / "myPrositLib.msp"
return MSP, results_path / f"{libfile_prefix}.msp"
elif output_format == "spectronaut":
return Spectronaut, results_path / "myPrositLib.csv"
return Spectronaut, results_path / f"{libfile_prefix}.csv"
elif output_format == "dlib":
return DLib, results_path / "myPrositLib.dlib"
return DLib, results_path / f"{libfile_prefix}.dlib"
else:
raise ValueError(f"{output_format} is not supported as spectral library type")

Expand Down

0 comments on commit 3af36b1

Please sign in to comment.