IGV error: Error reading BBFile header for bw files
1
1
Entering edit mode
4.3 years ago

I met this error when I try to visualize bw files created by tool bedGraphToBigWig after sorting.The bedgraph files were generated by STAR. The error: "Error loading /Users/weiyanjia/W_T_1.bw: Error reading BBFile header for: /Users/weiyanjia/W_T_1.bw" I am using the lasted version of IGV(2.7.2) and MAC (catalina)

PS: I can load those files to IGV on the Ubuntu system. Any suggestions?

igv bw • 3.3k views
ADD COMMENT
0
Entering edit mode

What I always try when IGV does something odd is to upgrade IGV itself and the Java runtime to the current version. Please do that and try again. Since it works on Linux it is not the file itself but something system-related.

ADD REPLY
0
Entering edit mode

Thanks! I checked my JAVA version:

java -version java version "13.0.1" 2019-10-15 Java(TM) SE Runtime Environment (build 13.0.1+9) Java HotSpot(TM) 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

Still not working and not sure what's the problem.

IGV on Mac still can open bw files generated by deeptools but not by tool bedGraphToBigWig.

ADD REPLY
1
Entering edit mode
4.0 years ago
bhanratt ▴ 50

I had this same problem. I would suggest you inspect your bedGraph files you are converting. In my case it ended up being that I accidentally had some of my positions in scientific notation.

cat  foo.bedGraph | grep e
chr19   16435499        16435500        7.58803689331006e-05  
chr20   8e+06   8000001 0.0781845644824858

I traced this back to output from R where I wrote the bedGraph files. Adding the following line to my R script corrected the problem.
options(scipen=999)

ADD COMMENT

Login before adding your answer.

Traffic: 2013 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6