Commit a1477b8
Fix infinite loop when contig is shorter than read_len
When read_len exceeds a contig's length, cover_dataset enters an infinite
loop because no fragment ever satisfies the length check on line 78, so
read_count never increments. Add an early-return guard in generate_reads
that skips the contig with a WARNING log instead of hanging.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2d28f67 commit a1477b8
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| |||
0 commit comments