Currently I am in the process of analyzing HiC data from two different conditions. When I talked to some colleagues about best way of analyzing and comparing two HiC data-sets, I was asked to look at the `diffHiC`. I read the user-manual and the paper. Congratulations on the paper. I have a question. The paper starts with reads or `bam` files. What if I already have to HiC interaction matrices from two different conditions. Can I still use `diffHiC`? I did not see a simple path to do that. If I am missing something please point me in the right direction. Any help in this regard is highly appreciated.
What I have used is `HiCPro` (the first author of this paper also suggested that I use `diffHiC`) to process the data. Each data has ~5 B reads. I have already aligned and generated ICE normalized contact matrices. There is quite a bit of difference between the two interms of read-depth. When I plotted them using `HiCPlotter`, I can see that there are differences, but I would rather have some kind of statistical measure/FDR for those differences so that I can explain to the collaborator how to interpret that data.
Hi @Aaron,
I have managed to reach this point. In the `diffHic` User manual, I am reading chapter 7. But I do not see how/where to plug in the `data` generated above.
The
data
object above is basically a substitute for what you get out ofsquareCounts
. So, once you've made this object, you should proceed to filtering and normalization, i.e., step 3 and onwards of the "quick start" list in the introduction of the diffHic user's guide, corresponding to Chapter 4 and onwards.Understood.
When I try to do this with a large sparse dsCMatrix matrix (human genome Hi-C at 5kb resolution), it fails. I narrowed it down to when you call as.matrix(cm), either directly or within deflate. The error message is
Error in asMethod(object) : Cholmod error 'problem too large' at file ../Core/cholmod_dense.c, line 105
presumably because it tries to convert it to a dense matrix. Is there a way around this? I'm only interested in intrachromosomal interactions by the way, but I'm not sure if it's ok to do the detection on each chromosome independently.