Skip to content

Commit 5bc2b9e

Browse files
cursoragentedmundmiller
authored andcommitted
fix: Use --bga in bedtools genomecov for more comprehensive coverage output
1 parent aa983f0 commit 5bc2b9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/local/bedtools_genomecov.nf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ process BEDTOOLS_GENOMECOV {
2626
SCALE_FACTOR=\$(grep '[0-9] mapped (' $flagstat | awk '{print 1000000/\$1}')
2727
echo \$SCALE_FACTOR > ${prefix}.scale_factor.txt
2828
29+
# Use --bga instead of -bg to include zero-coverage bins in output
30+
# This results in lower background levels and better visualization in IGV
31+
# Users can override this by specifying -bg in ext.args if needed
2932
bedtools \\
3033
genomecov \\
3134
-ibam $bam \\
32-
-bg \\
35+
--bga \\
3336
-scale \$SCALE_FACTOR \\
3437
$pe \\
3538
$args \\

0 commit comments

Comments
 (0)