diff --git a/ms2pip/core.py b/ms2pip/core.py index d363b17..3ea1bd0 100644 --- a/ms2pip/core.py +++ b/ms2pip/core.py @@ -160,8 +160,8 @@ def predict_library( """ if fasta_file and config: # Use provided proteome, but overwrite fasta_file - config["fasta_file"] = fasta_file config = ProteomeSearchSpace.from_any(config) + config.fasta_file = fasta_file elif fasta_file and not config: # Default proteome search space with provided fasta_file config = ProteomeSearchSpace(fasta_file=fasta_file)