bedtools genomecov -bg -strand + -ibam -g -scale | awk '{print $1"\t"$2"\t"$3"\t-"$4}' > .minus.bedGraph bedtools genomecov -bg -strand - -ibam -g -scale > .plus.bedGraph bedGraphToBigWig .plus.bedGraph ${file1%%.bam}.plus.bigWig bedGraphToBigWig .minus.bedGraph ${file1%%.bam}.minus.bigWig scaling.brennecke.ctrl=1000000/3783827 == 0.2642827 scaling.brennecke.mutant=1000000/4529718 == 0.2207643