Skip to content
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

insulation score #54

Open
jdmontenegro opened this issue Oct 13, 2022 · 0 comments
Open

insulation score #54

jdmontenegro opened this issue Oct 13, 2022 · 0 comments

Comments

@jdmontenegro
Copy link

Hi I am trying to to plot a HiCPro tri format file with the following code:

> python2 HiCPlotter.py -chr chr2 -n chr2 -tri 1 -bed Nv2_5k.bins.bed -f NVE_technau.q_0.5000.bins.tsv -o NVE_technau_q0_chr2 -r 5000 -gl 1 -g hox_genes.bed -im 1 -ext svg -w 100000 -pi 1
Traceback (most recent call last):
  File "/scratch/molevo/jmontenegro/software/HiCPlotter/HiCPlotter.py", line 2171, in <module>
    HiCplotter(**args)
  File "/scratch/molevo/jmontenegro/software/HiCPlotter/HiCPlotter.py", line 1397, in HiCplotter
    else: ax4.plot(np.arange(start,end),nums,'black')
  File "/apps/python2/2.7.18/lib/python2.7/site-packages/matplotlib/axes.py", line 4137, in plot
    for line in self._get_lines(*args, **kwargs):
  File "/apps/python2/2.7.18/lib/python2.7/site-packages/matplotlib/axes.py", line 317, in _grab_next_args
    for seg in self._plot_args(remaining, kwargs):
  File "/apps/python2/2.7.18/lib/python2.7/site-packages/matplotlib/axes.py", line 295, in _plot_args
    x, y = self._xy_from_xy(x, y)
  File "/apps/python2/2.7.18/lib/python2.7/site-packages/matplotlib/axes.py", line 237, in _xy_from_xy
    raise ValueError("x and y must have same first dimension")
ValueError: x and y must have same first dimension

If I remove the insulation score related parameters ("-w" and "-pi")

> python2 HiCPlotter.py -chr chr2 -n chr2 -tri 1 -bed Nv2_5k.bins.bed -f NVE_technau.q_0.5000.bins.tsv -o NVE_technau_q0_chr2 -r 5000 -gl 1 -g hox_genes.bed -im 1 -ext svg
Plotting now!!

I do not have an problems. What could be causing the error described above and how can I fix it?

Thank you.

Juan D. Montenegro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant