Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bedgraph to bigwig to bedgraph not working properly #8

Open
jamigo opened this issue Jan 20, 2025 · 0 comments
Open

bedgraph to bigwig to bedgraph not working properly #8

jamigo opened this issue Jan 20, 2025 · 0 comments

Comments

@jamigo
Copy link

jamigo commented Jan 20, 2025

I've always wanted to use this executable instead of Kent's bedGraphToBigWig for several reasons, but probably the main one would be to avoid uncompressing the bedgraph file, which is a major limitation when dealing with big bam/cram files. Unfortunately, I've never been completely able to integrate it in our pipelines since the bigwig files generated sometimes didn't work when loading them in IGV.

I've just decided to have a deep look at it, and I've found a strange behaviour that I've traced down to this little example which you can replicate yourself:

$ cat test.bg
chr1    11259707        11259782        1
chr1    11259782        11259857        0
chr1    11259857        11259933        1
chr1    11259933        11260908        0

$ bigwig view -c hg38.fa.fai -O bigwig -o test.bw test.bg

$ bigwig view test.bw
chr1    11259707        11259782        1
chr1    11259782        11259857        0
chr1    11259857        11259932        1
chr1    11259932        11260007        1
chr1    11259933        11260908        0

As you can see, line
chr1 11259857 11259933 1
gets reduced to
chr1 11259857 11259932 1
and a new erroneous line
chr1 11259932 11260007 1
appears.

Do you have any idea why this could be happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant