Closed AlcaArctica closed 5 months ago
Hi,
you use with 5k the highest possible resolution. I recommend to decrease the resolution for a larger area plot, and to use a high resolution only for small regions of maybe 1 to 2 Mb of range.
What happens here is that your computer does not have enough memory. HiCExplorer needs 18 Gb to plot your selected data range, and your computer has less.
Hope that helps,
Joachim
@joachimwolff Yes, I realised this later as well. Somehow I thought the smaller the number the lower the resolution i.e. the easier to compute (like with image resolution). My bad. Thanks for commenting. (And its working fine now, with a larger resolution number :)
The smaller the number, the smaller the bin size. And therefore, the resolution is higher. It is a bit confusing sometimes.
I would like to use the command line functionality of hicexplorer to automatically plot hic matrices as part of my workflow. I have generated
.hic
files that can be loaded by Juicebox for manual editing with juicer pre as described here: https://github.com/c-zhou/yahsI understand that I need to convert these first to the
.h5
format. So I am running:hicConvertFormat -m file.hic -o outfile.cool --inputFormat hic --outputFormat cool --resolutions 5000
Which prints to the terminal:
followed by:
hicConvertFormat -m outfile_5000.cool -o outfile.h5 --inputFormat cool --outputFormat h5
Now, I should be ready to plot my matrix with the command:
hicPlotMatrix -m outfile.h5 -o plot.png
Which starts running with:
But after a while gets me an error regarding insufficient memory:
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 18.0 GiB for an array with shape (49109, 49110) and data type float64
I have also tried to directly plot the
outfile_5000.cool
:hicPlotMatrix -m outfile_5000.cool -o plot.png
Which starts with:
But then gives a similar error:
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 18.0 GiB for an array with shape (49110, 49110) and data type float64
I also tried:
hicPlotMatrix -m outfile_5000.cool -o plot.png --region assembly:0-245540815
but same problem.What is going on? It is a very small genome (150 Mpb), I am already using the lowest resolution and I have sufficient computer resources available. When I visualise my initial
file.hic
in juicebox I get a very nice matrix with default settings, as can be seen here:I am using the following versions:
I have installed hicexplorer as recommeded with conda in a seperate env.
BTW, when using
hicinfo
on my two input files I get: