Commit 89f6c34
fix(map): wire num_dovetail_fragments (was always 0)
Rust drops dovetailed concordant pairs in join_reads_and_filter (default
no-dovetail policy), matching C++, but never reported the count: the mapper's
dovetail check only inspected *surviving* PairedEndPaired joints, which are never
dovetailed (pairing already filtered them), so num_dovetail_fragments stayed 0
while C++ reported the diagnostic.
Set a thread-local when join_reads_and_filter rejects an otherwise-valid
(opposite-strand, in-range fragment length) pair solely for dovetailing, and
count the fragment when that happened AND no concordant pair survived for any
target — i.e. its only concordant pairing was a dovetail (salmon's definition).
Reporting only; no change to mapping behavior (mapped rate identical). On
SRR1039508 (3M subset) Rust now reports 15,164 dovetail fragments (C++ 22,765;
same order, differing by the tools' internal dovetail accounting + seeding).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B7JMur5DmDpECddErpi2JS1 parent 2bccea8 commit 89f6c34
2 files changed
Lines changed: 31 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
196 | 206 | | |
197 | | - | |
198 | 207 | | |
199 | 208 | | |
200 | 209 | | |
201 | 210 | | |
202 | 211 | | |
203 | 212 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
164 | 181 | | |
165 | 182 | | |
166 | 183 | | |
| |||
201 | 218 | | |
202 | 219 | | |
203 | 220 | | |
| 221 | + | |
204 | 222 | | |
205 | 223 | | |
206 | 224 | | |
| |||
248 | 266 | | |
249 | 267 | | |
250 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
251 | 272 | | |
252 | 273 | | |
253 | 274 | | |
| |||
0 commit comments