GangCaoLab / CoolBox

Jupyter notebook based genomic data visualization toolkit.
https://gangcaolab.github.io/CoolBox/index.html
GNU General Public License v3.0
224 stars 37 forks source link

joint view two different cool files #79

Open EnrichettaMileti opened 1 year ago

EnrichettaMileti commented 1 year ago

Hi! Is it possible to do the joint_center using two different cool file? To show the difference between the 2 contact maps?

zhqu1148980644 commented 1 year ago

Yes, but requires little customizing. You can subclass Cooler and modify fetch_data method to return the combined matrix. For example.

class CombinedCool(Cool):
      def fetch_data(self, gr1, gr2):
          // implement to fetch data from two cooler

jv = JointView(CombindCool(), **sub_frames, space=0, padding_left=0)