-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no such functionality built-in into cooler or cooltools by itself. However you can easily do this while viewing your data interactively in higlass (or using higlass-python locally): You can also achieve that by scripting it in python , e.g.: import cooler
clr1 = cooler.Cooler("cooler1.cool")
clr2 = cooler.Cooler("cooler2.cool")
region_of_interest = ("chr1", 10_000_000, 50_000_000)
mat1 = clr1.matrix(balance=True).fetch(region_of_interest)
mat2 = clr2.matrix(balance=True).fetch(region_of_interest)
ratio_mat = mat1 / mat2 now you have your ratio_mat - and can display it e.g. following this tutorial https://github.com/open2c/open2c_examples/blob/master/viz.ipynb or just plotting it using matplotlib e.g. like here: https://www.geeksforgeeks.org/imshow-with-two-colorbars-under-matplotlib/ |
Beta Was this translation helpful? Give feedback.
There is no such functionality built-in into cooler or cooltools by itself. However you can easily do this while viewing your data interactively in higlass (or using higlass-python locally):
note that "divide by" button in the menu - here is the result after the division by one of the available hg19 datasets and changing a colormap to "bwr":
You can also achieve that by scripting it in python , e.g.:
now …