Closed cgirardot closed 3 years ago
@joachimwolff I am sorry to ping you directly but I am stuck here and would really appreciate your input.
I tried to use hicConvertFormat
as suggested by the error message and converted the h5
to cool
hoping for some magic to happen but got the same error when trying to hicSumMatrices
the cooler matrices
I forgot to paste the command line (v 3.6)
hicSumMatrices-3.6 -m HiC_A_R1_all-rep-merged.5Kb-bin-matrix.noInterChr.countNorm.cool HiC_A_R2_all-rep-merged.5Kb-bin-matrix.noInterChr.countNorm.cool HiC_B_R1_all-rep-merged.5Kb-bin-matrix.noInterChr.countNorm.cool HiC_B_R2_all-rep-merged.5Kb-bin-matrix.noInterChr.countNorm.cool HiC_C_R1_all-rep-merged.5Kb-bin-matrix.noInterChr.countNorm.cool HiC_C_R2_all-rep-merged.5Kb-bin-matrix.noInterChr.countNorm.cool -o HiC_all_R12_all-rep-merged.5Kb-bin-matrix.noInterChr.countNorm.cool
Hi,
Sorry for my delayed answers, so much other stuff to do at the moment (getting a paper done, finishing my PhD). Probably already noticed by my less activity on github and the not released features of other branches in the last half year.
Anyhow, I do not know what cooler dump and load do in detail. My suggestion would be to skip this step and to add it to your pipeline after hicSumMatrices. The result is logically the same.
Best,
Joachim
thank you for taking the time to look into this.
the cooler dump and load are here to eliminate all inter-chromosomal interactions (#704) before the count normalization. I need to do this before the summing.
The error message is weird ie the chromosome order looks the same to me
I only have a workaround in mind, but not really the time to fix the source code (or to check what is going on).
I propose the following workaround:
--no_metadata
option on all six matrices which got the inter-chromosomal regions already removed. You receive per matrix the sum of contacts. Add these numbers together.--no_metadata
option to retrieve the sum of the matrix from step 2.multiplicative factor = 3rd / 4th
--normalize multiplicative --multiplicativeValue ValueFrom5
--no_metadata
if the sum of the created matrix is (more or less) equal the sum of the six matrices of step 3.I hope this helps, if there are more questions or issues please contact me again.
Best,
Joachim
Hi @joachimwolff sorry for not commenting on this earlier. I did follow a very close approach. One aspect I'd like to share is that I had to revert to keeping all the interactions in the matrices (but still normalize using only the intra chromosomal interaction counts) as many of my following steps started failing when the inter-chr interactions were missing.
I think it would make sense to enable an --intra-interaction-only
on the hicNormalize
.
Thanks again for your help
Hi,
I am having a weird error when trying to
hicSumMatrices
6 matrices, it fails quickly telling me:the matrices have been produced with the same code so the chr order should be the same. Please note that the 6 matrices have been previously manipulated as follows (after the hicBuildMatrix) :
Note that the chro.txt contains : chr2L 23513712 chr2R 25286936 chr3L 28110227 chr3R 32079331 chrX 23542271 chr4 1348131
I am on hicExplorer 3.6 (conda)
Any help would be appreciated. Thank you!