Hello everyone,
I am trying to merge my bedtools genomecov
output using the bedtools merge
option. I am using this data :
Chromosome_1 0 54 0
Chromosome_1 54 204 3
Chromosome_1 204 410 0
Chromosome_1 410 476 2
Chromosome_1 476 502 4 ....
I used the following command to run:
' bedtools merge' -i input.sorted.bam -c 4 -o mean > output. coverage
Here is the output:
Chromosome_1 0 7841240 48.9278333
Chromosome_10 0 9941773 17.7389834
I am expecting to get:
Chromosome_1 0 7841240 48.9278333
Chromosome_2 7841240 x 23.9494951
Can anyone please suggest a way to do it?
TIA!