Closed gihannagalindez closed 3 months ago
thanks for reporting this. I think I can confirm some weirdness here, there are error messages in the dev console that say something to the effect of "RangeError: offset is outside the bounds of the DataView"
this could mean the parser has a bug
just a random observation:
it appears that the resolution on this track you sent is "1" which means every cell in the file is a single basepair-pair (e.g. an interaction between exactly two base pairs). that is sort of abnormal from what i've seen. i have never used juicer though to generate .hic files, so i'm not sure if you have any control over this setting? if you do, you might try adjusting it
your file
a file from our sample data
Thanks a lot for your quick response! We are indeed generating the .hic files using the 1-bp resolution on purpose because this is for a new application case. Using the Juicer pre tool we were able to set/adjust the resolution to examine dependences in the single base pair level in the genome. It would be a great help if JBrowse2 can also handle the visualization in this granularity. Thank you very much!
@gihannagalindez i tried to create a potential fix here https://github.com/GMOD/jbrowse-components/pull/4319
you can run jbrowse create --branch hic_fix newinstance
to try this out in a new instance (or run jbrowse upgrade --branch hic_fix
in your current instance)
I am pretty inexperienced with hic data so I am not sure if what I'm seeing is correct but let me know if it looks right to you!
went ahead and merged the fix to it...feel free still to test it out.
the particular thing that i am still not sure about is that there is a 'horizontal' lines not at y=0...that is visible in your screenshots. is that expected?
I believe this is now fixed. Instead of offsetting according to the first hi-c contact bin, it offsets according to region.start divided by the current bin size. Improved coloring added too :)
the fix should be in the now released latest version v2.11.0 along with some fun hi-c coloring schemes https://jbrowse.org/jb2/blog/2024/04/16/v2.11.0-release/
chrX.zip
Hi! Thanks for this nice tool! I am using JBrowse2 to visualize nucleotide dependencies in the genome at 1-bp resolution in the region around a tRNA in yeast. This is not the typical resolution for hic files, but it seems that there is a bug, because the visualization changes when I zoom or try to move the track around (i.e. the red dots move around to unpredictable, seemingly random locations). I encounter this for both the web tool and the desktop version (I'm on Windows). I am attaching a hic file that contains the data for chromosome X; this file was generated using Juicer pre tool. I checked/visualized the same .hic file using another tool and it works fine. However, it would really be a great help for us if this can be solved and nicely visualized in JBrowse2.
To Reproduce
Screenshots
Please look at the two screenshots below. The location is the same but the visualization changes after moving the track horizontally.
![screenshot2](https://github.com/GMOD/jbrowse-components/assets/53516591/0a5fbae2-8c6d-4b8a-9c02-e0707585be37)
Version: 2.10.3
Additional context