Commit 6165b22
fix(score): score_annotated_junction helper uses replacement not addition
The helper at src/align/score.rs:137-143 had the same additive bug as
the stitch-time call site this PR fixes — adding sjdb_score to the
motif score rather than replacing it. Currently only called from its
own tests, but a landmine if any other caller picks it up.
Switch to replacement semantics matching the stitch path. Update the
tests that locked in the old (wrong) additive result.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e09748b commit 6165b22
1 file changed
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 129 | + | |
| 130 | + | |
138 | 131 | | |
139 | | - | |
| 132 | + | |
140 | 133 | | |
141 | | - | |
| 134 | + | |
142 | 135 | | |
143 | 136 | | |
144 | 137 | | |
| |||
959 | 952 | | |
960 | 953 | | |
961 | 954 | | |
962 | | - | |
963 | 955 | | |
964 | 956 | | |
965 | 957 | | |
966 | | - | |
967 | 958 | | |
968 | 959 | | |
969 | 960 | | |
970 | | - | |
971 | 961 | | |
972 | | - | |
| 962 | + | |
973 | 963 | | |
974 | 964 | | |
975 | 965 | | |
| |||
0 commit comments