magnitov / pentad

A simple tool to perform the calculation and visualization of the average chromatin A/B compartment.
MIT License
13 stars 1 forks source link

Log2 scale #15

Closed katikoshak closed 11 months ago

katikoshak commented 11 months ago

Hello! Could you please tell me whether there is a possibility to calculate average compartment and visualize it in log2-scale?

magnitov commented 11 months ago

Hi @katikoshak ,

That's possible. Just modify lines 98, 120 and 147 where plt.imshow() functions are located in the plotting script (https://github.com/magnitov/pentad/blob/development/src/plot_pentad.py). You just have to add np.log2() for the first argument and remove norm parameter which adds colorbar in log scale.

Best, Mikhail

katikoshak commented 11 months ago

Thanks a lot!