Skip to content

Commit

Permalink
Add psm_reader_kwargs option to config
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Sep 14, 2023
1 parent 13e210c commit 20fd311
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/config_schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- *string*
- *null*
- **`psm_file_type`** *(string)*: PSM file type. By default inferred from file extension. Default: `"infer"`.
- **`psm_reader_kwargs`** *(object)*: Keyword arguments passed to the PSM reader. Default: `{}`.
- **`spectrum_path`**: Path to spectrum file or directory with spectrum files.
- **One of**
- *string*
Expand Down
1 change: 1 addition & 0 deletions ms2rescore/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def rescore(configuration: Dict, psm_list: PSMList = None) -> None:
config["psm_file"],
filetype=config["psm_file_type"],
show_progressbar=True,
**config["psm_reader_kwargs"],
)

logger.debug("Finding decoys...")
Expand Down
5 changes: 5 additions & 0 deletions ms2rescore/package_data/config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
"type": "string",
"default": "infer"
},
"psm_reader_kwargs": {
"description": "Keyword arguments passed to the PSM reader.",
"type": "object",
"default": {}
},
"spectrum_path": {
"description": "Path to spectrum file or directory with spectrum files",
"oneOf": [{ "type": "string" }, { "type": "null" }]
Expand Down

0 comments on commit 20fd311

Please sign in to comment.