Commit 5ac59ad
committed
fix: handle empty BedGraph/BED in make_bigwig_for_cleavage_sites
Guard bedGraphToBigWig calls with a non-empty file check to avoid the
'needLargeMem: trying to allocate 0 bytes' crash when a strand has no
cleavage-site coverage. Apply the same guard to the bedtools groupby
step in case cs.sorted.bed is also empty.
Made-with: Cursor1 parent fcc099a commit 5ac59ad
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
604 | | - | |
| 603 | + | |
| 604 | + | |
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
609 | 613 | | |
610 | 614 | | |
611 | 615 | | |
| |||
0 commit comments