Hi I was trying to convert begGraph into bigwig file. but got error like:
"End coordinate 121843858 bigger than chr11 size of 121843856 line 3239399 of ..."
the bedgraph was from MACS peak calling.
~/_MACS_bedGraph/treat/~_treat_afterfiting_all.bedGraph
I got the genome size file by:
fetchChromSizes mm9 > mm9.chrom.sizes
then I ran the command:
bedGraphToBigWig *_treat_afterfiting_all.sorted.bedGraph ~/Ref_sequence/Mus_musculus/mm9.chrom.sizes *.bw
but I always got error like:
"End coordinate 121843858 bigger than chr11 size of 121843856 line 3239399 of ..."
initially, I thought that I just did not sort the bedGraph file, so I sorted the file:
sort -k1,1 -k2,2n *.bedGraph > *. sorted.bedGraph
then I rerun the command, but got the same error.
Anyone has any idea what might go wrong? Thanks!
Are you sure your BedGraph was mm9?