Skip to content

Commit 76965a9

Browse files
fix(qc): only include weighted threshold score when enabled
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 683bd71 commit 76965a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nextclade/src/qc/qc_rule_recombinants.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ pub fn rule_recombinants(
139139

140140
let ls_strategy_score = label_switching.as_ref().map_or(0.0, |ls| ls.score);
141141

142-
let overall_score = (wt_strategy_score + ls_strategy_score) * *config.score_weight;
142+
let wt_score_contribution = if wt_config.enabled { wt_strategy_score } else { 0.0 };
143+
let overall_score = (wt_score_contribution + ls_strategy_score) * *config.score_weight;
143144
let status = QcStatus::from_score(overall_score);
144145

145146
Some(QcResultRecombinants {

0 commit comments

Comments
 (0)