From c3c7da86007e468c69adea0f9ad13c09112a8b5a Mon Sep 17 00:00:00 2001 From: thegrebe Date: Fri, 16 Oct 2026 11:32:54 +0200 Subject: [PATCH] fix: augustus-hiq weights can be user-provided --- funannotate2/predict.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/funannotate2/predict.py b/funannotate2/predict.py index fd1ca64..68beb65 100755 --- a/funannotate2/predict.py +++ b/funannotate2/predict.py @@ -1676,12 +1676,15 @@ def calculate_weights(scores, cli_weights): weights[k] = 2 else: weights[k] = 1 - # add hiq augustus - weights["augustus-hiq"] = weights["augustus"] + 2 + # add any other usr_weights for k, v in usr_weights.items(): if k not in weights: weights[k] = v + + # add hiq augustus. Already present iff user-supplied. + if "augustus-hiq" not in weights: + weights["augustus-hiq"] = weights["augustus"] + 2 # now we want a list with tool:weight annotations weight_list = [] for k, v in weights.items():