Skip to content

Commit

Permalink
Merge pull request #176 from compomics/fix/timsrescore-defaults-priority
Browse files Browse the repository at this point in the history
Fix bug in TIMS²Rescore configuration priority
  • Loading branch information
RalfG authored Aug 20, 2024
2 parents c6c77af + 68d061e commit 37fa41a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ms2rescore/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,12 @@ def main(tims=False):
cli_args = parser.parse_args()

configurations = []
if cli_args.config_file:
configurations.append(cli_args.config_file)
if tims:
configurations.append(
json.load(importlib.resources.open_text(package_data, "config_default_tims.json"))
)
if cli_args.config_file:
configurations.append(cli_args.config_file)
configurations.append(cli_args)

try:
Expand Down
4 changes: 2 additions & 2 deletions ms2rescore/report/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def generate_report(
Parameters
----------
output_path_prefix
Prefix of the MS²Rescore output file names. For example, if the PSM file is
``/path/to/file.psms.tsv``, the prefix is ``/path/to/file.ms2rescore``.
Prefix of the MS²Rescore output file names. For example, if the output PSM file is
``/path/to/file.ms2rescore.psms.tsv``, the prefix is ``/path/to/file.ms2rescore``.
psm_list
PSMs to be used for the report. If not provided, the PSMs will be read from the
PSM file that matches the ``output_path_prefix``.
Expand Down

0 comments on commit 37fa41a

Please sign in to comment.