-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hicPlotMatrix has shown error when I took input in .cool format. It works when I take input in .h5 format. #449
Comments
Hi,
The error shows you use a Python 2.7 installation, but we dropped support
for this beginning of this year. Please update to Python 3.6 and to
HiCExplorer 3.3.
Best,
Joachim
|
Hi, As per your suggestion, I install python 3.6 (conda create --name 3point6 python=3.6) in anaconda3 and install hicexplorer (conda install -c bioconda hicexplorer) from anaconda cloud. But still, I face the same problem as I discussed my previous mail. I simply run Hi-C analysis of mouse ESCs using HiCExplorer (https://hicexplorer.readthedocs.io/en/latest/content/mES-HiC_analysis.html) except I changed extension in .cool format in the place of .h5 format from the tutorial. |
Hi,
How have you changed it?
Best,
Joachim
|
I am working in anaconda3 enviroment. Thenafter I enter the virtual enviroment in 3point6 using the command Thenafter, I install all package as given in installation instruction (https://hicexplorer.readthedocs.io/en/latest/content/installation.html) from anaconda cloud. after installation we follow the instruction, I follow the instruction (https://hicexplorer.readthedocs.io/en/latest/content/mES-HiC_analysis.html) for hic analysis using mouse dataset. |
The error message is given below: (3point6) [amol@heracles 1]$ hicPlotMatrix --log1p --dpi 300 --matrix hicMatrix/replicateMerged.Corrected_20kb.cool --region chrX --title "Corrected Hi-C matrix for mESC : chrX" --outFileName plots/replicateMerged_Corrected-20kb_plot-chrX.png |
Hi,
Thanks, can you show the command of h5 to cool?
Best,
Joachim
|
Hi, This seems all correct to me, which means we have to debug this a bit. We provide the tool Could you please test the following:
Thanks a lot! Best, Joachim |
Hi, thanks for the heads up. It could be a bug in pyGenomeTracks, but I need to reproduce it. Will come back to you. Best, Joachim |
Hi, |
I could not reproduce it, maybe it is already fixed with the current versions of HiCExplorer and pyGenomeTracks. Please reopen if the issue is still present. |
Hi,
I face trouble in hicPlotMatrix command. It show an error when I took input in .cool format(hicMatrix/replicateMerged.Corrected_20kb.cool). It works when I take input in .h5 (hicMatrix/replicateMerged.Corrected_20kb.h5)format.
Thanks for your support in advance.
(base) [amol@heracles HIC_explorer]$ hicPlotMatrix --log1p --dpi 300 --matrix hicMatrix/replicateMerged.Corrected_20kb.cool --region chrX --title "Corrected Hi-C matrix for mESC : chrX" --outFileName plots/replicateMerged_Corrected-20kb_plot-chrX.png
Traceback (most recent call last):
File "/home/amol/anaconda2/bin/hicPlotMatrix", line 7, in
main()
File "/home/amol/anaconda2/lib/python2.7/site-packages/hicexplorer/hicPlotMatrix.py", line 614, in main
start_pos=start_pos1, start_pos2=start_pos2, pNorm=norm, pAxis=ax1, pBigwig=bigwig_info)
File "/home/amol/anaconda2/lib/python2.7/site-packages/hicexplorer/hicPlotMatrix.py", line 195, in plotHeatmap
img3 = axHeat2.pcolormesh(xmesh.T, ymesh.T, ma, vmin=args.vMin, vmax=args.vMax, cmap=cmap, norm=pNorm)
File "/home/amol/anaconda2/lib/python2.7/site-packages/matplotlib/init.py", line 1867, in inner
return func(ax, *args, **kwargs)
File "/home/amol/anaconda2/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 6021, in pcolormesh
X, Y, C = self._pcolorargs('pcolormesh', *args, allmatch=allmatch)
File "/home/amol/anaconda2/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 5590, in _pcolorargs
C.shape, Nx, Ny, funcname))
TypeError: Dimensions of C (7979, 7979) are incompatible with X (7978) and/or Y (7978); see help(pcolormesh)
The text was updated successfully, but these errors were encountered: