Closed millerh1 closed 5 years ago
you are simply running out of memory
How much memory is "plenty of memory"?
I do not see how that would be possible given that I am monitoring my memory usage while running this command and it never exceeds 30%. The command alone only uses 0.3% of the system's memory.
(hiCExplorerEnv) millerh1@cbbi16:~$ free -mth
total used free shared buff/cache available
Mem: 503G 169G 58G 139M 275G 333G
Swap: 7.4G 7.4G 4K
Total: 511G 176G 58G
After testing different settings for hicPlotMatrix I think found that you're right and this is simply an issue of not enough RAM.
If I run the command with only chr1 it successfully produces a plot but eats up 5.7% of the system memory (~30G). If the command is attempting to calculate the memory cost of plotting every chromosome (as in the tutorial's command), then I can see how that would return a MemoryError.
While running the command, I didn't see any memory usage beyond .3% as I would have expected in a memory error -- but it could be that numpy calculates available memory and returns the error before attempting to actually utilize those resources.
Also I'm pretty sure I misread the tutorial and tried to run these commands with a matrix that had too high of a resolution -- my apologies!
For reference -- this is the command which worked but ate 5.7% of memory:
millerh1@cbbi16:~$ hicPlotMatrix --matrix "/home/UTHSCSA/millerh1/Bishop.lab/Preprocessing/HiC_Seq/GSE101921_SA1_SA2_HiCExplorer/Data/SRR7061198/hic_corrected.h5" --outFileName "/home/UTHSCSA/millerh1/Bishop.lab/Preprocessing/HiC_Seq/GSE101921_SA1_SA2_HiCExplorer/Data/SRR7061198/plots/fileName" --dpi 300 --region chr1:500000-211800000 --log1p
INFO:hicexplorer.hicPlotMatrix:min: 0.23987850337011332, max: 275.82766173012305
Glad that you could get it work.
Hello!
I am receiving a strange error when attempting to follow the tutorial using GSE101921. When I go to run hicPlotMatrix, I recieve this error:
MemoryError
. I am using 64-bit python 3.6.7 and installed hicExplorer using conda. I also have plently of RAM and my TMPDIR is empty.Here is the command/traceback: