Skip to content

Commit 1ad181b

Browse files
committed
predict-library: Allow fasta file to be missing from config file if provided in CLI
1 parent a335bf2 commit 1ad181b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ms2pip/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ def predict_library(
160160
"""
161161
if fasta_file and config:
162162
# Use provided proteome, but overwrite fasta_file
163+
config["fasta_file"] = fasta_file
163164
config = ProteomeSearchSpace.from_any(config)
164-
config.fasta_file = fasta_file
165165
elif fasta_file and not config:
166166
# Default proteome search space with provided fasta_file
167167
config = ProteomeSearchSpace(fasta_file=fasta_file)
@@ -177,7 +177,7 @@ def predict_library(
177177
for batch in track(
178178
_into_batches(search_space, batch_size=batch_size),
179179
description="Predicting spectra...",
180-
total = ceil(len(search_space) / batch_size),
180+
total=ceil(len(search_space) / batch_size),
181181
):
182182
logging.disable(logging.CRITICAL)
183183
yield predict_batch(

0 commit comments

Comments
 (0)