Open potulabe opened 1 week ago
Sending an example bigwig could be useful. The dictionary order in python isn't always guaranteed, depending on the version of python you're using.
Thank you for answering! I understand that dictionary order is not guaranteed, but that shouldn't impede accessing the data, isn't it?
Here in the google drive folder there are:
a small toy example of a bedGraph with 3 regions: on Chr1, on Chr2 and on Chr10:
track type=bedGraph name=test description=test visibility=fullcolor=200,100,0 altColor=0,100,200 priority=20
Chr1 55080 55111 0.16707633
Chr2 336493 336505 0.7326518
Chr10 338640 338652 0.7326518
the bigwig, made from this bedGraph with bedGraphToBigWig tool (./bedGraphToBigWig test.bedgraph test.fasta.sizes test.bedgraph.bw
)
When I open this bigwig with pyBigWig I get None on the Chr10:
In IGVjs browser, embedded in my Dash application, I get smth on the Chr10:
I'm not sure if this kind of problem has been already reported, but I couldn't find any clues on how to solve it, so decided to write my question here. I made a bunch of bigwig files using bedGraphToBigWig tool. The chromosome order in my bedgraph files was right (Chr1...Chr9,Chr10,..). When converting the files, I also provided the chrom.sizes file with right chromosome order.
I can open the bigWig files in the IGV browser, and they look OK, I can browse to any position and the information is displayed correctly. But when I open the files with pyBigWig, for some reason Chr10 can't be accessed. I'm not sure, but can it be related to the chromosome order problem? Because when I display the chromosome order with
bw.chroms()
command, I get the wrong alphabetical order (which was not originally in bedGraph files, and doesn't correspond to the genome file chromosome order):ucsc's bigWigInfo returns also the alphabetical order (despite the chrom.sizes file I provided for bedGraphToBigWig the chromosome order was correct):
I can send the examples of bedGraph and bigwig files if they are needed.