Dear all,
I would like to convert sorted and indexed bam file (~20GB) to an bedgraph file and used the following command:
bedtools genomecov -bg -split -strand - -ibam sorted.bam
It's been 3 days since I executed the command, still I couldn't get any result.
Here is the initial part of the bam file:
A00661:64:H5:1:2179:14687:29434 355 chr1    3206713 255 50M =   3206856 192 ATTCCAATATAAGATGCACACACCTGAGAATCTGAATCTCACTCTGTCCC FFFFFFFFF:FF,:F:FF:FF:F:FFFFF::FFF:,FFF:FF:FF::F,F   ZW:f:0.481137
A00661:64:H5:1:1466:24316:29418 355 chr1    3206713 255 50M =   3206856 192 ATTCCAATATAAGATGCACACACCTGAGAATCTGAATCTCACTCTGTCCC FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF   ZW:f:0.481137
A00661:64:H5:1:1276:8196:6637   355 chr1    3206713 255 50M =   3206856 192 ATTCCAATATAAGATGCACACACCTGAGAATCTGAATCTCACTCTGTCCC FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:FFFFFFFFFFFFFFF   ZW:f:0.481137
Any idea what could be the reason of taking so long? I would appreciate any input about it. Thanks!
try
-strand "-"instead of-strand -?