Commit 469ad0d
fix: Add robust error handling for flagstat parsing in bedtools genomecov
- Handle cases where flagstat files don't match expected regex patterns
- Try multiple flagstat format patterns for compatibility
- Fall back to default scale factor with warning for stub tests
- Prevent index out of range errors during scale factor calculation
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 0d021da commit 469ad0d
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
25 | 39 | | |
26 | 40 | | |
27 | 41 | | |
| |||
0 commit comments